| @@ -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 | |
3 | DISTNAME= libtasn1-1.8 | | 3 | DISTNAME= libtasn1-1.8 |
4 | CATEGORIES= security devel | | 4 | CATEGORIES= security devel |
5 | MASTER_SITES= ${MASTER_SITE_GNU:=gnutls/} \ | | 5 | MASTER_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 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://www.gnutls.org/ | | 10 | HOMEPAGE= http://www.gnutls.org/ |
11 | COMMENT= ASN.1 structure parser library | | 11 | COMMENT= ASN.1 structure parser library |
12 | | | 12 | |
13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 13 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
14 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
15 | | | 15 | |
16 | USE_TOOLS+= makeinfo | | 16 | USE_TOOLS+= makeinfo |
17 | USE_LIBTOOL= yes | | 17 | USE_LIBTOOL= yes |
18 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
19 | TEST_TARGET= check | | 19 | TEST_TARGET= check |
20 | INFO_FILES= yes | | 20 | INFO_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" |
28 | CONFIGURE_ENV+= ac_cv_func_getopt_long=no | | 27 | CONFIGURE_ENV+= ac_cv_func_getopt_long=no |
29 | CFLAGS+= -fno-common | | 28 | CFLAGS+= -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. |
| | | 32 | SUBST_CLASSES+= gllib |
| | | 33 | SUBST_STAGE.gllib= post-configure |
| | | 34 | SUBST_FILES.gllib= lib/Makefile |
| | | 35 | SUBST_SED.gllib= -e "s/SUBDIRS = gllib//" |
30 | .endif | | 36 | .endif |
31 | | | 37 | |
32 | .include "../../mk/bsd.pkg.mk" | | 38 | .include "../../mk/bsd.pkg.mk" |