add SIOCGIWRANGE
[openwrt.git] / obsolete-buildroot / make / findutils.mk
1 #############################################################
2 #
3 # findutils
4 #
5 #############################################################
6 FINDUTILS_SOURCE:=findutils_4.1.7.orig.tar.gz
7 FINDUTILS_SITE:=http://ftp.debian.org/debian/pool/main/f/findutils
8 FINDUTILS_CAT:=zcat
9 FINDUTILS_DIR:=$(BUILD_DIR)/findutils-4.1.7
10 FINDUTILS_BINARY:=find/find
11 FINDUTILS_TARGET_BINARY:=usr/bin/find
12
13 $(DL_DIR)/$(FINDUTILS_SOURCE):
14 $(WGET) -P $(DL_DIR) $(FINDUTILS_SITE)/$(FINDUTILS_SOURCE)
15
16 findutils-source: $(DL_DIR)/$(FINDUTILS_SOURCE)
17
18 $(FINDUTILS_DIR)/.unpacked: $(DL_DIR)/$(FINDUTILS_SOURCE)
19 $(FINDUTILS_CAT) $(DL_DIR)/$(FINDUTILS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 mv $(FINDUTILS_DIR).orig $(FINDUTILS_DIR)
21 touch $(FINDUTILS_DIR)/.unpacked
22
23 $(FINDUTILS_DIR)/.configured: $(FINDUTILS_DIR)/.unpacked
24 (cd $(FINDUTILS_DIR); rm -rf config.cache; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 ac_cv_func_setvbuf_reversed=no \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --sbindir=/usr/sbin \
36 --libexecdir=/usr/lib/locate \
37 --sysconfdir=/etc \
38 --datadir=/usr/share \
39 --localstatedir=/var/lib \
40 --mandir=/usr/man \
41 --infodir=/usr/info \
42 $(DISABLE_NLS) \
43 $(DISABLE_LARGEFILE) \
44 );
45 touch $(FINDUTILS_DIR)/.configured
46
47 $(FINDUTILS_DIR)/$(FINDUTILS_BINARY): $(FINDUTILS_DIR)/.configured
48 $(MAKE) CC=$(TARGET_CC) -C $(FINDUTILS_DIR)
49
50 # This stuff is needed to work around GNU make deficiencies
51 findutils-target_binary: $(FINDUTILS_DIR)/$(FINDUTILS_BINARY)
52 @if [ -L $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) ] ; then \
53 rm -f $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY); fi;
54 @if [ ! -f $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) -o $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) \
55 -ot $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) ] ; then \
56 set -x; \
57 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FINDUTILS_DIR) install; \
58 $(STRIP) $(TARGET_DIR)/usr/lib/locate/* > /dev/null 2>&1; \
59 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
60 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc; fi;
61
62 findutils: uclibc findutils-target_binary
63
64 findutils-clean:
65 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FINDUTILS_DIR) uninstall
66 -$(MAKE) -C $(FINDUTILS_DIR) clean
67
68 findutils-dirclean:
69 rm -rf $(FINDUTILS_DIR)
70
This page took 0.050662 seconds and 5 git commands to generate.