Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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_URL:= http://www.darwinsys.com/file
  11. PKG_SITES:= ftp://ftp.fu-berlin.de/unix/tools/file/ \
  12. ftp://ftp.astron.com/pub/file/
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,FILE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. pre-configure:
  16. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  17. ./configure --enable-static --disable-shared \
  18. --disable-warnings \
  19. );
  20. ${MAKE} -C ${WRKBUILD}
  21. ${INSTALL_BIN} ${WRKBUILD}/src/file ${WRKBUILD}/magic
  22. ${MAKE} -C ${WRKBUILD} clean
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_FILE}/usr/bin ${IDIR_FILE}/usr/lib \
  25. ${IDIR_FILE}/usr/share/misc
  26. ${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin
  27. ${INSTALL_DATA} ${WRKINST}/usr/share/misc/magic.mgc \
  28. ${IDIR_FILE}/usr/share/misc
  29. ${CP} ${WRKINST}/usr/lib/libmagic.so.* ${IDIR_FILE}/usr/lib/
  30. include ${TOPDIR}/mk/pkg-bottom.mk