Magellan Linux

Annotation of /branches/R11-unstable/core/db/db-6.2.32-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32231 - (hide annotations) (download)
Mon Apr 29 11:58:34 2019 UTC (5 years ago) by niro
File size: 1426 byte(s)
-release branches/R11-unstable
1 niro 30386 # $Id$
2    
3     PNAME="db"
4     PVER="6.2.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=">= virtual/glibc
13     >= sys-libs/libstdc++-5.3"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     sminclude multilib mbuild
19     msetfeature "!check"
20    
21     SRC_URI=(
22     http://download.oracle.com/berkeley-db/${SRCFILE}
23     mirror://${PNAME}/${SRCFILE}
24     )
25    
26     UP2URI="http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html"
27     UP2DATE="updatecmd ${UP2URI} | firsttarball gz"
28    
29     src_compile()
30     {
31     export SRCSUBDIR="build_unix"
32    
33     local conf
34     [[ ${ARCH} = x86_64 ]] && conf+=" --with-mutex=x86/gcc-assembly"
35    
36     # enable dbm compat, at least pam needs it!
37     conf+=" --enable-dbm"
38    
39     all-abis ../dist/configure \
40     --host=${CHOST} \
41     --sysconfdir=/etc \
42     --infodir=/usr/share/info \
43     --mandir=/usr/share/man \
44     --libdir=/usr/'$(mlibdir)' \
45     --localstatedir=/var/lib \
46     --prefix=/usr \
47     --enable-compat185 \
48     --enable-cxx \
49     --enable-static \
50     --enable-shared \
51     ${conf} \
52     || die
53    
54     # force linking against nptl
55     mmake LIBSO_LIBS="-lpthread" || die
56     }
57    
58     src_install()
59     {
60     SRCSUBDIR="build_unix" \
61     mmake DESTDIR=${BINDIR} docdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER} install || die
62     cd ${SRCDIR}; minstalldocs LICENSE README || die
63    
64     # remove broken /var/tmp dirs
65     if [[ -d ${BINDIR}/var ]]
66     then
67     rm -rf ${BINDIR}/var || die
68     fi
69     }