Magellan Linux

Contents of /smage/trunk/core/db/db-6.2.32-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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