-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1621 from mariux64/update-db4830
remove berkeley db and setup compat
- Loading branch information
Showing
2 changed files
with
69 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/usr/bin/env beesh | ||
|
||
# BEE_VERSION db_compat-4.8.30-0 | ||
|
||
# hardwired compat version | ||
# 4.8.26 source not found anymore | ||
# pulled 4.8.30 from | ||
# https://ftp6.gwdg.de/pub/linux/slackware/slackware-14.0/source/l/db48/db-4.8.30.tar.xz | ||
SRCURL[0]="/src/mariux/md5repo/de18e52d5ec52489621cbab083858484/db-4.8.30.tar.xz" | ||
|
||
# PATCHURL+=() | ||
|
||
#build_in_sourcedir | ||
|
||
# sourcesubdir_append src | ||
|
||
#mee_extract() { | ||
# bee_extract "${@}" | ||
#} | ||
|
||
#mee_patch() { | ||
# bee_patch "${@}" | ||
#} | ||
|
||
mee_patch_post() { | ||
# fix error on install docs | ||
sed -i '/^library_install:/ s/install_docs//' ${S}/dist/Makefile.in | ||
} | ||
|
||
mee_configure() { | ||
# cd build_unix | ||
CFLAGS="-O2 -fPIC" \ | ||
CXXFLAGS=${CFLAGS} \ | ||
${S}/dist/configure \ | ||
--prefix=${PREFIX} \ | ||
--enable-compat185 \ | ||
--enable-cxx \ | ||
--disable-test \ | ||
--enable-shared "${@}" | ||
} | ||
|
||
mee_build() { | ||
make ${BEE_MAKEFLAGS} ${DEFCONFIG} "$@" | ||
} | ||
|
||
mee_install() { | ||
make ${BEE_MAKEFLAGS} install ${DEFCONFIG} DESTDIR=${D} "$@" | ||
} | ||
|
||
mee_install_post() { | ||
rm -vrf ${D}/usr/include | ||
rm -vrf ${D}/usr/bin | ||
rm -vf ${D}/usr/lib/libdb.a | ||
rm -vf ${D}/usr/lib/libdb-4.8.a | ||
rm -vf ${D}/usr/lib/libdb_cxx.a | ||
rm -vf ${D}/usr/lib/libdb_cxx-4.8.a | ||
rm -vf ${D}/usr/lib/libdb.so | ||
rm -vf ${D}/usr/lib/libdb_cxx.so | ||
} | ||
|
||
if [ -z "${DEFCONFIG}" ] ; then | ||
for var in prefix eprefix bindir sbindir libexecdir sysconfdir \ | ||
sharedstatedir localstatedir libdir includedir \ | ||
datarootdir datadir infodir localedir mandir docdir ; do | ||
DEFCONFIG="${DEFCONFIG} \${${var^^}:+${var^^}=\${${var^^}}}" | ||
done | ||
fi | ||
|
||
eval DEFCONFIG=\"${DEFCONFIG}\" |