2013-03-29 20:33:41 +01:00
|
|
|
# Created by: teramoto@comm.eng.osaka-u.ac.jp
|
2001-07-06 20:15:29 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gpgme
|
2017-04-05 22:13:00 +02:00
|
|
|
PORTVERSION= 1.9.0
|
|
|
|
PORTREVISION?= 0
|
2016-10-18 21:45:23 +02:00
|
|
|
CATEGORIES?= security
|
2014-06-22 09:07:42 +02:00
|
|
|
MASTER_SITES= GNUPG/gpgme
|
2001-07-06 20:15:29 +02:00
|
|
|
|
2012-09-13 06:45:58 +02:00
|
|
|
MAINTAINER= jhale@FreeBSD.org
|
2016-10-18 21:45:23 +02:00
|
|
|
COMMENT?= Library to make access to GnuPG easier
|
2001-07-06 20:15:29 +02:00
|
|
|
|
2017-04-05 22:13:00 +02:00
|
|
|
LICENSE?= LGPL21+
|
2016-10-18 21:45:23 +02:00
|
|
|
LICENSE_FILE?= ${WRKSRC}/COPYING.LESSER
|
2011-07-21 14:43:23 +02:00
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS= libassuan.so:security/libassuan \
|
|
|
|
libgpg-error.so:security/libgpg-error
|
2012-07-09 15:02:18 +02:00
|
|
|
|
2014-05-30 11:58:02 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2016-10-18 21:45:23 +02:00
|
|
|
USES= cpe gmake libtool localbase:ldflags tar:bzip2
|
- 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-02-20 23:51:49 +01:00
|
|
|
|
2014-06-22 10:44:25 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2017-04-05 22:13:00 +02:00
|
|
|
TEST_TARGET= check
|
2004-12-12 18:55:54 +01:00
|
|
|
|
2014-08-04 15:31:26 +02:00
|
|
|
CPE_VENDOR= gnu
|
|
|
|
|
2016-10-18 21:45:23 +02:00
|
|
|
.if !defined(SLAVEPORT)
|
|
|
|
CONFIGURE_ARGS+=--enable-languages="cl"
|
|
|
|
|
2004-12-12 18:55:54 +01:00
|
|
|
INFO= gpgme
|
2013-10-20 21:20:15 +02:00
|
|
|
PORTDOCS= AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
|
2004-12-12 18:55:54 +01:00
|
|
|
|
2013-10-20 21:20:15 +02:00
|
|
|
OPTIONS_DEFINE= DOCS UISERVER
|
|
|
|
OPTIONS_SINGLE= GNUPG
|
|
|
|
OPTIONS_SINGLE_GNUPG= GNUPG1 GNUPG2
|
|
|
|
OPTIONS_DEFAULT= GNUPG2 UISERVER
|
2004-12-12 18:55:54 +01:00
|
|
|
|
2013-10-20 21:20:15 +02:00
|
|
|
GNUPG1_DESC= Build gpgme library for GnuPG 1.x
|
2016-04-01 16:25:16 +02:00
|
|
|
GNUPG1_BUILD_DEPENDS= gpgv:security/gnupg1
|
|
|
|
GNUPG1_RUN_DEPENDS= gpgv:security/gnupg1
|
2013-10-20 21:20:15 +02:00
|
|
|
|
|
|
|
GNUPG2_DESC= Build gpgme library for GnuPG 2.x
|
2016-04-01 16:25:16 +02:00
|
|
|
GNUPG2_BUILD_DEPENDS= gpg2:security/gnupg
|
|
|
|
GNUPG2_RUN_DEPENDS= gpg2:security/gnupg
|
2013-10-20 21:20:15 +02:00
|
|
|
|
|
|
|
UISERVER_DESC= GnuPG UI server support
|
|
|
|
UISERVER_CONFIGURE_ENABLE= fd-passing
|
2016-10-18 21:45:23 +02:00
|
|
|
.endif
|
2013-10-20 21:20:15 +02:00
|
|
|
|
2014-06-22 11:43:38 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if !exists(${LOCALBASE}/bin/gpgsm)
|
|
|
|
CONFIGURE_ARGS+= --disable-gpgsm-test
|
|
|
|
.endif
|
|
|
|
|
2016-10-18 21:45:23 +02:00
|
|
|
.if defined(SLAVEPORT)
|
|
|
|
LIB_DEPENDS+= libgpgme.so:security/gpgme
|
2016-10-22 09:33:17 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/lang/${BINDING_NAME}
|
2016-10-18 21:45:23 +02:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/lang/${BINDING_NAME}
|
2017-04-05 22:13:00 +02:00
|
|
|
NO_TEST= yes
|
2016-10-18 21:45:23 +02:00
|
|
|
|
|
|
|
. if ${SLAVEPORT} == "cpp"
|
|
|
|
CONFIGURE_ARGS+=--enable-languages="cpp"
|
2016-11-17 14:55:47 +01:00
|
|
|
USES+= compiler:c++11-lib
|
|
|
|
# Unhide std::to_string() to fix build with GCC 4.8 (ports/193528).
|
|
|
|
CXXFLAGS+= -D_GLIBCXX_USE_C99
|
2016-10-18 21:45:23 +02:00
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${SLAVEPORT} == "qt5"
|
|
|
|
LIB_DEPENDS+= libgpgmepp.so:security/gpgme-cpp
|
|
|
|
CONFIGURE_ARGS+=--enable-languages="cpp qt"
|
2016-11-17 14:55:47 +01:00
|
|
|
USES+= compiler:c++11-lib pkgconfig
|
2016-10-18 21:45:23 +02:00
|
|
|
USE_QT5= buildtools_build core testlib
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${SLAVEPORT} == "python"
|
|
|
|
BUILD_DEPENDS+= swig3.0:devel/swig30 \
|
2017-03-16 20:23:48 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/${PYTHON_PKGNAMEPREFIX}setuptools
|
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/${PYTHON_PKGNAMEPREFIX}setuptools
|
2016-10-18 21:45:23 +02:00
|
|
|
USES+= python
|
|
|
|
USE_PYTHON= py3kplist
|
|
|
|
CONFIGURE_ENV+= SWIG=${LOCALBASE}/bin/swig3.0
|
|
|
|
PLIST_SUB+= VERSION=${PORTVERSION}
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(SLAVEPORT)
|
|
|
|
. if ${SLAVEPORT} == "python"
|
|
|
|
. if ${PYTHON_REL} >= 3000
|
|
|
|
CONFIGURE_ARGS+=--enable-languages="python3"
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--enable-languages="python2"
|
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2004-12-11 14:28:06 +01:00
|
|
|
post-patch:
|
2016-10-18 21:45:23 +02:00
|
|
|
.if defined(SLAVEPORT)
|
|
|
|
@${FIND} ${BUILD_WRKSRC} -name "Makefile.in" -type f | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|../../../src/libgpgme.la|-lgpgme|g'
|
2016-10-22 09:33:17 +02:00
|
|
|
. if ${SLAVEPORT} == "qt5"
|
|
|
|
@${FIND} ${BUILD_WRKSRC} -name "Makefile.in" -type f | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|../../cpp/src/libgpgmepp.la|-lgpgmepp|g'
|
|
|
|
. endif
|
2016-10-18 21:45:23 +02:00
|
|
|
.endif
|
2007-02-06 18:41:57 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|^clfilesdir.*|clfilesdir=$$\(libdir\)/common-lisp/gpgme|g' \
|
|
|
|
${WRKSRC}/lang/cl/Makefile.in
|
2016-10-18 21:45:23 +02:00
|
|
|
.if !defined(SLAVEPORT)
|
|
|
|
post-install-DOCS-on:
|
2013-10-20 21:20:15 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2016-10-18 21:45:23 +02:00
|
|
|
.endif
|
2003-05-19 01:28:15 +02:00
|
|
|
|
2016-10-18 21:45:23 +02:00
|
|
|
.include <bsd.port.post.mk>
|