summaryrefslogtreecommitdiff
path: root/security/libtasn1/Makefile
blob: a269b5a640ea1cd843658f3e4f981ea9739779fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $NetBSD: Makefile,v 1.42 2009/05/19 08:59:31 wiz Exp $

DISTNAME=	libtasn1-2.1
CATEGORIES=	security devel
MASTER_SITES=	${MASTER_SITE_GNU:=gnutls/} \
		ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
		ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.gnutls.org/
COMMENT=	ASN.1 structure parser library
#LICENSE=		gnu-lgpl-v2.1 AND gnu-gpl-3.0

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=		makeinfo
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
TEST_TARGET=		check
INFO_FILES=		yes

.include "../../mk/bsd.prefs.mk"
# 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"