Contents of /trunk/core/db/db-4.7.25-r1.smage2
Parent Directory | Revision Log
Revision 211 -
(show annotations)
(download)
Wed Oct 15 09:55:12 2008 UTC (15 years, 11 months ago) by niro
File size: 1441 byte(s)
Wed Oct 15 09:55:12 2008 UTC (15 years, 11 months ago) by niro
File size: 1441 byte(s)
-ver bump to 4.7.25-r1
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.7.25" |
5 | PBUILD="r1" |
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 | UP2URI="http://www.oracle.com/technology/software/products/berkeley-db/index.html" |
26 | UP2DATE="updatecmd ${UP2URI} | grep '\]Berkeley DB' | sed 's/.*DB \([^ ]*\) .*/\1/;q'" |
27 | |
28 | src_compile() |
29 | { |
30 | cd ${SRCDIR}/build_unix |
31 | |
32 | local conf |
33 | [[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly" |
34 | |
35 | ../dist/configure \ |
36 | --host=${CHOST} \ |
37 | --sysconfdir=/etc \ |
38 | --infodir=/usr/share/info \ |
39 | --mandir=/usr/share/man \ |
40 | --libdir=/usr/$(mlibdir) \ |
41 | --localstatedir=/var/lib \ |
42 | --prefix=/usr \ |
43 | --enable-compat185 \ |
44 | --enable-cxx \ |
45 | --enable-static \ |
46 | --enable-shared \ |
47 | --enable-rpc \ |
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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |