1998-11-23 15:13:26 +01:00
|
|
|
# New ports collection makefile for: gnupg
|
|
|
|
# Date created: Sep 30, 1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: kuriyama@FreeBSD.org
|
1998-11-23 15:13:26 +01:00
|
|
|
#
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1998-11-23 15:13:26 +01:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:34:06 +02:00
|
|
|
PORTNAME= gnupg
|
2004-08-31 12:04:09 +02:00
|
|
|
PORTVERSION= 1.2.6
|
|
|
|
PORTREVISION?= 0
|
1998-11-23 15:13:26 +01:00
|
|
|
CATEGORIES= security
|
2003-02-15 13:35:42 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUPG}
|
2000-11-06 09:37:20 +01:00
|
|
|
MASTER_SITE_SUBDIR= gnupg
|
2002-10-06 10:55:25 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1998-11-23 15:13:26 +01:00
|
|
|
|
1999-08-31 08:53:31 +02:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
2003-02-22 08:48:51 +01:00
|
|
|
COMMENT= The GNU Privacy Guard
|
1998-11-23 15:13:26 +01:00
|
|
|
|
2002-10-06 10:55:25 +02:00
|
|
|
USE_BZIP2= YES
|
2004-04-05 17:09:00 +02:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= YES
|
|
|
|
.endif
|
|
|
|
|
2002-04-30 15:13:01 +02:00
|
|
|
USE_GMAKE= YES
|
1999-03-14 04:12:11 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2002-05-28 01:16:06 +02:00
|
|
|
CONFIGURE_TARGET= --build ${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
.if ${MACHINE_CPU:Mi586}
|
|
|
|
MACHINE_ARCH= i586
|
|
|
|
.endif
|
2002-04-30 15:13:01 +02:00
|
|
|
CFLAGS:= ${CFLAGS:S/-pipe//g}
|
2004-04-05 17:09:00 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
PLIST_SUB= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB= NLS="@comment "
|
|
|
|
.endif
|
2000-10-18 17:30:10 +02:00
|
|
|
MAN1= gpg.1 gpgv.1
|
2002-10-06 10:55:25 +02:00
|
|
|
MAN7= gnupg.7
|
2004-08-03 08:30:56 +02:00
|
|
|
# Workaround for 1.2.5 distribution.
|
|
|
|
# Refer: http://lists.gnupg.org/pipermail/gnupg-announce/2004q3/000173.html
|
|
|
|
INSTALL_TARGET= install mkinstalldirs=`pwd`/scripts/mkinstalldirs
|
1998-11-23 15:13:26 +01:00
|
|
|
|
1999-04-17 06:51:20 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-07-21 03:51:41 +02:00
|
|
|
.if defined(WITH_LIBICONV) || exists(${PREFIX}/lib/libiconv.so)
|
2004-03-30 21:56:43 +02:00
|
|
|
USE_ICONV= yes
|
2002-04-16 15:00:39 +02:00
|
|
|
.endif
|
2004-08-04 05:42:11 +02:00
|
|
|
.if defined(WITH_LDAP)
|
2003-11-12 14:37:25 +01:00
|
|
|
USE_OPENLDAP= yes
|
2002-10-06 10:55:25 +02:00
|
|
|
PLIST_SUB+= WITH_LDAP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_LDAP="@comment "
|
2004-08-04 05:42:11 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
2002-10-06 10:55:25 +02:00
|
|
|
.endif
|
2002-02-04 00:00:56 +01:00
|
|
|
|
1999-04-17 06:51:20 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-31 12:04:09 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
1999-04-17 06:51:20 +02:00
|
|
|
.for i in DETAILS FAQ HACKING OpenPGP
|
2004-08-31 12:04:09 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
1999-04-17 06:51:20 +02:00
|
|
|
.endfor
|
|
|
|
.for i in ABOUT-NLS AUTHORS BUGS COPYING INSTALL NEWS PROJECTS \
|
|
|
|
README THANKS TODO VERSION
|
2004-08-31 12:04:09 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
1999-04-17 06:51:20 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2002-05-24 17:15:29 +02:00
|
|
|
.if defined(WITH_SUID_GPG)
|
|
|
|
${CHMOD} u+s ${PREFIX}/bin/gpg
|
|
|
|
.endif
|
2003-05-12 03:46:27 +02:00
|
|
|
.if ${OSVERSION} < 500019
|
2001-12-11 16:00:53 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-05-12 03:46:27 +02:00
|
|
|
.else
|
|
|
|
PKGMESSAGE= /nonexistent
|
|
|
|
.endif
|
1998-11-23 15:13:26 +01:00
|
|
|
|
|
|
|
check:
|
|
|
|
(cd ${WRKSRC}; ${MAKE} check)
|
|
|
|
|
1999-04-17 06:51:20 +02:00
|
|
|
.include <bsd.port.post.mk>
|