summaryrefslogtreecommitdiff
path: root/net/samba4/Makefile
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-05-26 15:11:25 +0000
committerjperkin <jperkin>2015-05-26 15:11:25 +0000
commit7657c081ec96e17486c118b98ee2ffbffa46d7fd (patch)
tree756226505cc4b03d866ec79ddd2d65c096b84129 /net/samba4/Makefile
parent8011b11f65fac56021b7962915f596b863f613d6 (diff)
downloadpkgsrc-7657c081ec96e17486c118b98ee2ffbffa46d7fd.tar.gz
Various changes to fix the build and install on SunOS.
Diffstat (limited to 'net/samba4/Makefile')
-rw-r--r--net/samba4/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/samba4/Makefile b/net/samba4/Makefile
index 30d45142082..991b8379b40 100644
--- a/net/samba4/Makefile
+++ b/net/samba4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2015/05/24 05:24:12 spz Exp $
+# $NetBSD: Makefile,v 1.6 2015/05/26 15:11:25 jperkin Exp $
DISTNAME= samba-${VERSION}
PKGREVISION= 2
@@ -15,6 +15,8 @@ DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
VERSION= 4.2.1
CONFLICTS+= ja-samba-[0-9]* pam-smbpass-[0-9]* tdb-[0-9]* winbind-[0-9]*
+BUILD_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+
BUILD_DEFS+= VARBASE
.include "../../mk/bsd.prefs.mk"
@@ -96,9 +98,14 @@ CONFIGURE_ARGS+= --jobs=1
.endif
# for winbind option build.
+.if ${OPSYS} != "SunOS"
LDFLAGS+= -Wl,--allow-shlib-undefined
+.endif
+LDFLAGS+= ${BUILDLINK_LDADD.gettext}
LDFLAGS+= ${COMPILER_RPATH_FLAG}${SMB_PRIVATELIB}
+CFLAGS.SunOS+= -DHAVE_SOLARIS_GETGRENT_R
+
.include "options.mk"
PLIST_VARS+= macosx
@@ -187,5 +194,6 @@ PY_PATCHPLIST= yes
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
+BUILDLINK_API_DEPENDS.mit-krb5+= mit-krb5>=1.9.0
.include "../../security/mit-krb5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"