diff options
author | ryoon <ryoon@pkgsrc.org> | 2018-12-09 14:48:03 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2018-12-09 14:48:03 +0000 |
commit | 97f094d667f1e9392a9f926fd7c9e4d91babef66 (patch) | |
tree | 23e3ad68c609bd30952d6a90233f4ad2e1f82713 /net/samba4 | |
parent | 7583628e6ae32410283c759ee7c122fafd47d2af (diff) | |
download | pkgsrc-97f094d667f1e9392a9f926fd7c9e4d91babef66.tar.gz |
FIx build on 32-bit architecture environments.
ldb-lmdb part is not buildable for 32-bit architecture environments.
Tested on NetBSD/i386 8.
Diffstat (limited to 'net/samba4')
-rw-r--r-- | net/samba4/Makefile | 14 | ||||
-rw-r--r-- | net/samba4/PLIST | 6 |
2 files changed, 15 insertions, 5 deletions
diff --git a/net/samba4/Makefile b/net/samba4/Makefile index 0b36607bba8..0cc7a692446 100644 --- a/net/samba4/Makefile +++ b/net/samba4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.53 2018/12/03 13:51:52 mlelstv Exp $ +# $NetBSD: Makefile,v 1.54 2018/12/09 14:48:03 ryoon Exp $ DISTNAME= samba-${VERSION} PKGREVISION= 1 @@ -138,6 +138,16 @@ MAKEFLAGS+= PWD_MKDB=${PWD_MKDB:Q} FILES_SUBST+= MKTEMP=${MKTEMP:Q} FILES_SUBST+= PWD_MKDB=${PWD_MKDB:Q} +PLIST_VARS+= 64bit +.if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \ + (defined(ABI) && ${ABI} == "64") +CONFIGURE_ARGS+= --with-ldb-lmdb +PLIST.64bit= yes +.else +CONFIGURE_ARGS+= --without-ldb-lmdb +PLIST.64bit= no +.endif + INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR} DOCDIR= share/doc/${PKGBASE} @@ -184,7 +194,7 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/examples/smb.conf.default \ ${DESTDIR}${PREFIX}/${EGDIR} -REPLACE_PERL= pidl/pidl +REPLACE_PERL+= pidl/pidl REPLACE_PYTHON= buildtools/bin/waf \ source4/setup/* \ source4/scripting/bin/* \ diff --git a/net/samba4/PLIST b/net/samba4/PLIST index 1be768b4fe8..ad98f10dee5 100644 --- a/net/samba4/PLIST +++ b/net/samba4/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.15 2018/12/03 13:51:52 mlelstv Exp $ +@comment $NetBSD: PLIST,v 1.16 2018/12/09 14:48:03 ryoon Exp $ bin/cifsdd bin/dbwrap_tool bin/findsmb @@ -560,7 +560,7 @@ lib/samba/ldb/ldb.so lib/samba/ldb/ldbsamba_extensions.so lib/samba/ldb/linked_attributes.so lib/samba/ldb/local_password.so -lib/samba/ldb/mdb.so +${PLIST.64bit}lib/samba/ldb/mdb.so lib/samba/ldb/new_partition.so lib/samba/ldb/objectclass.so lib/samba/ldb/objectclass_attrs.so @@ -667,7 +667,7 @@ lib/samba/private/libkrb5-samba4.so.26.0.0 lib/samba/private/libkrb5samba-samba4.so lib/samba/private/libldb-cmdline-samba4.so lib/samba/private/libldb-key-value-samba4.so -lib/samba/private/libldb-mdb-int-samba4.so +${PLIST.64-bit}lib/samba/private/libldb-mdb-int-samba4.so lib/samba/private/libldb.so.1 lib/samba/private/libldb.so.1.4.3 lib/samba/private/libldbsamba-samba4.so |