Magellan Linux

Contents of /trunk/core/db/db-4.6.21-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 6 months ago) by niro
File size: 1270 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/db/db-4.6.21-r3.smage2,v 1.2 2008/05/06 21:17:07 niro Exp $
2
3 PNAME="db"
4 PVER="4.6.21"
5 PBUILD="r3"
6
7 PCATEGORIE="dev-db"
8 STATE="unstable"
9
10 DESCRIPTION="Berkley Database v${PVER:0:3} libraries and utilities."
11 HOMEPAGE="http://www.sleepycat.com/"
12
13 DEPEND=""
14
15 SRCFILE="${PNAME}-${PVER:0:6}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER:0:6}"
17
18 sminclude mbuild
19
20 SRC_URI=(
21 http://download-east.oracle.com/berkeley-db/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 src_compile()
26 {
27 cd ${SRCDIR}/build_unix
28
29 local conf
30 [[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly"
31
32 ../dist/configure \
33 --host=${CHOST} \
34 --sysconfdir=/etc \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 --libdir=/usr/$(mlibdir) \
38 --localstatedir=/var/lib \
39 --prefix=/usr \
40 --enable-compat185 \
41 --enable-cxx \
42 --enable-static \
43 --enable-shared \
44 --enable-rpc \
45 ${conf} \
46 || die
47
48 # force linking against nptl
49 mmake LIBSO_LIBS="-lpthread" || die
50 }
51
52 src_install()
53 {
54 cd ${SRCDIR}/build_unix
55
56 mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
57 cd ${SRCDIR}; minstalldocs LICENSE README || die
58
59 # remove broken /var/tmp dirs
60 if [[ -d ${BINDIR}/var ]]
61 then
62 rm -rf ${BINDIR}/var || die
63 fi
64 }

Properties

Name Value
svn:keywords Id