Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. PKG_MULTI:= 1
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. PKG_SUBPKGS:= FINDUTILS XARGS LOCATE FIND
  18. PKGSD_LOCATE:= locate utility
  19. PKGSD_XARGS:= xargs utility
  20. PKGSD_FIND:= find utility
  21. include $(TOPDIR)/mk/host.mk
  22. include $(TOPDIR)/mk/package.mk
  23. $(eval $(call HOST_template,FINDUTILS,findutils,$(PKG_VERSION)-${PKG_RELEASE}))
  24. $(eval $(call PKG_template,FIND,find,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FIND},${PKG_SECTION}))
  25. $(eval $(call PKG_template,LOCATE,locate,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LOCATE},${PKG_SECTION}))
  26. $(eval $(call PKG_template,XARGS,xargs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_XARGS},${PKG_SECTION}))
  27. HOST_STYLE:= auto
  28. AUTOTOOL_STYLE:= autoreconf
  29. CONFIGURE_ENV+= gl_cv_func_wcwidth_works=yes \
  30. ac_cv_func_working_mktime=yes
  31. find-install:
  32. $(INSTALL_DIR) $(IDIR_FIND)/usr/bin
  33. $(INSTALL_BIN) $(WRKINST)/usr/bin/find \
  34. $(IDIR_FIND)/usr/bin
  35. xargs-install:
  36. $(INSTALL_DIR) $(IDIR_XARGS)/usr/bin
  37. $(INSTALL_BIN) $(WRKINST)/usr/bin/xargs \
  38. $(IDIR_XARGS)/usr/bin
  39. locate-install:
  40. ${INSTALL_DIR} ${IDIR_LOCATE}/usr/{bin,libexec}
  41. ${INSTALL_BIN} ${WRKINST}/usr/bin/{locate,updatedb} ${IDIR_LOCATE}/usr/bin/
  42. $(INSTALL_BIN) $(WRKINST)/usr/libexec/{bigram,code,frcode} \
  43. $(IDIR_LOCATE)/usr/libexec
  44. include ${TOPDIR}/mk/host-bottom.mk
  45. include ${TOPDIR}/mk/pkg-bottom.mk