Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= file
  5. PKG_VERSION:= 5.19
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e3526f59023f3f7d1ffa4d541335edab
  8. PKG_DESCR:= file type guesser
  9. PKG_SECTION:= sys/utils
  10. PKG_BUILDDEP:= file-host
  11. PKG_DEPENDS:= libmagic magic
  12. PKG_URL:= http://www.darwinsys.com/file
  13. PKG_SITES:= ftp://ftp.fu-berlin.de/unix/tools/file/ \
  14. ftp://ftp.astron.com/pub/file/
  15. PKG_LIBNAME:= libmagic
  16. PKG_OPTS:= dev
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  18. PKG_SUBPKGS:= FILE LIBMAGIC MAGIC
  19. PKGSD_LIBMAGIC:= file type guesser library
  20. PKGSC_LIBMAGIC:= libs/misc
  21. PKGSD_MAGIC:= magic file
  22. PKGSC_MAGIC:= sys/misc
  23. include ${ADK_TOPDIR}/mk/host.mk
  24. include ${ADK_TOPDIR}/mk/package.mk
  25. $(eval $(call HOST_template,FILE,file,${PKG_VERSION}-${PKG_RELEASE}))
  26. $(eval $(call PKG_template,FILE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,LIBMAGIC,libmagic,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBMAGIC},${PKGSD_LIBMAGIC},${PKGSC_LIBMAGIC},${PKG_OPTS}))
  28. $(eval $(call PKG_template,MAGIC,magic,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_MAGIC},${PKGSD_MAGIC},${PKGSC_MAGIC}))
  29. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  30. MAKE_FLAGS+= LDFLAGS="$(TARGET_LDFLAGS) -all-static"
  31. endif
  32. HOST_CONFIGURE_ARGS+= --enable-static \
  33. --disable-shared \
  34. --disable-warnings
  35. file-install:
  36. ${INSTALL_DIR} ${IDIR_FILE}/usr/bin
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin
  38. magic-install:
  39. ${INSTALL_DIR} ${IDIR_LIBMAGIC}/usr/share/misc
  40. ${INSTALL_DATA} ${WRKINST}/usr/share/misc/magic.mgc \
  41. ${IDIR_LIBMAGIC}/usr/share/misc
  42. libmagic-install:
  43. ${INSTALL_DIR} ${IDIR_LIBMAGIC}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libmagic.so* ${IDIR_LIBMAGIC}/usr/lib
  45. include ${ADK_TOPDIR}/mk/host-bottom.mk
  46. include ${ADK_TOPDIR}/mk/pkg-bottom.mk