Contents of /trunk/core/db50-compat/db50-compat-5.0.32-r2.smage2
Parent Directory | Revision Log
Revision 9943 -
(show annotations)
(download)
Sun Jan 15 00:40:38 2012 UTC (12 years, 8 months ago) by niro
File size: 1227 byte(s)
Sun Jan 15 00:40:38 2012 UTC (12 years, 8 months ago) by niro
File size: 1227 byte(s)
-imported from magellan-next
1 | # $Id$ |
2 | |
3 | PNAME="db50-compat" |
4 | PVER="5.0.32" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="dev-db" |
8 | |
9 | DESCRIPTION="Berkley Database v${PVER%.*} libraries and utilities." |
10 | HOMEPAGE="http://www.sleepycat.com/" |
11 | |
12 | DEPEND="" |
13 | |
14 | SRCFILE="db-${PVER}.tar.gz" |
15 | SRCDIR="${BUILDDIR}/db-${PVER}" |
16 | |
17 | sminclude mbuild cleanutils |
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 | ../dist/configure \ |
35 | --host=${CHOST} \ |
36 | --sysconfdir=/etc \ |
37 | --infodir=/usr/share/info \ |
38 | --mandir=/usr/share/man \ |
39 | --libdir=/usr/$(mlibdir) \ |
40 | --localstatedir=/var/lib \ |
41 | --prefix=/usr \ |
42 | --enable-compat185 \ |
43 | --enable-cxx \ |
44 | --enable-static \ |
45 | --enable-shared \ |
46 | ${conf} \ |
47 | || die |
48 | |
49 | # force linking against nptl |
50 | mmake LIBSO_LIBS="-lpthread" || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR}/build_unix |
56 | mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die |
57 | zapmost ${BINDIR} usr/$(mlibdir)/libdb-${PVER%.*}.so usr/$(mlibdir)/libdb_cxx-${PVER%.*}.so || die |
58 | } |