1 #############################################################
5 #############################################################
6 FINDUTILS_SOURCE
:=findutils_4.1
.7.orig.
tar.gz
7 FINDUTILS_SITE
:=http
://ftp.debian.org
/debian
/pool
/main
/f
/findutils
9 FINDUTILS_DIR
:=$(BUILD_DIR
)/findutils-4.1
.7
10 FINDUTILS_BINARY
:=find
/find
11 FINDUTILS_TARGET_BINARY
:=usr
/bin
/find
13 $(DL_DIR
)/$(FINDUTILS_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(FINDUTILS_SITE
)/$(FINDUTILS_SOURCE
)
16 findutils-source
: $(DL_DIR
)/$(FINDUTILS_SOURCE
)
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
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 \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
36 --libexecdir
=/usr
/lib
/locate \
38 --datadir=/usr
/share \
39 --localstatedir
=/var
/lib \
43 $(DISABLE_LARGEFILE
) \
45 touch
$(FINDUTILS_DIR
)/.configured
47 $(FINDUTILS_DIR
)/$(FINDUTILS_BINARY
): $(FINDUTILS_DIR
)/.configured
48 $(MAKE
) CC
=$(TARGET_CC
) -C
$(FINDUTILS_DIR
)
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 \
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
;
62 findutils
: uclibc findutils-target_binary
65 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(FINDUTILS_DIR
) uninstall
66 -$(MAKE
) -C
$(FINDUTILS_DIR
) clean
69 rm -rf
$(FINDUTILS_DIR
)