Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. PKG_SUBPKGS:= FILE LIBMAGIC
  18. PKGSD_LIBMAGIC:= file type guesser library
  19. PKGSC_LIBMAGIC:= libs
  20. ifeq ($(ADK_STATIC),y)
  21. PKG_OPTS+= libmix
  22. endif
  23. include ${TOPDIR}/mk/host.mk
  24. include ${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. HOST_STYLE:= auto
  29. HOST_CONFIGURE_ARGS+= --enable-static \
  30. --disable-shared \
  31. --disable-warnings
  32. file-install:
  33. ${INSTALL_DIR} ${IDIR_FILE}/usr/bin
  34. ${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin
  35. libmagic-install:
  36. ${INSTALL_DIR} ${IDIR_LIBMAGIC}/usr/share/misc
  37. ${INSTALL_DATA} ${WRKINST}/usr/share/misc/magic.mgc \
  38. ${IDIR_LIBMAGIC}/usr/share/misc
  39. ${INSTALL_DIR} ${IDIR_LIBMAGIC}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/libmagic.so* ${IDIR_LIBMAGIC}/usr/lib
  41. include ${TOPDIR}/mk/host-bottom.mk
  42. include ${TOPDIR}/mk/pkg-bottom.mk