2001-07-06 20:15:29 +02:00
|
|
|
# New ports collection makefile for: gpgme
|
|
|
|
# Date created: 15 June 2001
|
|
|
|
# Whom: teramoto@comm.eng.osaka-u.ac.jp
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gpgme
|
2012-05-11 10:48:55 +02:00
|
|
|
PORTVERSION= 1.3.2
|
2001-07-06 20:15:29 +02:00
|
|
|
CATEGORIES= security
|
2003-02-15 13:17:21 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUPG}
|
|
|
|
MASTER_SITE_SUBDIR= gpgme
|
2009-02-20 23:51:49 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2001-07-06 20:15:29 +02:00
|
|
|
|
2009-02-20 23:51:49 +01:00
|
|
|
MAINTAINER= bsdkaffee@gmail.com
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= A library to make access to GnuPG easier
|
2001-07-06 20:15:29 +02:00
|
|
|
|
2012-05-11 10:48:55 +02:00
|
|
|
LICENSE= LGPL21
|
2011-07-21 14:43:23 +02:00
|
|
|
|
2011-01-14 08:42:11 +01:00
|
|
|
LIB_DEPENDS= assuan.0:${PORTSDIR}/security/libassuan \
|
2010-07-27 20:07:06 +02:00
|
|
|
gpg-error.0:${PORTSDIR}/security/libgpg-error
|
2001-07-06 20:15:29 +02:00
|
|
|
|
2012-07-09 15:02:18 +02:00
|
|
|
OPTIONS_DEFINE= DOCS UISERVER
|
|
|
|
OPTIONS_SINGLE= GNUPG
|
|
|
|
OPTIONS_SINGLE_GNUPG= GNUPG1 GNUPG2
|
|
|
|
OPTIONS_DEFAULT= GNUPG2
|
|
|
|
|
|
|
|
GNUPG1_DESC= Build gpgme library for GnuPG 1.x
|
|
|
|
GNUPG2_DESC= Build gpgme library for GnuPG 2.x
|
|
|
|
UISERVER_DESC= GnuPG UI server support
|
|
|
|
|
2009-07-15 18:42:07 +02:00
|
|
|
USE_BZIP2= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2001-07-06 20:15:29 +02:00
|
|
|
USE_GMAKE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2009-07-15 18:42:07 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2009-02-20 23:51:49 +01:00
|
|
|
|
2010-06-23 00:35:54 +02:00
|
|
|
CONFIGURE_ARGS= --includedir=${PREFIX}/include/gpgme \
|
|
|
|
--with-g13=no
|
2004-12-12 18:55:54 +01:00
|
|
|
|
|
|
|
INFO= gpgme
|
2009-02-20 23:51:49 +01:00
|
|
|
PORTDOCS= AUTHORS ChangeLog COPYING COPYING.LESSER INSTALL \
|
|
|
|
NEWS README THANKS TODO
|
2004-12-12 18:55:54 +01:00
|
|
|
|
2012-07-09 15:02:18 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2004-12-12 18:55:54 +01:00
|
|
|
|
2012-07-09 15:02:18 +02:00
|
|
|
.if ${PORT_OPTIONS:MGNUPG1}
|
|
|
|
BUILD_DEPENDS+= gpgv:${PORTSDIR}/security/gnupg1
|
|
|
|
RUN_DEPENDS+= gpgv:${PORTSDIR}/security/gnupg1
|
2009-02-20 23:51:49 +01:00
|
|
|
CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg \
|
|
|
|
--with-gpgsm=no \
|
|
|
|
--with-gpgconf=no
|
2012-07-09 15:02:18 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGNUPG2}
|
2009-02-20 23:51:49 +01:00
|
|
|
BUILD_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg
|
|
|
|
RUN_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg
|
|
|
|
CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg2 \
|
|
|
|
--with-gpgconf=${LOCALBASE}/bin/gpgconf
|
2009-12-03 16:55:29 +01:00
|
|
|
.if exists(${LOCALBASE}/bin/gpgsm)
|
|
|
|
CONFIGURE_ARGS+=--with-gpgsm=${LOCALBASE}/bin/gpgsm
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-gpgsm=no
|
|
|
|
.endif
|
2009-02-20 23:51:49 +01:00
|
|
|
.endif
|
|
|
|
|
2012-07-09 15:02:18 +02:00
|
|
|
.if ${PORT_OPTIONS:MUISERVER}
|
2010-06-23 00:35:54 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-fd-passing
|
|
|
|
.endif
|
|
|
|
|
2009-02-20 23:51:49 +01:00
|
|
|
verify: checksum
|
|
|
|
gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.sig
|
|
|
|
|
2004-12-11 14:28:06 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT} \
|
2009-02-20 23:51:49 +01:00
|
|
|
${WRKSRC}/src/Makefile.in \
|
2012-05-11 10:48:55 +02:00
|
|
|
${WRKSRC}/src/gpgme-config.in \
|
|
|
|
${WRKSRC}/tests/gpg/Makefile.in
|
2007-02-06 18:41:57 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|^clfilesdir.*|clfilesdir=$$\(libdir\)/common-lisp/gpgme|g' \
|
|
|
|
${WRKSRC}/lang/cl/Makefile.in
|
2009-02-20 23:51:49 +01:00
|
|
|
|
|
|
|
post-install:
|
2012-07-09 15:02:18 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2009-02-20 23:51:49 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
2004-12-12 18:55:54 +01:00
|
|
|
.endif
|
2003-05-19 01:28:15 +02:00
|
|
|
|
2012-07-09 15:02:18 +02:00
|
|
|
.include <bsd.port.mk>
|