1
0

Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= findutils
  5. PKG_VERSION:= 4.4.2
  6. PKG_RELEASE:= 7
  7. PKG_HASH:= 434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a
  8. PKG_DESCR:= utilities for finding files
  9. PKG_SECTION:= base/apps
  10. PKG_DEPENDS:= libpthread
  11. HOST_BUILDDEP:= autoconf-host bison-host
  12. PKG_URL:= http://www.gnu.org/software/findutils/
  13. PKG_SITES:= http://ftp.gnu.org/pub/gnu/findutils/
  14. PKG_BB:= 1
  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 $(ADK_TOPDIR)/mk/host.mk
  24. include $(ADK_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. AUTOTOOL_STYLE:= autoreconf
  30. CONFIGURE_ENV+= gl_cv_func_wcwidth_works=yes \
  31. ac_cv_func_working_mktime=yes
  32. find-install:
  33. $(INSTALL_DIR) $(IDIR_FIND)/usr/bin
  34. $(INSTALL_BIN) $(WRKINST)/usr/bin/find \
  35. $(IDIR_FIND)/usr/bin
  36. xargs-install:
  37. $(INSTALL_DIR) $(IDIR_XARGS)/usr/bin
  38. $(INSTALL_BIN) $(WRKINST)/usr/bin/xargs \
  39. $(IDIR_XARGS)/usr/bin
  40. locate-install:
  41. ${INSTALL_DIR} ${IDIR_LOCATE}/usr/{bin,libexec}
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/{locate,updatedb} ${IDIR_LOCATE}/usr/bin/
  43. $(INSTALL_BIN) $(WRKINST)/usr/libexec/{bigram,code,frcode} \
  44. $(IDIR_LOCATE)/usr/libexec
  45. include ${ADK_TOPDIR}/mk/host-bottom.mk
  46. include ${ADK_TOPDIR}/mk/pkg-bottom.mk