diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-10-23 12:54:42 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-10-23 12:54:42 +0000 |
commit | 77bf6fb0e642c004c28698f651bd4dc2939157f3 (patch) | |
tree | 14a016172973704d690801d2cc86be81685c25d9 /make/findutils.mk | |
parent | 63db64a0ac4b4f8cb30f338fa6e8d6426b6210ef (diff) | |
download | buildroot-novena-77bf6fb0e642c004c28698f651bd4dc2939157f3.tar.gz buildroot-novena-77bf6fb0e642c004c28698f651bd4dc2939157f3.zip |
Add several new components working towards a fully sandboxed buildsystem
-Erik
Diffstat (limited to 'make/findutils.mk')
-rw-r--r-- | make/findutils.mk | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/make/findutils.mk b/make/findutils.mk new file mode 100644 index 000000000..1fa326cba --- /dev/null +++ b/make/findutils.mk @@ -0,0 +1,47 @@ +############################################################# +# +# findutils +# +############################################################# +FINDUTILS_SOURCE:=findutils_4.1.7.orig.tar.gz +FINDUTILS_SITE:=http://ftp.debian.org/debian/pool/main/f/findutils +FINDUTILS_CAT:=zcat +FINDUTILS_DIR:=$(BUILD_DIR)/findutils-4.1.7.orig +FINDUTILS_BINARY:=find/find +FINDUTILS_TARGET_BINARY:=usr/bin/find + +$(DL_DIR)/$(FINDUTILS_SOURCE): + wget -P $(DL_DIR) $(FINDUTILS_SITE)/$(FINDUTILS_SOURCE) + +findutils-source: $(DL_DIR)/$(FINDUTILS_SOURCE) + +$(FINDUTILS_DIR)/.unpacked: $(DL_DIR)/$(FINDUTILS_SOURCE) + $(FINDUTILS_CAT) $(DL_DIR)/$(FINDUTILS_SOURCE) | tar -C $(BUILD_DIR) -xvf - + (cd $(FINDUTILS_DIR); perl -i -p -e "s,# define mbstate_t int,# define mbstate_t int\n\ + # define wchar_t char,;" $(FINDUTILS_DIR)/lib/quotearg.c) + touch $(FINDUTILS_DIR)/.unpacked + +$(FINDUTILS_DIR)/.configured: $(FINDUTILS_DIR)/.unpacked + (cd $(FINDUTILS_DIR); autoconf; rm -f config.cache; CC=$(TARGET_CC1) \ + CFLAGS=-D_POSIX_SOURCE ./configure --prefix=/usr --disable-nls \ + --mandir=/junk --infodir=/junk --localstatedir=/var/lib/locate \ + --libexecdir='$${prefix}/lib/locate' \ + ); + touch $(FINDUTILS_DIR)/.configured + +$(FINDUTILS_DIR)/$(FINDUTILS_BINARY): $(FINDUTILS_DIR)/.configured + $(MAKE) CC=$(TARGET_CC1) -C $(FINDUTILS_DIR) + +$(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY): $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) + $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC1) -C $(FINDUTILS_DIR) install + rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/junk + +findutils: uclibc $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) + +findutils-clean: + $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC1) -C $(FINDUTILS_DIR) uninstall + -make -C $(FINDUTILS_DIR) clean + +findutils-dirclean: + rm -rf $(FINDUTILS_DIR) + |