Mon Feb 2 11:58:47 2009 UTC ()
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.


(tron)
diff -r1.39 -r1.40 pkgsrc/security/libtasn1/Makefile

cvs diff -r1.39 -r1.40 pkgsrc/security/libtasn1/Makefile (expand / switch to unified diff)

--- pkgsrc/security/libtasn1/Makefile 2009/01/31 08:58:55 1.39
+++ pkgsrc/security/libtasn1/Makefile 2009/02/02 11:58:47 1.40
@@ -1,32 +1,38 @@ @@ -1,32 +1,38 @@
1# $NetBSD: Makefile,v 1.39 2009/01/31 08:58:55 adam Exp $ 1# $NetBSD: Makefile,v 1.40 2009/02/02 11:58:47 tron Exp $
2 2
3DISTNAME= libtasn1-1.8 3DISTNAME= libtasn1-1.8
4CATEGORIES= security devel 4CATEGORIES= security devel
5MASTER_SITES= ${MASTER_SITE_GNU:=gnutls/} \ 5MASTER_SITES= ${MASTER_SITE_GNU:=gnutls/} \
6 ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \ 6 ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
7 ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/ 7 ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.gnutls.org/ 10HOMEPAGE= http://www.gnutls.org/
11COMMENT= ASN.1 structure parser library 11COMMENT= ASN.1 structure parser library
12 12
13PKG_INSTALLATION_TYPES= overwrite pkgviews 13PKG_INSTALLATION_TYPES= overwrite pkgviews
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
15 15
16USE_TOOLS+= makeinfo 16USE_TOOLS+= makeinfo
17USE_LIBTOOL= yes 17USE_LIBTOOL= yes
18GNU_CONFIGURE= yes 18GNU_CONFIGURE= yes
19TEST_TARGET= check 19TEST_TARGET= check
20INFO_FILES= yes 20INFO_FILES= yes
21#LICENSE= gnu-lgpl-v2.1 and gnu-gpl-3.0 21#LICENSE= gnu-lgpl-v2.1 and gnu-gpl-3.0
22 22
23.include "../../mk/bsd.prefs.mk" 23.include "../../mk/bsd.prefs.mk"
24 24# Mac OS X has no prototype for getopt_long and no declaration for
25# Darwin has no prototype for getopt_long and no declaration for 
26# struct option, so ignore getopt_long() even though the test succeeds. 25# struct option, so ignore getopt_long() even though the test succeeds.
27.if ${OPSYS} == "Darwin" 26.if ${OPSYS} == "Darwin"
28CONFIGURE_ENV+= ac_cv_func_getopt_long=no 27CONFIGURE_ENV+= ac_cv_func_getopt_long=no
29CFLAGS+= -fno-common 28CFLAGS+= -fno-common
 29
 30# The "gnu" library ends up being empty and Mac OS X's "ar" doesn't like
 31# to create empty archives. Just don't build the library.
 32SUBST_CLASSES+= gllib
 33SUBST_STAGE.gllib= post-configure
 34SUBST_FILES.gllib= lib/Makefile
 35SUBST_SED.gllib= -e "s/SUBDIRS = gllib//"
30.endif 36.endif
31 37
32.include "../../mk/bsd.pkg.mk" 38.include "../../mk/bsd.pkg.mk"