1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.04
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= accade81ff1cc774904b47c72c8aeea0
  8. PKG_DESCR:= a file type guesser
  9. PKG_SECTION:= utils
  10. PKG_DEPENDS:= libmagic
  11. PKG_URL:= http://www.darwinsys.com/file
  12. PKG_SITES:= ftp://ftp.fu-berlin.de/unix/tools/file/ \
  13. ftp://ftp.astron.com/pub/file/
  14. PKG_SUBPKGS:= FILE LIBMAGIC
  15. PKGSD_LIBMAGIC:= file type guesser library
  16. PKGSC_LIBMAGIC:= libs
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,FILE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBMAGIC,libmagic,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBMAGIC},${PKGSD_LIBMAGIC},${PKGSC_LIBMAGIC}))
  20. pre-configure:
  21. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  22. ./configure --enable-static --disable-shared \
  23. --disable-warnings \
  24. );
  25. ${MAKE} -C ${WRKBUILD}
  26. ${INSTALL_BIN} ${WRKBUILD}/src/file ${WRKBUILD}/magic
  27. ${MAKE} -C ${WRKBUILD} clean
  28. file-install:
  29. ${INSTALL_DIR} ${IDIR_FILE}/usr/bin
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin
  31. libmagic-install:
  32. ${INSTALL_DIR} ${IDIR_LIBMAGIC}/usr/share/misc
  33. ${INSTALL_DATA} ${WRKINST}/usr/share/misc/magic.mgc \
  34. ${IDIR_LIBMAGIC}/usr/share/misc
  35. ${INSTALL_DIR} ${IDIR_LIBMAGIC}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libmagic.so* ${IDIR_LIBMAGIC}/usr/lib
  37. include ${TOPDIR}/mk/pkg-bottom.mk