Magellan Linux

Annotation of /branches/magellan-next/core/db50-compat/db50-compat-5.0.32-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7367 - (hide annotations) (download)
Tue Jan 11 17:36:46 2011 UTC (13 years, 4 months ago) by niro
File size: 1286 byte(s)
-fixed zapmost cmd
1 niro 7365 # $Id: db-4.8.24-r1.smage2 3552 2009-10-26 11:51:21Z niro $
2    
3     PNAME="db50-compat"
4     PVER="5.0.32"
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="db-${PVER}.tar.gz"
16 niro 7366 SRCDIR="${BUILDDIR}/db-${PVER}"
17 niro 7365
18     sminclude mbuild zapmost
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} | firsttarball gz"
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     ${conf} \
48     || die
49    
50     # force linking against nptl
51     mmake LIBSO_LIBS="-lpthread" || die
52     }
53    
54     src_install()
55     {
56     cd ${SRCDIR}/build_unix
57     mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
58 niro 7367 zapmost ${BINDIR}/usr/$(mlibdir) libdb-${PVER%.*}.so libdb_cxx-${PVER%.*}.so || die
59 niro 7365 }