Magellan Linux

Contents of /branches/R11-stable/core/db53-compat/db53-compat-5.3.28-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21603 - (show annotations) (download)
Mon Jul 21 09:20:49 2014 UTC (9 years, 9 months ago) by niro
File size: 1505 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="db53-compat"
4 PVER="5.3.28"
5 PBUILD="r1"
6
7 PCAT="dev-db"
8
9 DESCRIPTION="Berkley Database v${PVER%.*} libraries and utilities."
10 HOMEPAGE="http://www.sleepycat.com/"
11
12 DEPEND=">= virtual/glibc"
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://db/${SRCFILE}
23 )
24
25 UP2URI="http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html"
26 UP2DATE="updatecmd ${UP2URI} | firsttarball gz"
27
28 src_compile()
29 {
30 export SRCSUBDIR="build_unix"
31
32 local conf
33 [[ ${ARCH} = x86_64 ]] && conf+=" --with-mutex=x86/gcc-assembly"
34
35 # enable dbm compat, at least pam needs it!
36 conf+=" --enable-dbm"
37
38 all-abis ../dist/configure \
39 --host=${CHOST} \
40 --sysconfdir=/etc \
41 --infodir=/usr/share/info \
42 --mandir=/usr/share/man \
43 --libdir=/usr/'$(mlibdir)' \
44 --localstatedir=/var/lib \
45 --prefix=/usr \
46 --enable-compat185 \
47 --enable-cxx \
48 --enable-static \
49 --enable-shared \
50 ${conf} \
51 || die
52
53 # force linking against nptl
54 mmake LIBSO_LIBS="-lpthread" || die
55 }
56
57 src_install()
58 {
59 export SRCSUBDIR="build_unix"
60
61 mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
62 zapmost ${BINDIR} \
63 usr/$(mlibdir)/libdb-${PVER%.*}.so \
64 $([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb-${PVER%.*}.so") \
65 usr/$(mlibdir)/libdb_cxx-${PVER%.*}.so \
66 $([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb_cxx-${PVER%.*}.so") \
67 || die
68 }