Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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:= findutils
  5. PKG_VERSION:= 4.4.2
  6. PKG_RELEASE:= 4
  7. PKG_MD5SUM:= 351cc4adb07d54877fa15f75fb77d39f
  8. PKG_DESCR:= GNU utilities for finding files
  9. PKG_SECTION:= utils
  10. PKG_DEPENDS:= libpthread
  11. PKG_BUILDDEP:= autotool
  12. PKG_URL:= http://www.gnu.org/software/findutils/
  13. PKG_SITES:= http://ftp.gnu.org/pub/gnu/findutils/
  14. PKG_SUBPKGS:= FIND XARGS LOCATE
  15. PKGSD_LOCATE:= locate utility
  16. PKGSD_XARGS:= xargs utility
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,FIND,find,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,XARGS,xargs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_XARGS},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LOCATE,locate,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LOCATE},${PKG_SECTION}))
  21. AUTOTOOL_STYLE:= autoreconf
  22. CONFIGURE_ENV+= gl_cv_func_wcwidth_works=yes \
  23. ac_cv_func_working_mktime=yes
  24. find-install:
  25. $(INSTALL_DIR) $(IDIR_FIND)/usr/bin
  26. $(INSTALL_BIN) $(WRKINST)/usr/bin/find \
  27. $(IDIR_FIND)/usr/bin
  28. xargs-install:
  29. $(INSTALL_DIR) $(IDIR_XARGS)/usr/bin
  30. $(INSTALL_BIN) $(WRKINST)/usr/bin/xargs \
  31. $(IDIR_XARGS)/usr/bin
  32. locate-install:
  33. ${INSTALL_DIR} ${IDIR_LOCATE}/usr/{bin,libexec}
  34. ${INSTALL_BIN} ${WRKINST}/usr/bin/{locate,updatedb} ${IDIR_LOCATE}/usr/bin/
  35. $(INSTALL_BIN) $(WRKINST)/usr/libexec/{bigram,code,frcode} \
  36. $(IDIR_LOCATE)/usr/libexec
  37. include ${TOPDIR}/mk/pkg-bottom.mk