1998-11-23 14:13:26 +00:00
|
|
|
# New ports collection makefile for: gnupg
|
|
|
|
# Date created: Sep 30, 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: kuriyama@FreeBSD.org
|
1998-11-23 14:13:26 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-11-23 14:13:26 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= gnupg
|
2007-03-06 09:06:19 +00:00
|
|
|
PORTVERSION= 1.4.7
|
1998-11-23 14:13:26 +00:00
|
|
|
CATEGORIES= security
|
2003-02-15 12:35:42 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUPG}
|
2000-11-06 08:37:20 +00:00
|
|
|
MASTER_SITE_SUBDIR= gnupg
|
2002-10-06 08:55:25 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1998-11-23 14:13:26 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
2003-02-22 07:48:51 +00:00
|
|
|
COMMENT= The GNU Privacy Guard
|
1998-11-23 14:13:26 +00:00
|
|
|
|
2002-10-06 08:55:25 +00:00
|
|
|
USE_BZIP2= YES
|
2002-04-30 13:13:01 +00:00
|
|
|
USE_GMAKE= YES
|
1999-03-14 03:12:11 +00:00
|
|
|
GNU_CONFIGURE= YES
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build ${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-12-09 08:36:48 +00:00
|
|
|
CONFIGURE_ARGS= --infodir=${PREFIX}/info --mandir=${PREFIX}/man
|
2002-05-27 23:16:06 +00:00
|
|
|
.if ${MACHINE_CPU:Mi586}
|
2005-04-12 03:26:56 +00:00
|
|
|
MACHINE_ARCH= i586
|
2002-05-27 23:16:06 +00:00
|
|
|
.endif
|
2002-04-30 13:13:01 +00:00
|
|
|
CFLAGS:= ${CFLAGS:S/-pipe//g}
|
2004-12-29 15:40:42 +00:00
|
|
|
MAN1= gpg.1 gpgv.1 gpg.ru.1
|
2002-10-06 08:55:25 +00:00
|
|
|
MAN7= gnupg.7
|
2006-12-09 08:36:48 +00:00
|
|
|
INFO= gnupg1
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/gnupg1
|
|
|
|
LATEST_LINK= gnupg1
|
1998-11-23 14:13:26 +00:00
|
|
|
|
2006-08-17 19:39:48 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2006-08-02 01:34:30 +00:00
|
|
|
OPTIONS= LDAP "LDAP keyserver interface" off \
|
|
|
|
LIBICONV "use libiconv" off \
|
2006-09-07 02:19:12 +00:00
|
|
|
LIBUSB "use libusb" off \
|
2006-08-02 01:34:30 +00:00
|
|
|
SUID_GPG "install GPG with suid" off \
|
2006-10-05 13:37:17 +00:00
|
|
|
NLS "Native Language Support" on \
|
|
|
|
CURL "use libcurl for the keyserver interface" on
|
2006-08-02 01:34:30 +00:00
|
|
|
|
1999-04-17 04:51:20 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-09-07 02:19:12 +00:00
|
|
|
.if defined(WITH_LIBICONV)
|
2004-03-30 19:56:43 +00:00
|
|
|
USE_ICONV= yes
|
2006-09-07 02:19:12 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libiconv-prefix
|
2002-04-16 13:00:39 +00:00
|
|
|
.endif
|
2006-08-17 19:39:48 +00:00
|
|
|
|
2006-04-03 12:57:58 +00:00
|
|
|
.if defined(WITH_LIBUSB)
|
|
|
|
CONFIGURE_ARGS+= --with-libusb=${LOCALBASE}
|
|
|
|
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libusb
|
|
|
|
.endif
|
2006-08-17 19:39:48 +00:00
|
|
|
|
2004-08-04 03:42:11 +00:00
|
|
|
.if defined(WITH_LDAP)
|
2003-11-12 13:37:25 +00:00
|
|
|
USE_OPENLDAP= yes
|
2002-10-06 08:55:25 +00:00
|
|
|
PLIST_SUB+= WITH_LDAP=""
|
2006-08-17 19:39:48 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}
|
2006-09-07 02:19:12 +00:00
|
|
|
#CONFIGURE_ENV+= LDFLAGS="-L/usr/lib"
|
2002-10-06 08:55:25 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_LDAP="@comment "
|
2004-08-04 03:42:11 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
2002-10-06 08:55:25 +00:00
|
|
|
.endif
|
2002-02-03 23:00:56 +00:00
|
|
|
|
2006-08-17 19:39:48 +00:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= YES
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-10-05 13:37:17 +00:00
|
|
|
.if !defined(WITHOUT_CURL)
|
|
|
|
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
|
|
|
|
CONFIGURE_ARGS+=--with-libcurl=${LOCALBASE}
|
|
|
|
# Work around a GnuPG configure buglet
|
|
|
|
CONFIGURE_ENV+= _libcurl_config=${LOCALBASE}/bin/curl-config
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libcurl
|
|
|
|
.endif
|
|
|
|
|
1999-04-17 04:51:20 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-31 10:04:09 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
1999-04-17 04:51:20 +00:00
|
|
|
.for i in DETAILS FAQ HACKING OpenPGP
|
2004-08-31 10:04:09 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
1999-04-17 04:51:20 +00:00
|
|
|
.endfor
|
|
|
|
.for i in ABOUT-NLS AUTHORS BUGS COPYING INSTALL NEWS PROJECTS \
|
|
|
|
README THANKS TODO VERSION
|
2004-08-31 10:04:09 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
1999-04-17 04:51:20 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2002-05-24 15:15:29 +00:00
|
|
|
.if defined(WITH_SUID_GPG)
|
|
|
|
${CHMOD} u+s ${PREFIX}/bin/gpg
|
|
|
|
.endif
|
2003-05-12 01:46:27 +00:00
|
|
|
.if ${OSVERSION} < 500019
|
2001-12-11 15:00:53 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-05-12 01:46:27 +00:00
|
|
|
.else
|
|
|
|
PKGMESSAGE= /nonexistent
|
|
|
|
.endif
|
1998-11-23 14:13:26 +00:00
|
|
|
|
2005-08-01 11:17:24 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
CONFIGURE_ARGS+= --without-readline
|
|
|
|
.endif
|
|
|
|
|
1998-11-23 14:13:26 +00:00
|
|
|
check:
|
|
|
|
(cd ${WRKSRC}; ${MAKE} check)
|
|
|
|
|
1999-04-17 04:51:20 +00:00
|
|
|
.include <bsd.port.post.mk>
|