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
|
2005-07-31 22:31:11 +00:00
|
|
|
PORTVERSION= 1.4.2
|
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}
|
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-04-05 15:09:00 +00:00
|
|
|
.if !defined(WITHOUT_NLS)
|
2004-12-29 15:40:42 +00:00
|
|
|
USE_GETTEXT= YES
|
2004-04-05 15:09:00 +00:00
|
|
|
PLIST_SUB= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB= NLS="@comment "
|
|
|
|
.endif
|
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
|
2004-12-29 15:40:42 +00:00
|
|
|
INFO= gpg gpgv
|
1998-11-23 14:13:26 +00:00
|
|
|
|
1999-04-17 04:51:20 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-07-21 01:51:41 +00:00
|
|
|
.if defined(WITH_LIBICONV) || exists(${PREFIX}/lib/libiconv.so)
|
2004-03-30 19:56:43 +00:00
|
|
|
USE_ICONV= yes
|
2002-04-16 13:00:39 +00:00
|
|
|
.endif
|
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=""
|
|
|
|
.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
|
|
|
|
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
|
|
|
|
|
|
|
check:
|
|
|
|
(cd ${WRKSRC}; ${MAKE} check)
|
|
|
|
|
1999-04-17 04:51:20 +00:00
|
|
|
.include <bsd.port.post.mk>
|