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
|
2002-10-26 05:07:39 +00:00
|
|
|
PORTVERSION= 1.2.1
|
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
|
1998-11-23 14:13:26 +00:00
|
|
|
|
2002-08-01 16:22:41 +00:00
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
2002-02-05 03:00:03 +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
|
2002-10-06 08:55:25 +00:00
|
|
|
CONFIGURE_ARGS= --enable-tiger
|
2002-05-27 23:16:06 +00:00
|
|
|
CONFIGURE_TARGET= --build ${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
.if ${MACHINE_CPU:Mi586}
|
|
|
|
MACHINE_ARCH= i586
|
|
|
|
.endif
|
2002-04-30 13:13:01 +00:00
|
|
|
CFLAGS:= ${CFLAGS:S/-pipe//g}
|
2000-10-18 15:30:10 +00:00
|
|
|
MAN1= gpg.1 gpgv.1
|
2002-10-06 08:55:25 +00:00
|
|
|
MAN7= gnupg.7
|
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)
|
2002-04-16 13:00:39 +00:00
|
|
|
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
|
|
|
|
.endif
|
2002-10-06 08:55:25 +00:00
|
|
|
.if defined(WITH_LDAP) || exists(${PREFIX}/lib/libldap.so)
|
|
|
|
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
|
|
|
|
PLIST_SUB+= WITH_LDAP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_LDAP="@comment "
|
|
|
|
.endif
|
2002-02-03 23:00:56 +00:00
|
|
|
|
1999-04-17 04:51:20 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/gnupg
|
|
|
|
.for i in DETAILS FAQ HACKING OpenPGP
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/gnupg
|
|
|
|
.endfor
|
|
|
|
.for i in ABOUT-NLS AUTHORS BUGS COPYING INSTALL NEWS PROJECTS \
|
|
|
|
README THANKS TODO VERSION
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/gnupg
|
|
|
|
.endfor
|
|
|
|
.endif
|
2002-05-24 15:15:29 +00:00
|
|
|
.if defined(WITH_SUID_GPG)
|
|
|
|
${CHMOD} u+s ${PREFIX}/bin/gpg
|
|
|
|
.endif
|
2001-12-11 15:00:53 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
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>
|