| 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 | |
| 7 | name=db |
| 8 | version=4.7.25 |
| 9 | release=4 |
| 10 | source=(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 | |
| 13 | build() { |
| 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 | } |