Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/db/db-5.1.25-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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