findutils: fix compile with debugging options
[openadk.git] / package / findutils / Makefile
blob0651d91b3baba5c59ff64902f70f4c4b9754e74e
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(TOPDIR)/rules.mk
6 PKG_NAME:= findutils
7 PKG_VERSION:= 4.4.2
8 PKG_RELEASE:= 1
9 PKG_MD5SUM:= 351cc4adb07d54877fa15f75fb77d39f
10 PKG_DESCR:= GNU utilities for finding files
11 PKG_SECTION:= utils
12 PKG_DEPENDS:= libpthread
13 PKG_URL:= http://www.gnu.org/software/findutils/
14 PKG_SITES:= http://ftp.gnu.org/pub/gnu/findutils/
16 PKG_SUBPKGS:= FINDUTILS LOCATE
17 PKGSD_LOCATE:= Locate utility
19 include $(TOPDIR)/mk/package.mk
21 $(eval $(call PKG_template,FINDUTILS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
22 $(eval $(call PKG_template,LOCATE,locate,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LOCATE},${PKG_SECTION}))
24 CONFIGURE_ENV+= gl_cv_func_wcwidth_works=yes \
25 ac_cv_func_working_mktime=yes
27 post-install:
28 $(INSTALL_DIR) $(IDIR_FINDUTILS)/usr/bin
29 $(INSTALL_BIN) $(WRKINST)/usr/bin/{find,oldfind,xargs} \
30 $(IDIR_FINDUTILS)/usr/bin
31 ${INSTALL_DIR} ${IDIR_LOCATE}/usr/{bin,libexec}
32 ${INSTALL_BIN} ${WRKINST}/usr/bin/{locate,updatedb} ${IDIR_LOCATE}/usr/bin/
33 $(INSTALL_BIN) $(WRKINST)/usr/libexec/{bigram,code,frcode} \
34 $(IDIR_LOCATE)/usr/libexec
36 include ${TOPDIR}/mk/pkg-bottom.mk