Magellan Linux

Contents of /trunk/core/db/db-5.3.15-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9951 - (show annotations) (download)
Sun Jan 15 01:10:19 2012 UTC (12 years, 5 months ago) by niro
File size: 1463 byte(s)
auto added: ver bump to 5.3.15-r1
1 # $Id$
2
3 PNAME="db"
4 PVER="5.3.15"
5 PBUILD="r1"
6
7 PCAT="dev-db"
8
9 DESCRIPTION="Berkley Database v${PVER:0:3} libraries and utilities."
10 HOMEPAGE="http://www.sleepycat.com/"
11
12 DEPEND=">= dev-db/db48-compat-4.8
13 >= dev-db/db50-compat-5.0
14 >= dev-db/db50-compat-5.1
15 >= dev-db/db50-compat-5.2"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mbuild
21 msetfeature "!check"
22
23 SRC_URI=(
24 http://download.oracle.com/berkeley-db/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 UP2URI="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
29 UP2DATE="updatecmd ${UP2URI} | firsttarball gz"
30
31 src_compile()
32 {
33 cd ${SRCDIR}/build_unix
34
35 local conf
36 [[ ${ARCH} = x86_64 ]] && conf+=" --with-mutex=x86/gcc-assembly"
37
38 # enable dbm compat, at least pam needs it!
39 conf+=" --enable-dbm"
40
41 ../dist/configure \
42 --host=${CHOST} \
43 --sysconfdir=/etc \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 --libdir=/usr/$(mlibdir) \
47 --localstatedir=/var/lib \
48 --prefix=/usr \
49 --enable-compat185 \
50 --enable-cxx \
51 --enable-static \
52 --enable-shared \
53 ${conf} \
54 || die
55
56 # force linking against nptl
57 mmake LIBSO_LIBS="-lpthread" || die
58 }
59
60 src_install()
61 {
62 cd ${SRCDIR}/build_unix
63
64 mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
65 cd ${SRCDIR}; minstalldocs LICENSE README || die
66
67 # remove broken /var/tmp dirs
68 if [[ -d ${BINDIR}/var ]]
69 then
70 rm -rf ${BINDIR}/var || die
71 fi
72 }