Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.03
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d05f08a53e5c2f51f8ee6a4758c0cc53
  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. CONFIGURE_STYLE:= gnu
  16. BUILD_STYLE:= auto
  17. INSTALL_STYLE:= auto
  18. pre-configure:
  19. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  20. ./configure \
  21. );
  22. ${MAKE} -C ${WRKBUILD}
  23. ${INSTALL_BIN} ${WRKBUILD}/src/.libs/file ${STAGING_TOOLS}/bin
  24. ${MAKE} -C ${WRKBUILD} clean
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_FILE}/usr/bin ${IDIR_FILE}/usr/lib ${IDIR_FILE}/usr/share/misc
  27. ${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin
  28. ${INSTALL_DATA} ${WRKINST}/usr/share/misc/magic.mgc \
  29. ${IDIR_FILE}/usr/share/misc
  30. ${CP} ${WRKINST}/usr/lib/libmagic.so.* ${IDIR_FILE}/usr/lib/
  31. include ${TOPDIR}/mk/pkg-bottom.mk