CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[crossrootfs.git] / db / Pkgfile
... / ...
CommitLineData
1# Description: Berkeley DB
2# URL: http://www.oracle.com/database/berkeley-db/index.html
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
5# Depends on:
6
7name=db
8version=4.7.25
9release=4
10source=(http://download.oracle.com/berkeley-db/$name-$version.tar.gz \
11 http://www.oracle.com/technology/products/berkeley-db/db/update/$version/patch.$version.{1,2,3,4})
12
13build() {
14 cd $name-$version
15 cat $SRC/patch.$version.{1,2,3,4} | patch -p0
16 cd build_unix
17 LDFLAGS="-lpthread" \
18 ../dist/configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
21 --enable-compat185 \
22 --enable-shared \
23 --enable-static \
24 --enable-cxx
25 make
26 make DESTDIR=$PKG install
27 rm -r $PKG/usr/docs
28 chmod -R +w $PKG
29}