Annotation of /branches/R11-stable/core/db/db-5.3.21-r1.smage2
Parent Directory | Revision Log
Revision 12630 -
(hide annotations)
(download)
Mon Jun 25 13:14:37 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/core/db/db-5.3.21-r1.smage2
File size: 1483 byte(s)
Mon Jun 25 13:14:37 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/core/db/db-5.3.21-r1.smage2
File size: 1483 byte(s)
-prepare usr-move
1 | niro | 12630 | # $Id$ |
2 | |||
3 | PNAME="db" | ||
4 | PVER="5.3.21" | ||
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/db51-compat-5.1 | ||
15 | >= dev-db/db52-compat-5.2" | ||
16 | |||
17 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
19 | |||
20 | sminclude multilib | ||
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/technetwork/products/berkeleydb/downloads/index.html" | ||
29 | UP2DATE="updatecmd ${UP2URI} | firsttarball gz" | ||
30 | |||
31 | src_compile() | ||
32 | { | ||
33 | export SRCSUBDIR="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 | all-abis ../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 | SRCSUBDIR="build_unix" \ | ||
63 | mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die | ||
64 | cd ${SRCDIR}; minstalldocs LICENSE README || die | ||
65 | |||
66 | # remove broken /var/tmp dirs | ||
67 | if [[ -d ${BINDIR}/var ]] | ||
68 | then | ||
69 | rm -rf ${BINDIR}/var || die | ||
70 | fi | ||
71 | } |