Magellan Linux

Contents of /trunk/core/db48-compat/db48-compat-4.8.30-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11521 - (show annotations) (download)
Mon Mar 12 14:46:43 2012 UTC (12 years, 3 months ago) by niro
File size: 1637 byte(s)
-fixed zapmost
1 # $Id$
2
3 PNAME="db48-compat"
4 PVER="4.8.30"
5 PBUILD="r3"
6
7 PCAT="dev-db"
8
9 DESCRIPTION="Berkley Database v${PVER%.*} libraries and utilities."
10 HOMEPAGE="http://www.sleepycat.com/"
11
12 DEPEND=""
13
14 SRCFILE="db-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/db-${PVER}"
16
17 sminclude multilib cleanutils
18 msetfeature "!check"
19
20 SRC_URI=(
21 http://download.oracle.com/berkeley-db/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2URI="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
26 UP2DATE="updatecmd ${UP2URI} | firsttarball gz"
27
28 src_compile()
29 {
30 local abi
31 for abi in ${MULTILIB_ABIS}
32 do
33 case ${abi} in
34 m32) export ABI_LIBDIR="lib" ;;
35 m64) export ABI_LIBDIR="lib64" ;;
36 esac
37
38 cd ${SRCDIR}-${abi}/build_unix
39
40 local conf
41 [[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly"
42
43 ../dist/configure \
44 --host=${CHOST} \
45 --sysconfdir=/etc \
46 --infodir=/usr/share/info \
47 --mandir=/usr/share/man \
48 --libdir=/usr/$(mlibdir) \
49 --localstatedir=/var/lib \
50 --prefix=/usr \
51 --enable-compat185 \
52 --enable-cxx \
53 --enable-static \
54 --enable-shared \
55 ${conf} \
56 || die
57
58 # force linking against nptl
59 oldmmake LIBSO_LIBS="-lpthread" || die
60 done
61 }
62
63 src_install()
64 {
65 local abi
66 for abi in ${MULTILIB_ABIS}
67 do
68 cd ${SRCDIR}-${abi}/build_unix
69 oldmmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
70 done
71 zapmost ${BINDIR} \
72 usr/$(mlibdir)/libdb-${PVER%.*}.so \
73 $([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb-${PVER%.*}.so") \
74 usr/$(mlibdir)/libdb_cxx-${PVER%.*}.so \
75 $([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb_cxx-${PVER%.*}.so") \
76 || die
77 }