2008-04-03 06:13:00 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.70 2008/04/03 10:13:00 jasper Exp $
|
2001-03-23 11:30:16 -05:00
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
COMMENT= GNU privacy guard - a free PGP replacement
|
1999-04-22 23:16:05 -04:00
|
|
|
|
2008-04-03 06:13:00 -04:00
|
|
|
DISTNAME= gnupg-1.4.9
|
1999-04-22 23:16:05 -04:00
|
|
|
CATEGORIES= security
|
2003-12-12 22:22:16 -05:00
|
|
|
|
2002-11-16 00:02:21 -05:00
|
|
|
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gnupg/ \
|
2003-02-05 13:35:03 -05:00
|
|
|
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/ \
|
2003-02-05 13:35:03 -05:00
|
|
|
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/
|
|
|
|
|
2000-06-29 02:06:31 -04:00
|
|
|
HOMEPAGE= http://www.gnupg.org/
|
|
|
|
|
2001-12-09 07:51:40 -05:00
|
|
|
MAINTAINER= Reinhard J. Sammer <reinhard@openbsd.org>
|
1999-04-22 23:16:05 -04:00
|
|
|
|
2008-01-30 15:18:09 -05:00
|
|
|
# GPLv3
|
2000-03-10 21:54:18 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-05-15 11:09:12 -04:00
|
|
|
WANTLIB= c z readline termcap ssl crypto idn
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2004-08-10 05:26:13 -04:00
|
|
|
MODULES= devel/gettext
|
2006-08-03 19:28:11 -04:00
|
|
|
LIB_DEPENDS= bz2.>=10::archivers/bzip2 \
|
|
|
|
curl.>=3::net/curl
|
2002-07-05 03:13:00 -04:00
|
|
|
|
2003-05-27 10:54:43 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2008-01-30 15:18:09 -05:00
|
|
|
AUTOCONF_VERSION= 2.61
|
2004-08-04 10:51:31 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/scripts
|
2006-04-12 05:55:24 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-gnupg-iconv
|
2005-05-17 11:08:34 -04:00
|
|
|
.if ${MACHINE_ARCH} == "m68k"
|
|
|
|
CONFIGURE_ARGS+= --disable-asm
|
|
|
|
.endif
|
2003-05-27 10:54:43 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2005-02-19 07:10:03 -05:00
|
|
|
MAKE_FLAGS= LIBINTL="-L${LOCALBASE}/lib -lintl -liconv" \
|
|
|
|
LIBICONV="-L${LOCALBASE}/lib -liconv"
|
1999-04-22 23:16:05 -04:00
|
|
|
|
2006-04-12 05:55:24 -04:00
|
|
|
FLAVORS= idea card ldap
|
2003-06-03 06:21:33 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2005-01-29 14:27:18 -05:00
|
|
|
.if ${FLAVOR:L:Midea}
|
2007-09-15 19:29:57 -04:00
|
|
|
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
|
|
|
|
|
2005-01-29 14:27:18 -05:00
|
|
|
.if ${FLAVOR:L:Mcard}
|
|
|
|
LIB_DEPENDS+= usb::devel/libusb
|
|
|
|
.else
|
2005-04-09 08:43:08 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-card-support --without-libusb
|
2005-01-29 14:27:18 -05:00
|
|
|
.endif
|
|
|
|
|
2006-04-12 05:55:24 -04:00
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
2006-08-03 19:28:11 -04:00
|
|
|
LIB_DEPENDS+= ldap.>=8::databases/openldap
|
2006-04-12 05:55:24 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
|
|
.endif
|
|
|
|
|
2005-01-29 14:27:18 -05:00
|
|
|
|
2001-03-05 13:54:06 -05:00
|
|
|
GNUPGDOCFILES= README AUTHORS COPYING THANKS TODO BUGS \
|
|
|
|
doc/DETAILS doc/FAQ doc/OpenPGP doc/HACKING doc/faq.html
|
|
|
|
|
1999-04-22 23:16:05 -04: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
|
1999-04-22 23:16:05 -04:00
|
|
|
|
2003-06-09 13:24:47 -04:00
|
|
|
do-regress:
|
2008-01-30 15:18:09 -05:00
|
|
|
@cd ${WRKSRC}/checks && ${MAKE_PROGRAM} check
|
2003-06-09 13:24:47 -04:00
|
|
|
|
1999-04-22 23:16:05 -04:00
|
|
|
.include <bsd.port.mk>
|