pkgsrc/security/gnupg/Makefile
wiz 73bcd897a6 Update gnupg to 1.0.4nb2:
Fix a bug in ~/.gnupg creation.
Honor USE_IDEA, and add the IDEA extension in that case.
Addresses pkg/11876.
2001-01-29 11:52:59 +00:00

54 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2001/01/29 11:53:02 wiz Exp $
# FreeBSD Id: Makefile,v 1.20 1997/08/27 13:06:01 ache Exp
#
DISTNAME= gnupg-1.0.4
PKGNAME= ${DISTNAME}nb2
CATEGORIES= security
MASTER_SITES= ftp://ftp.gnupg.org/pub/gcrypt/gnupg/
# don't remove this -- we may add idea.c to it below
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= wiz@netbsd.org
HOMEPAGE= http://www.gnupg.org/
BUILD_DEPENDS+= msgfmt:../../devel/gettext
CRYPTO= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LIBINTL= yes
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= USE_IDEA
.if defined(USE_IDEA) && ${USE_IDEA} == YES
# use of IDEA as crypto function
LICENCE= fee-based-commercial-use
MASTER_SITES+= ftp://ftp.gnupg.org/pub/gcrypt/contrib/
DISTFILES+= idea.c
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
PLIST_SUBST+= IDEA=""
post-extract:
${CP} ${_DISTDIR}/idea.c ${WRKSRC}
post-build:
cd ${WRKSRC} && \
${CC} -shared -Wl,-Bshareable -fPIC -o idea idea.c
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/idea ${PREFIX}/lib/gnupg
.else
PLIST_SUBST+= IDEA="@comment "
.endif
.if ${OPSYS} == "SunOS"
DEPENDS+= zlib-1.1.3:../../devel/zlib
LDFLAGS+= -L${LOCALBASE}/lib
.endif
.include "../../mk/bsd.pkg.mk"