Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:= 5
  7. PKG_MD5SUM:= 351cc4adb07d54877fa15f75fb77d39f
  8. PKG_DESCR:= utilities for finding files (also provided by busybox)
  9. PKG_SECTION:= core
  10. PKG_DEPENDS:= libpthread
  11. PKG_BUILDDEP:= autotool
  12. HOST_BUILDDEP:= autotool
  13. PKG_URL:= http://www.gnu.org/software/findutils/
  14. PKG_SITES:= http://ftp.gnu.org/pub/gnu/findutils/
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_SUBPKGS:= FINDUTILS XARGS LOCATE FIND
  17. PKGSD_LOCATE:= locate utility
  18. PKGSN_LOCATE:= findutils
  19. PKGSD_XARGS:= xargs utility
  20. PKGSN_XARGS:= findutils
  21. PKGSD_FIND:= find utility
  22. PKGSN_FIND:= findutils
  23. include $(TOPDIR)/mk/host.mk
  24. include $(TOPDIR)/mk/package.mk
  25. $(eval $(call HOST_template,FINDUTILS,findutils,$(PKG_VERSION)-${PKG_RELEASE}))
  26. $(eval $(call PKG_template,FIND,find,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FIND},${PKG_SECTION}))
  27. $(eval $(call PKG_template,LOCATE,locate,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LOCATE},${PKG_SECTION}))
  28. $(eval $(call PKG_template,XARGS,xargs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_XARGS},${PKG_SECTION}))
  29. HOST_STYLE:= auto
  30. AUTOTOOL_STYLE:= autoreconf
  31. CONFIGURE_ENV+= gl_cv_func_wcwidth_works=yes \
  32. ac_cv_func_working_mktime=yes
  33. find-install:
  34. $(INSTALL_DIR) $(IDIR_FIND)/usr/bin
  35. $(INSTALL_BIN) $(WRKINST)/usr/bin/find \
  36. $(IDIR_FIND)/usr/bin
  37. xargs-install:
  38. $(INSTALL_DIR) $(IDIR_XARGS)/usr/bin
  39. $(INSTALL_BIN) $(WRKINST)/usr/bin/xargs \
  40. $(IDIR_XARGS)/usr/bin
  41. locate-install:
  42. ${INSTALL_DIR} ${IDIR_LOCATE}/usr/{bin,libexec}
  43. ${INSTALL_BIN} ${WRKINST}/usr/bin/{locate,updatedb} ${IDIR_LOCATE}/usr/bin/
  44. $(INSTALL_BIN) $(WRKINST)/usr/libexec/{bigram,code,frcode} \
  45. $(IDIR_LOCATE)/usr/libexec
  46. include ${TOPDIR}/mk/host-bottom.mk
  47. include ${TOPDIR}/mk/pkg-bottom.mk