Magellan Linux

Contents of /branches/R11-unstable/core/db51-compat/db51-compat-5.1.29-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32234 - (show annotations) (download)
Mon Apr 29 11:58:53 2019 UTC (5 years ago) by niro
File size: 1474 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="db51-compat"
4 PVER="5.1.29"
5 PBUILD="r5"
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 >= sys-libs/libstdc++-5.3"
14
15 SRCFILE="db-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/db-${PVER}"
17
18 sminclude multilib mbuild cleanutils
19 msetfeature "!check"
20
21 SRC_URI=(
22 http://download.oracle.com/berkeley-db/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2URI="http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html"
27 UP2DATE="updatecmd ${UP2URI} | firsttarball gz"
28
29 src_compile()
30 {
31 export SRCSUBDIR="build_unix"
32
33 local conf
34 [[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly"
35
36 all-abis ../dist/configure \
37 --host=${CHOST} \
38 --sysconfdir=/etc \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 --libdir=/usr/'$(mlibdir)' \
42 --localstatedir=/var/lib \
43 --prefix=/usr \
44 --enable-compat185 \
45 --enable-cxx \
46 --enable-static \
47 --enable-shared \
48 ${conf} \
49 || die
50
51 # force linking against nptl
52 mmake LIBSO_LIBS="-lpthread" || die
53 }
54
55 src_install()
56 {
57 export SRCSUBDIR="build_unix"
58
59 mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
60 zapmost ${BINDIR} \
61 usr/$(mlibdir)/libdb-${PVER%.*}.so \
62 $([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb-${PVER%.*}.so") \
63 usr/$(mlibdir)/libdb_cxx-${PVER%.*}.so \
64 $([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb_cxx-${PVER%.*}.so") \
65 || die
66 }