2003-07-23 18:53:34 +03:00
|
|
|
# Berkeley DB
|
|
|
|
|
2003-10-16 11:52:44 +03:00
|
|
|
DB = db-4.1.25
|
2003-07-23 18:53:34 +03:00
|
|
|
|
|
|
|
$(DB).tar.gz:
|
2003-08-18 11:52:49 +03:00
|
|
|
@echo "Nix requires Berkeley DB to build."
|
2003-10-16 11:52:44 +03:00
|
|
|
@echo "Please download version 4.1.25 from"
|
|
|
|
@echo " http://www.sleepycat.com/update/snapshot/db-4.1.25.tar.gz"
|
2003-08-18 11:52:49 +03:00
|
|
|
@echo "and place it in the externals/ directory."
|
2003-08-18 11:35:16 +03:00
|
|
|
false
|
2003-07-23 18:53:34 +03:00
|
|
|
|
|
|
|
$(DB): $(DB).tar.gz
|
|
|
|
gunzip < $(DB).tar.gz | tar xvf -
|
|
|
|
|
2003-07-24 17:31:39 +03:00
|
|
|
have-db:
|
|
|
|
$(MAKE) $(DB)
|
|
|
|
touch have-db
|
|
|
|
|
|
|
|
build-db: have-db
|
2003-07-23 18:53:34 +03:00
|
|
|
(pfx=`pwd` && \
|
|
|
|
cd $(DB)/build_unix && \
|
2003-07-28 17:13:42 +03:00
|
|
|
CC=$(CC) CXX=$(CXX) ../dist/configure --prefix=$$pfx/inst \
|
|
|
|
--enable-cxx --disable-shared && \
|
2003-07-23 18:53:34 +03:00
|
|
|
make && \
|
|
|
|
make install)
|
|
|
|
touch build-db
|
|
|
|
|
|
|
|
|
|
|
|
# CWI ATerm
|
|
|
|
|
2003-10-16 11:52:44 +03:00
|
|
|
ATERM = aterm-2.0.5
|
2003-07-23 18:53:34 +03:00
|
|
|
|
|
|
|
$(ATERM).tar.gz:
|
2003-08-18 11:52:49 +03:00
|
|
|
@echo "Nix requires the CWI ATerm library to build."
|
2003-10-16 11:52:44 +03:00
|
|
|
@echo "Please download version 2.0.5 from"
|
|
|
|
@echo " http://www.cwi.nl/projects/MetaEnv/aterm/aterm-2.0.5.tar.gz"
|
2003-08-18 11:52:49 +03:00
|
|
|
@echo "and place it in the externals/ directory."
|
2003-08-18 11:35:16 +03:00
|
|
|
false
|
2003-07-23 18:53:34 +03:00
|
|
|
|
|
|
|
$(ATERM): $(ATERM).tar.gz
|
|
|
|
gunzip < $(ATERM).tar.gz | tar xvf -
|
|
|
|
|
2003-07-24 17:31:39 +03:00
|
|
|
have-aterm:
|
|
|
|
$(MAKE) $(ATERM)
|
|
|
|
touch have-aterm
|
|
|
|
|
|
|
|
build-aterm: have-aterm
|
2003-07-23 18:53:34 +03:00
|
|
|
(pfx=`pwd` && \
|
|
|
|
cd $(ATERM) && \
|
|
|
|
./configure --prefix=$$pfx/inst && \
|
|
|
|
make && \
|
|
|
|
make install)
|
|
|
|
touch build-aterm
|
|
|
|
|
|
|
|
|
2003-10-29 17:04:50 +02:00
|
|
|
# SDF bundle
|
2003-07-23 18:53:34 +03:00
|
|
|
|
2003-10-29 17:04:50 +02:00
|
|
|
SDF2 = sdf2-bundle-1.6
|
|
|
|
|
|
|
|
$(SDF2).tar.gz:
|
|
|
|
@echo "Nix requires the SDF2 bundle to build."
|
|
|
|
@echo "Please download version 1.6 from"
|
|
|
|
@echo " ftp://ftp.stratego-language.org/pub/stratego/sdf2/sdf2-bundle-1.6.tar.gzP"
|
|
|
|
@echo "and place it in the externals/ directory."
|
|
|
|
false
|
|
|
|
|
|
|
|
$(SDF2): $(SDF2).tar.gz
|
|
|
|
gunzip < $(SDF2).tar.gz | tar xvf -
|
|
|
|
|
|
|
|
have-sdf2:
|
|
|
|
$(MAKE) $(SDF2)
|
|
|
|
touch have-sdf2
|
|
|
|
|
|
|
|
build-sdf2: have-sdf2
|
|
|
|
(pfx=`pwd` && \
|
|
|
|
cd $(SDF2) && \
|
|
|
|
./configure --prefix=$$pfx/inst && \
|
|
|
|
make && \
|
|
|
|
make install)
|
|
|
|
touch build-sdf2
|
|
|
|
|
|
|
|
|
|
|
|
all: build-db build-aterm build-sdf2
|
|
|
|
|
|
|
|
EXTRA_DIST = $(DB).tar.gz $(ATERM).tar.gz $(SDF2).tar.gz
|