Makefile 1.2 KB

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