1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

* Unless --with-bzip2 is specified, use a copy of bzip2 in the

externals directory.  This is in particular useful because though
  most systems have bzip2/bunzip2, they don't always have libbz2,
  which we need for bsdiff/bspatch.
This commit is contained in:
Eelco Dolstra 2006-04-25 10:45:53 +00:00
parent ef2d4a2da9
commit 03162f8f47
5 changed files with 58 additions and 14 deletions

39
externals/Makefile.am vendored
View file

@ -64,10 +64,43 @@ build-aterm: have-aterm
endif
all: build-db build-aterm
# bzip2
EXTRA_DIST = $(DB).tar.gz $(ATERM).tar.gz
BZIP2 = bzip2-1.0.3
$(BZIP2).tar.gz:
@echo "Nix requires bzip2 to build."
@echo "Please download version 1.0.3 from"
@echo " http://www.bzip.org/1.0.3/bzip2-1.0.3.tar.gz"
@echo "and place it in the externals/ directory."
false
$(BZIP2): $(BZIP2).tar.gz
gunzip < $(BZIP2).tar.gz | tar xvf -
have-bzip2:
$(MAKE) $(BZIP2)
touch have-bzip2
if HAVE_BZIP2
build-bzip2:
else
build-bzip2: have-bzip2
(pfx=`pwd` && \
cd $(BZIP2) && \
$(MAKE) && \
$(MAKE) install PREFIX=$$pfx/inst-bzip2)
touch build-bzip2
install:
cp $(bzip2_bin_test)/bzip2 $(bzip2_bin_test)/bunzip2 ${bzip2_bin}
endif
all: build-db build-aterm build-bzip2
EXTRA_DIST = $(DB).tar.gz $(ATERM).tar.gz $(BZIp2).tar.gz
ext-clean:
$(RM) -f have-db build-db have-aterm build-aterm
$(RM) -rf $(DB) $(ATERM)
$(RM) -rf $(DB) $(ATERM) $(BZIP2)