Contents of /trunk/extras/ldb/ldb-1.4.3-r1.smage2
Parent Directory | Revision Log
Revision 31774 -
(show annotations)
(download)
Fri Dec 7 10:36:14 2018 UTC (5 years, 9 months ago) by niro
File size: 1328 byte(s)
Fri Dec 7 10:36:14 2018 UTC (5 years, 9 months ago) by niro
File size: 1328 byte(s)
-added more multilib fixes and fixed make check issues on 32bit systems
1 | # $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 | SDEPEND=">= dev-lang/python-2.7 |
19 | >= dev-util/cmocka-1.1 |
20 | >= app-text/docbook-xsl-stylesheets-1.76" |
21 | |
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 | mirror://${PNAME}/0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch |
31 | ) |
32 | |
33 | UP2DATE="updatecmd http://www.samba.org/ftp/${PNAME}/ | grep '/${PNAME}-' | highesttarball gz" |
34 | |
35 | 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 | src_compile() |
42 | { |
43 | 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 | 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 | ${myconf} \ |
62 | || die |
63 | |
64 | mmake || die |
65 | } |