summaryrefslogtreecommitdiff
path: root/security/libtasn1
diff options
context:
space:
mode:
authorgrant <grant>2004-12-18 18:51:39 +0000
committergrant <grant>2004-12-18 18:51:39 +0000
commit7b0a553bda7b29b787de6176ef1e6bdfcda862be (patch)
tree4b01425398f10eb9be81683c589052f4ba3f5983 /security/libtasn1
parent9868958aaa3f785a8fbb82d46348fe1a2c04201d (diff)
downloadpkgsrc-7b0a553bda7b29b787de6176ef1e6bdfcda862be.tar.gz
ignore getopt_long() on Darwin because there is no prototype for it,
nor declaration for "struct option". fixes build on Darwin.
Diffstat (limited to 'security/libtasn1')
-rw-r--r--security/libtasn1/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/security/libtasn1/Makefile b/security/libtasn1/Makefile
index b0c35f92085..4ab854ddf93 100644
--- a/security/libtasn1/Makefile
+++ b/security/libtasn1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/10/03 00:18:10 tv Exp $
+# $NetBSD: Makefile,v 1.13 2004/12/18 18:51:39 grant Exp $
DISTNAME= libtasn1-0.2.10
PKGREVISION= 1
@@ -18,4 +18,13 @@ USE_BUILDLINK3= YES
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
+.include "../../mk/bsd.prefs.mk"
+
+# Darwin has no prototype for getopt_long and no declaration for
+# struct option, so ignore getopt_long() even though the test
+# succeeds.
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ENV+= ac_cv_func_getopt_long=no
+.endif
+
.include "../../mk/bsd.pkg.mk"