Magellan Linux

Contents of /branches/magellan-next/core/db/db-5.1.19-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6623 - (show annotations) (download)
Thu Sep 9 17:10:31 2010 UTC (13 years, 9 months ago) by niro
File size: 1430 byte(s)
auto added: ver bump to 5.1.19-r1
1 # $Id: db-4.8.24-r1.smage2 3552 2009-10-26 11:51:21Z niro $
2
3 PNAME="db"
4 PVER="5.1.19"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-db"
8 STATE="unstable"
9
10 DESCRIPTION="Berkley Database v${PVER%.*} libraries and utilities."
11 HOMEPAGE="http://www.oracle.com/us/products/database/berkeley-db/"
12
13 DEPEND=""
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mbuild
19
20 SRC_URI=(
21 http://download.oracle.com/otn/berkeley-db/${SRCFILE}
22 http://download-east.oracle.com/berkeley-db/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2URI="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
27 UP2DATE="updatecmd ${UP2URI} | firsttarball gz"
28
29 src_compile()
30 {
31 cd ${SRCDIR}/build_unix
32
33 local conf
34 [[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly"
35
36 ../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 cd ${SRCDIR}/build_unix
58
59 mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
60 cd ${SRCDIR}; minstalldocs LICENSE README || die
61
62 # remove broken /var/tmp dirs
63 if [[ -d ${BINDIR}/var ]]
64 then
65 rm -rf ${BINDIR}/var || die
66 fi
67 }