2003-07-23 17:53:34 +02:00
|
|
|
# Berkeley DB
|
|
|
|
|
2004-01-07 16:53:14 +01:00
|
|
|
DB = db-4.2.52
|
2003-07-23 17:53:34 +02:00
|
|
|
|
|
|
|
$(DB).tar.gz:
|
2003-08-18 10:52:49 +02:00
|
|
|
@echo "Nix requires Berkeley DB to build."
|
2004-01-07 16:53:14 +01:00
|
|
|
@echo "Please download version 4.2.52 from"
|
|
|
|
@echo " http://www.sleepycat.com/update/snapshot/db-4.2.52.tar.gz"
|
2003-08-18 10:52:49 +02:00
|
|
|
@echo "and place it in the externals/ directory."
|
2003-08-18 10:35:16 +02:00
|
|
|
false
|
2003-07-23 17:53:34 +02:00
|
|
|
|
|
|
|
$(DB): $(DB).tar.gz
|
|
|
|
gunzip < $(DB).tar.gz | tar xvf -
|
|
|
|
|
2003-07-24 16:31:39 +02:00
|
|
|
have-db:
|
|
|
|
$(MAKE) $(DB)
|
|
|
|
touch have-db
|
|
|
|
|
|
|
|
build-db: have-db
|
2003-07-23 17:53:34 +02:00
|
|
|
(pfx=`pwd` && \
|
|
|
|
cd $(DB)/build_unix && \
|
2003-11-09 11:31:56 +01:00
|
|
|
CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
|
2004-01-07 16:53:14 +01:00
|
|
|
../dist/configure --prefix=$$pfx/inst \
|
|
|
|
--enable-cxx --disable-shared --disable-cryptography \
|
|
|
|
--disable-replication --disable-verify && \
|
2003-07-23 17:53:34 +02:00
|
|
|
make && \
|
|
|
|
make install)
|
|
|
|
touch build-db
|
|
|
|
|
|
|
|
|
|
|
|
# CWI ATerm
|
|
|
|
|
2003-10-16 10:52:44 +02:00
|
|
|
ATERM = aterm-2.0.5
|
2003-07-23 17:53:34 +02:00
|
|
|
|
|
|
|
$(ATERM).tar.gz:
|
2003-08-18 10:52:49 +02:00
|
|
|
@echo "Nix requires the CWI ATerm library to build."
|
2003-10-16 10:52:44 +02: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 10:52:49 +02:00
|
|
|
@echo "and place it in the externals/ directory."
|
2003-08-18 10:35:16 +02:00
|
|
|
false
|
2003-07-23 17:53:34 +02:00
|
|
|
|
|
|
|
$(ATERM): $(ATERM).tar.gz
|
|
|
|
gunzip < $(ATERM).tar.gz | tar xvf -
|
|
|
|
|
2003-07-24 16:31:39 +02:00
|
|
|
have-aterm:
|
|
|
|
$(MAKE) $(ATERM)
|
|
|
|
touch have-aterm
|
|
|
|
|
|
|
|
build-aterm: have-aterm
|
2003-07-23 17:53:34 +02:00
|
|
|
(pfx=`pwd` && \
|
|
|
|
cd $(ATERM) && \
|
2003-11-09 11:31:56 +01:00
|
|
|
CC="$(CC)" ./configure --prefix=$$pfx/inst \
|
|
|
|
--with-cflags="-DNDEBUG -DXGC_VERBOSE -DXHASHPEM -DWITH_STATS $(CFLAGS)" && \
|
2003-07-23 17:53:34 +02:00
|
|
|
make && \
|
|
|
|
make install)
|
|
|
|
touch build-aterm
|
|
|
|
|
|
|
|
|
2004-01-30 17:32:14 +01:00
|
|
|
all: build-db build-aterm
|
2003-07-23 17:53:34 +02:00
|
|
|
|
2004-01-30 17:32:14 +01:00
|
|
|
EXTRA_DIST = $(DB).tar.gz $(ATERM).tar.gz
|
2003-11-09 11:31:56 +01:00
|
|
|
|
|
|
|
ext-clean:
|
2004-01-30 17:32:14 +01:00
|
|
|
$(RM) -f have-db build-db have-aterm build-aterm
|
|
|
|
$(RM) -rf $(DB) $(ATERM)
|