summaryrefslogtreecommitdiff
path: root/security/gnutls
diff options
context:
space:
mode:
authorminskim <minskim>2007-01-21 18:13:55 +0000
committerminskim <minskim>2007-01-21 18:13:55 +0000
commitf1ddc0f192442c122d927592cfd9a1bf6271f9ae (patch)
tree164967c7ff49aa6e32cfe167834beb6314ca524a /security/gnutls
parent1077567036092225be5567145d3019ceba913258 (diff)
downloadpkgsrc-f1ddc0f192442c122d927592cfd9a1bf6271f9ae.tar.gz
Disable the C++ library on Darwin to avoid a link error (PR 35456).
According to the gnutls maintainer, the C++ compiler on Darwin is probably broken.
Diffstat (limited to 'security/gnutls')
-rw-r--r--security/gnutls/Makefile12
-rw-r--r--security/gnutls/PLIST6
2 files changed, 14 insertions, 4 deletions
diff --git a/security/gnutls/Makefile b/security/gnutls/Makefile
index 3f53f87d16b..fac8781ba52 100644
--- a/security/gnutls/Makefile
+++ b/security/gnutls/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2007/01/20 17:38:06 wiz Exp $
+# $NetBSD: Makefile,v 1.57 2007/01/21 18:13:55 minskim Exp $
DISTNAME= gnutls-1.6.1
CATEGORIES= security devel
@@ -37,6 +37,16 @@ MAKE_ENV+= TZ=UTC
DOCDIR= ${PREFIX}/share/doc/gnutls
EGDIR= ${PREFIX}/share/examples/gnutls
+.include "../../mk/bsd.prefs.mk"
+
+# Darwin's g++ cannot build the gnutls C++ library (PR 35456).
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ARGS+= --disable-cxx
+PLIST_SUBST+= CXX="@comment "
+.else
+PLIST_SUBST+= CXX=""
+.endif
+
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} include/gnutls
post-install:
diff --git a/security/gnutls/PLIST b/security/gnutls/PLIST
index a9ee2c750f6..e4046f86111 100644
--- a/security/gnutls/PLIST
+++ b/security/gnutls/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.23 2007/01/20 17:38:06 wiz Exp $
+@comment $NetBSD: PLIST,v 1.24 2007/01/21 18:13:55 minskim Exp $
bin/certtool
bin/gnutls-cli
bin/gnutls-cli-debug
@@ -10,7 +10,7 @@ bin/srptool
include/gnutls/compat.h
include/gnutls/extra.h
include/gnutls/gnutls.h
-include/gnutls/gnutlsxx.h
+${CXX}include/gnutls/gnutlsxx.h
include/gnutls/openpgp.h
include/gnutls/openssl.h
include/gnutls/pkcs12.h
@@ -19,7 +19,7 @@ info/gnutls.info
lib/libgnutls-extra.la
lib/libgnutls-openssl.la
lib/libgnutls.la
-lib/libgnutlsxx.la
+${CXX}lib/libgnutlsxx.la
lib/pkgconfig/gnutls-extra.pc
lib/pkgconfig/gnutls.pc
man/man1/certtool.1