Contents of /trunk/core/db48-compat/db48-compat-4.8.30-r3.smage2
Parent Directory | Revision Log
Revision 11518 -
(show annotations)
(download)
Mon Mar 12 14:21:52 2012 UTC (12 years, 6 months ago) by niro
File size: 1381 byte(s)
Mon Mar 12 14:21:52 2012 UTC (12 years, 6 months ago) by niro
File size: 1381 byte(s)
-multilib
1 | # $Id$ |
2 | |
3 | PNAME="db48-compat" |
4 | PVER="4.8.30" |
5 | PBUILD="r3" |
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 multilib cleanutils |
18 | msetfeature "!check" |
19 | |
20 | SRC_URI=( |
21 | http://download.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} | firsttarball gz" |
27 | |
28 | src_compile() |
29 | { |
30 | local abi |
31 | for abi in ${MULTILIB_ABIS} |
32 | do |
33 | cd ${SRCDIR}-${abi}/build_unix |
34 | |
35 | local conf |
36 | [[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly" |
37 | |
38 | ../dist/configure \ |
39 | --host=${CHOST} \ |
40 | --sysconfdir=/etc \ |
41 | --infodir=/usr/share/info \ |
42 | --mandir=/usr/share/man \ |
43 | --libdir=/usr/$(mlibdir) \ |
44 | --localstatedir=/var/lib \ |
45 | --prefix=/usr \ |
46 | --enable-compat185 \ |
47 | --enable-cxx \ |
48 | --enable-static \ |
49 | --enable-shared \ |
50 | ${conf} \ |
51 | || die |
52 | |
53 | # force linking against nptl |
54 | mmake LIBSO_LIBS="-lpthread" || die |
55 | done |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | local abi |
61 | for abi in ${MULTILIB_ABIS} |
62 | do |
63 | cd ${SRCDIR}-${abi}/build_unix |
64 | mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die |
65 | zapmost ${BINDIR} usr/$(mlibdir)/libdb-${PVER%.*}.so usr/$(mlibdir)/libdb_cxx-${PVER%.*}.so || die |
66 | done |
67 | } |