Annotation of /branches/R11-stable/core/db48-compat/db48-compat-4.8.30-r3.smage2
Parent Directory | Revision Log
Revision 11520 -
(hide annotations)
(download)
Mon Mar 12 14:39:00 2012 UTC (12 years, 6 months ago) by niro
Original Path: trunk/core/db48-compat/db48-compat-4.8.30-r3.smage2
File size: 1484 byte(s)
Mon Mar 12 14:39:00 2012 UTC (12 years, 6 months ago) by niro
Original Path: trunk/core/db48-compat/db48-compat-4.8.30-r3.smage2
File size: 1484 byte(s)
-fix libdir too
1 | niro | 11518 | # $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 | niro | 11520 | case ${abi} in |
34 | m32) export ABI_LIBDIR="lib" ;; | ||
35 | m64) export ABI_LIBDIR="lib64" ;; | ||
36 | esac | ||
37 | |||
38 | niro | 11518 | cd ${SRCDIR}-${abi}/build_unix |
39 | |||
40 | local conf | ||
41 | [[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly" | ||
42 | |||
43 | ../dist/configure \ | ||
44 | --host=${CHOST} \ | ||
45 | --sysconfdir=/etc \ | ||
46 | --infodir=/usr/share/info \ | ||
47 | --mandir=/usr/share/man \ | ||
48 | --libdir=/usr/$(mlibdir) \ | ||
49 | --localstatedir=/var/lib \ | ||
50 | --prefix=/usr \ | ||
51 | --enable-compat185 \ | ||
52 | --enable-cxx \ | ||
53 | --enable-static \ | ||
54 | --enable-shared \ | ||
55 | ${conf} \ | ||
56 | || die | ||
57 | |||
58 | # force linking against nptl | ||
59 | niro | 11519 | oldmmake LIBSO_LIBS="-lpthread" || die |
60 | niro | 11518 | done |
61 | } | ||
62 | |||
63 | src_install() | ||
64 | { | ||
65 | local abi | ||
66 | for abi in ${MULTILIB_ABIS} | ||
67 | do | ||
68 | cd ${SRCDIR}-${abi}/build_unix | ||
69 | niro | 11519 | oldmmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die |
70 | niro | 11518 | zapmost ${BINDIR} usr/$(mlibdir)/libdb-${PVER%.*}.so usr/$(mlibdir)/libdb_cxx-${PVER%.*}.so || die |
71 | done | ||
72 | } |