pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/libtasn1 Fix build under Mac OS X:
details: https://anonhg.NetBSD.org/pkgsrc/rev/ab5f34f9db1b
branches: trunk
changeset: 553879:ab5f34f9db1b
user: tron <tron%pkgsrc.org@localhost>
date: Mon Feb 02 11:58:47 2009 +0000
description:
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:
security/libtasn1/Makefile | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r dc367d96e34a -r ab5f34f9db1b security/libtasn1/Makefile
--- a/security/libtasn1/Makefile Mon Feb 02 11:14:11 2009 +0000
+++ b/security/libtasn1/Makefile Mon Feb 02 11:58:47 2009 +0000
@@ -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 @@
#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"
Home |
Main Index |
Thread Index |
Old Index