Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= file
  5. PKG_VERSION:= 5.17
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e19c47e069ced7b01ccb4db402cc01d3
  8. PKG_DESCR:= a file type guesser
  9. PKG_SECTION:= utils
  10. PKG_BUILDDEP:= file-host
  11. PKG_DEPENDS:= libmagic libgcc
  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
  19. PKGSD_LIBMAGIC:= file type guesser library
  20. PKGSC_LIBMAGIC:= libs
  21. ifeq ($(ADK_STATIC),y)
  22. PKG_OPTS+= libmix
  23. endif
  24. include ${TOPDIR}/mk/host.mk
  25. include ${TOPDIR}/mk/package.mk
  26. $(eval $(call HOST_template,FILE,file,${PKG_VERSION}-${PKG_RELEASE}))
  27. $(eval $(call PKG_template,FILE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. $(eval $(call PKG_template,LIBMAGIC,libmagic,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBMAGIC},${PKGSD_LIBMAGIC},${PKGSC_LIBMAGIC},${PKG_OPTS}))
  29. HOST_STYLE:= auto
  30. HOST_CONFIGURE_ARGS+= --enable-static \
  31. --disable-shared \
  32. --disable-warnings
  33. file-install:
  34. ${INSTALL_DIR} ${IDIR_FILE}/usr/bin
  35. ${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin
  36. libmagic-install:
  37. ${INSTALL_DIR} ${IDIR_LIBMAGIC}/usr/share/misc
  38. ${INSTALL_DATA} ${WRKINST}/usr/share/misc/magic.mgc \
  39. ${IDIR_LIBMAGIC}/usr/share/misc
  40. ${INSTALL_DIR} ${IDIR_LIBMAGIC}/usr/lib
  41. ${CP} ${WRKINST}/usr/lib/libmagic.so* ${IDIR_LIBMAGIC}/usr/lib
  42. include ${TOPDIR}/mk/host-bottom.mk
  43. include ${TOPDIR}/mk/pkg-bottom.mk