blob: b2cbd78616e355e83a590828692e2eac61cb06ec (
plain)
1 # Description: Berkeley DB
2 # URL: http://www.sleepycat.com/products/db.shtml
3 # Maintainer: Per Lidén, core-ports at crux dot nu
4
5 name=db
6 version=4.4.20
7 release=1
8 source=(ftp://ftp.sleepycat.com/releases/$name-$version.tar.gz \
9 http://www.sleepycat.com/update/4.4.20/patch.4.4.20.1 \
10 http://www.sleepycat.com/update/4.4.20/patch.4.4.20.2)
11
12 build() {
13 cd $name-$version
14 patch -p0 < ../patch.4.4.20.1
15 patch -p0 < ../patch.4.4.20.2
16 cd build_unix
17 LDFLAGS="-lpthread" \
18 ../dist/configure --prefix=/usr \
19 --enable-compat185 \
20 --enable-shared \
21 --enable-static \
22 --enable-cxx
23 make
24 make DESTDIR=$PKG install
25 rm -rf $PKG/usr/docs
26 chmod -R +w $PKG
27 }
|