Magellan Linux

Annotation of /branches/R11-stable/core/db48-compat/db48-compat-4.8.30-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12062 - (hide annotations) (download)
Fri May 4 12:04:47 2012 UTC (12 years, 1 month ago) by niro
Original Path: trunk/core/db48-compat/db48-compat-4.8.30-r3.smage2
File size: 1424 byte(s)
-fixed up2date
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 niro 12062 UP2URI="http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html"
26 niro 11518 UP2DATE="updatecmd ${UP2URI} | firsttarball gz"
27    
28     src_compile()
29     {
30 niro 11523 export SRCSUBDIR="build_unix"
31 niro 11520
32 niro 11523 local conf
33     [[ ${ARCH} = x86_64 ]] && conf="--with-mutex=x86/gcc-assembly"
34 niro 11518
35 niro 11524 all-abis ../dist/configure \
36 niro 11523 --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     ${conf} \
48     || die
49 niro 11518
50 niro 11523 # force linking against nptl
51     mmake LIBSO_LIBS="-lpthread" || die
52 niro 11518 }
53    
54     src_install()
55     {
56 niro 11523 export SRCSUBDIR="build_unix"
57    
58     mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
59 niro 11521 zapmost ${BINDIR} \
60     usr/$(mlibdir)/libdb-${PVER%.*}.so \
61     $([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb-${PVER%.*}.so") \
62     usr/$(mlibdir)/libdb_cxx-${PVER%.*}.so \
63     $([[ $(mlibdir) != lib ]] && echo "usr/lib/libdb_cxx-${PVER%.*}.so") \
64     || die
65 niro 11518 }