27 |
|
|
28 |
src_compile() |
src_compile() |
29 |
{ |
{ |
30 |
local abi |
export SRCSUBDIR="build_unix" |
31 |
for abi in ${MULTILIB_ABIS} |
|
32 |
do |
local conf |
33 |
case ${abi} in |
[[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly" |
34 |
m32) export ABI_LIBDIR="lib" ;; |
|
35 |
m64) export ABI_LIBDIR="lib64" ;; |
../dist/configure \ |
36 |
esac |
--host=${CHOST} \ |
37 |
|
--sysconfdir=/etc \ |
38 |
cd ${SRCDIR}-${abi}/build_unix |
--infodir=/usr/share/info \ |
39 |
|
--mandir=/usr/share/man \ |
40 |
local conf |
--libdir=/usr/'$(mlibdir)' \ |
41 |
[[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly" |
--localstatedir=/var/lib \ |
42 |
|
--prefix=/usr \ |
43 |
../dist/configure \ |
--enable-compat185 \ |
44 |
--host=${CHOST} \ |
--enable-cxx \ |
45 |
--sysconfdir=/etc \ |
--enable-static \ |
46 |
--infodir=/usr/share/info \ |
--enable-shared \ |
47 |
--mandir=/usr/share/man \ |
${conf} \ |
48 |
--libdir=/usr/$(mlibdir) \ |
|| die |
49 |
--localstatedir=/var/lib \ |
|
50 |
--prefix=/usr \ |
# force linking against nptl |
51 |
--enable-compat185 \ |
mmake LIBSO_LIBS="-lpthread" || die |
|
--enable-cxx \ |
|
|
--enable-static \ |
|
|
--enable-shared \ |
|
|
${conf} \ |
|
|
|| die |
|
|
|
|
|
# force linking against nptl |
|
|
oldmmake LIBSO_LIBS="-lpthread" || die |
|
|
done |
|
52 |
} |
} |
53 |
|
|
54 |
src_install() |
src_install() |
55 |
{ |
{ |
56 |
local abi |
export SRCSUBDIR="build_unix" |
57 |
for abi in ${MULTILIB_ABIS} |
|
58 |
do |
mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die |
|
cd ${SRCDIR}-${abi}/build_unix |
|
|
oldmmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die |
|
|
done |
|
59 |
zapmost ${BINDIR} \ |
zapmost ${BINDIR} \ |
60 |
usr/$(mlibdir)/libdb-${PVER%.*}.so \ |
usr/$(mlibdir)/libdb-${PVER%.*}.so \ |
61 |
$([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb-${PVER%.*}.so") \ |
$([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb-${PVER%.*}.so") \ |