27 |
SRC_URI=( |
SRC_URI=( |
28 |
http://www.samba.org/ftp/${PNAME}/${SRCFILE} |
http://www.samba.org/ftp/${PNAME}/${SRCFILE} |
29 |
mirror://${PNAME}/${SRCFILE} |
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" |
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() |
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 \ |
mconfigure \ |
55 |
--disable-rpath \ |
--disable-rpath \ |
56 |
--disable-rpath-install \ |
--disable-rpath-install \ |
58 |
--builtin-libraries=replace \ |
--builtin-libraries=replace \ |
59 |
--with-modulesdir=/usr/'$(mlibdir)'/ldb/modules \ |
--with-modulesdir=/usr/'$(mlibdir)'/ldb/modules \ |
60 |
--with-privatelibdir=/usr/'$(mlibdir)'/ldb \ |
--with-privatelibdir=/usr/'$(mlibdir)'/ldb \ |
61 |
|
${myconf} \ |
62 |
|| die |
|| die |
63 |
|
|
64 |
mmake || die |
mmake || die |