Magellan Linux

Annotation of /trunk/extras/ldb/ldb-1.4.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31774 - (hide annotations) (download)
Fri Dec 7 10:36:14 2018 UTC (5 years, 5 months ago) by niro
File size: 1328 byte(s)
-added more multilib fixes and fixed make check issues on 32bit systems
1 niro 31768 # $Id$
2    
3     PNAME="ldb"
4     PVER="1.4.3"
5     PBUILD="r1"
6    
7     PCAT="dev-db"
8    
9     DESCRIPTION="A schema-less, ldap like, API and database."
10     HOMEPAGE="http://ldb.samba.org/"
11    
12     DEPEND=">= dev-libs/popt-1.16
13     >= dev-libs/talloc-2.1
14     >= dev-libs/tevent-0.9
15     >= dev-db/tdb-1.3
16     >= dev-db/lmdb-0.9"
17    
18 niro 31770 SDEPEND=">= dev-lang/python-2.7
19     >= dev-util/cmocka-1.1
20     >= app-text/docbook-xsl-stylesheets-1.76"
21 niro 31768
22     SRCFILE="${PNAME}-${PVER}.tar.gz"
23     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24    
25     sminclude multilib mbuild
26    
27     SRC_URI=(
28     http://www.samba.org/ftp/${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30 niro 31774 mirror://${PNAME}/0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch
31 niro 31768 )
32    
33     UP2DATE="updatecmd http://www.samba.org/ftp/${PNAME}/ | grep '/${PNAME}-' | highesttarball gz"
34    
35 niro 31774 src_prepare()
36     {
37     munpack ${SRCFILE} || die
38     mpatch 0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch || die
39     }
40    
41 niro 31768 src_compile()
42     {
43 niro 31774 local myconf
44    
45     if [[ ${ARCH} != x86_64 ]]
46     then
47     myconf+=" --without-ldb-lmdb"
48     fi
49     if [[ ${MULTILIB} = true ]]
50     then
51     myconf='$(MULTILIB_VERBOSE=false only-m32 echo "--without-ldb-lmdb")'
52     fi
53    
54 niro 31768 mconfigure \
55     --disable-rpath \
56     --disable-rpath-install \
57     --bundled-libraries=NONE \
58     --builtin-libraries=replace \
59     --with-modulesdir=/usr/'$(mlibdir)'/ldb/modules \
60     --with-privatelibdir=/usr/'$(mlibdir)'/ldb \
61 niro 31774 ${myconf} \
62 niro 31768 || die
63    
64     mmake || die
65     }