summaryrefslogtreecommitdiff
path: root/security/libtasn1
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2009-02-02 11:58:47 +0000
committertron <tron@pkgsrc.org>2009-02-02 11:58:47 +0000
commitea71974691a75ab2e2b9c62a6fb9dcc136b266de (patch)
tree234c693d3b37072ac5a999c5274366835353ae83 /security/libtasn1
parent95f48dd452e48f736cee1c35ac27d83b08155485 (diff)
downloadpkgsrc-ea71974691a75ab2e2b9c62a6fb9dcc136b266de.tar.gz
Fix build under Mac OS X:
The GNU library ends up being empty and "ar" complains if you try to create an archive. Simply skip the directory during the build to avoid this.
Diffstat (limited to 'security/libtasn1')
-rw-r--r--security/libtasn1/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/security/libtasn1/Makefile b/security/libtasn1/Makefile
index 1655bba02ae..cb169186e81 100644
--- a/security/libtasn1/Makefile
+++ b/security/libtasn1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2009/01/31 08:58:55 adam Exp $
+# $NetBSD: Makefile,v 1.40 2009/02/02 11:58:47 tron Exp $
DISTNAME= libtasn1-1.8
CATEGORIES= security devel
@@ -21,12 +21,18 @@ INFO_FILES= yes
#LICENSE= gnu-lgpl-v2.1 and gnu-gpl-3.0
.include "../../mk/bsd.prefs.mk"
-
-# Darwin has no prototype for getopt_long and no declaration for
+# Mac OS X 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
CFLAGS+= -fno-common
+
+# The "gnu" library ends up being empty and Mac OS X's "ar" doesn't like
+# to create empty archives. Just don't build the library.
+SUBST_CLASSES+= gllib
+SUBST_STAGE.gllib= post-configure
+SUBST_FILES.gllib= lib/Makefile
+SUBST_SED.gllib= -e "s/SUBDIRS = gllib//"
.endif
.include "../../mk/bsd.pkg.mk"