Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=multilib.git;a=commitdiff;h=67c4781f601b416d245d341ad531b69b4078423c
commit 67c4781f601b416d245d341ad531b69b4078423c Author: crazy <[email protected]> Date: Mon Oct 24 00:17:18 2016 +0200 db-6.2.23-2-x86_64 * after ncurses this is the second weird-combined-build diff --git a/source/base/db/FrugalBuild b/source/base/db/FrugalBuild index 9d089c7..eba9c2c 100644 --- a/source/base/db/FrugalBuild +++ b/source/base/db/FrugalBuild @@ -4,40 +4,57 @@ pkgname=db pkgver=6.2.23 -pkgrel=1 +pkgrel=2 pkgdesc="The Berkeley DB embedded database system" url="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html" -depends=('libstdc++>=6.2.1-5') +depends=('libstdc++>=6.2.1-8') groups=('base' 'chroot-core') -archs=('i686' 'x86_64') +archs=('x86_64') up2date="Flasttar $url" source=(http://download.oracle.com/berkeley-db/db-$pkgver.tar.gz) sha1sums=('646c57b99799dc300207976e2270cdaca1a2f198') +_F_cross32_simple_auto="yes" +Finclude cross32 ### # NOTE! Every time you bump this package, perl-berkeleydb needs bumping, too! ## +Fconfopts+=" --enable-compat185 --enable-shared --disable-static --enable-cxx \ + --enable-stl --enable-localization --enable-dbm" + +_build() { + + Fconf + Fexec make LIBSO_LIBS=-lpthread || Fdie + Fmakeinstall + Frm usr/docs/ +} + build() { - [ "$CARCH" == "x86_64" ] && Fconfopts+=" --with-mutex=x86/gcc-assembly" Fcd - cd build_unix || Fdie + Fcross32_copy_source ## backup source + Fexec cd build_unix || Fdie _F_conf_configure=../dist/configure - Fconf --enable-compat185 \ - --enable-shared \ - --disable-static \ - --enable-cxx \ - --enable-stl \ - --enable-localization \ - --enable-dbm + Fcross32_prepare ## uset 64bit vars and setup 32bit - make LIBSO_LIBS=-lpthread || Fdie + _build ## common buiild for both - Fmakeinstall + ## setup 65bit + Fcross32_copy_back_source ## get fresh source + Fcross32_reset_and_fix ## reset to 64bit + Fcross32_delete_empty ## clean subpackage + Fconfopts="" ## note this is needed for some package + + Fsplit "${subpkgs[0]}" /\* ## split lib32-* - Frm /usr/docs/ + [ "$CARCH" == "x86_64" ] && Fconfopts+=" --with-mutex=x86/gcc-assembly" + Fcd + Fexec cd build_unix || Fdie + _F_conf_configure=../dist/configure + _build # add compat symlink, for example for LibreOffice Fln . /usr/include/db } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
