openbsd-ports/security/gnupg/Makefile

87 lines
2.1 KiB
Makefile
Raw Normal View History

2010-11-11 13:34:59 -05:00
# $OpenBSD: Makefile,v 1.76 2010/11/11 18:34:59 espie Exp $
2001-03-23 11:30:16 -05:00
COMMENT= GNU privacy guard - a free PGP replacement
2010-10-25 08:57:13 -04:00
DISTNAME= gnupg-1.4.11
CATEGORIES= security
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gnupg/ \
ftp://gd.tuwien.ac.at/privacy/gnupg/gnupg/ \
ftp://crypto.yashy.com/pub/cryptography/gnupg/ \
ftp://ftp.planetmirror.com/pub/gnupg/gnupg/ \
ftp://sunsite.dk/pub/security/gcrypt/gnupg/ \
1999-09-04 17:54:06 -04:00
ftp://ftp.linux.it/pub/mirrors/gnupg/gnupg/ \
ftp://pgp.iijlab.net/pub/pgp/gnupg/ \
ftp://ring.aist.go.jp/pub/net/gnupg/gnupg/
2001-07-12 12:07:17 -04:00
2003-06-03 06:21:33 -04:00
MASTER_SITES0= ftp://ftp.gnupg.dk/pub/contrib-dk/
HOMEPAGE= http://www.gnupg.org/
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 03:02:07 -05:00
2004-08-10 05:26:13 -04:00
MODULES= devel/gettext
2010-11-11 13:34:59 -05:00
LIB_DEPENDS= ::archivers/bzip2 \
::net/curl
WANTLIB= c z readline termcap ssl crypto idn bz2.>=10 curl.>=3
CONFIGURE_STYLE= autoconf
2010-10-25 08:57:13 -04:00
AUTOCONF_VERSION= 2.64
2004-08-04 10:51:31 -04:00
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/scripts
CONFIGURE_ARGS+= --disable-gnupg-iconv
2010-10-18 17:41:44 -04:00
USE_GROFF = Yes
.if ${MACHINE_ARCH} == "m68k"
CONFIGURE_ARGS+= --disable-asm
.endif
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAKE_FLAGS= LIBINTL="-L${LOCALBASE}/lib -lintl -liconv" \
LIBICONV="-L${LOCALBASE}/lib -liconv"
FLAVORS= idea card ldap
2003-06-03 06:21:33 -04:00
FLAVOR?=
.if ${FLAVOR:L:Midea}
PERMIT_PACKAGE_CDROM= a patented algorithm
PERMIT_DISTFILES_CDROM= a patented algorithm
2003-06-03 06:21:33 -04:00
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} idea.c.gz:0
post-extract:
ln -s ${WRKDIR}/idea.c ${WRKSRC}/cipher/idea.c
2005-01-05 14:45:26 -05:00
.else
SUPDISTFILES= idea.c.gz:0
2003-06-03 06:21:33 -04:00
.endif
.if ${FLAVOR:L:Mcard}
2010-11-11 13:34:59 -05:00
LIB_DEPENDS+= ::devel/libusb
WANTLIB += usb
.else
CONFIGURE_ARGS+= --disable-card-support --without-libusb
.endif
.if ${FLAVOR:L:Mldap}
CONFIGURE_ARGS+= --enable-ldap
2010-11-11 13:34:59 -05:00
LIB_DEPENDS+= ::databases/openldap
WANTLIB += ldap.>=8
.else
CONFIGURE_ARGS+= --disable-ldap
.endif
2001-03-05 13:54:06 -05:00
GNUPGDOCFILES= README AUTHORS COPYING THANKS TODO BUGS \
2010-10-25 08:57:13 -04:00
doc/DETAILS doc/FAQ doc/OpenPGP doc/HACKING
2001-03-05 13:54:06 -05:00
post-install:
2001-03-05 13:54:06 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnupg
cd ${WRKSRC}; ${INSTALL_DATA} ${GNUPGDOCFILES} \
${PREFIX}/share/doc/gnupg
do-regress:
@cd ${WRKSRC}/checks && ${MAKE_PROGRAM} check
.include <bsd.port.mk>