2018-01-15 13:30:51 +01:00
|
|
|
VERSION="6.2.32"
|
|
|
|
SRCDIR="db-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="http://download.oracle.com/berkeley-db/"
|
|
|
|
SHA256SUM="a9c5e2b004a5777aa03510cfe5cd766a4a3b777713406b02809c17c8e0e7a8fb"
|
2018-02-15 23:47:54 +01:00
|
|
|
DEPENDS="toolchain"
|
2018-01-15 13:30:51 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
$1/dist/configure --prefix="" --host="$TARGET" --enable-compat185 \
|
|
|
|
--enable-dbm --disable-static --enable-cxx
|
2018-01-15 13:30:51 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
|
|
|
local DEVDEPLOY="$3"
|
2018-01-15 13:30:51 +01:00
|
|
|
|
|
|
|
make DESTDIR="$DEPLOY" install
|
|
|
|
|
2018-02-15 14:24:53 +01:00
|
|
|
chmod 755 ${DEPLOY}/bin/db_*
|
|
|
|
strip_files ${DEPLOY}/lib/*.so ${DEPLOY}/bin/db_*
|
2018-01-15 13:30:51 +01:00
|
|
|
|
|
|
|
rm -r "$DEPLOY/docs"
|
2018-02-10 01:57:53 +01:00
|
|
|
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
2018-01-15 13:30:51 +01:00
|
|
|
}
|