1 # New ports collection makefile for: gpgme
2 # Date created: 15 June 2001
3 # Whom: teramoto@comm.eng.osaka-u.ac.jp
5 # $FreeBSD: ports/security/gpgme/Makefile,v 1.73 2012/11/17 06:01:04 svnexp Exp $
11 MASTER_SITES= ${MASTER_SITE_GNUPG}
12 MASTER_SITE_SUBDIR= gpgme
13 DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
14 EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
16 MAINTAINER= jhale@FreeBSD.org
17 COMMENT= A library to make access to GnuPG easier
21 LIB_DEPENDS= assuan.0:${PORTSDIR}/security/libassuan \
22 gpg-error.0:${PORTSDIR}/security/libgpg-error
24 OPTIONS_DEFINE= DOCS UISERVER
26 OPTIONS_SINGLE_GNUPG= GNUPG1 GNUPG2
27 OPTIONS_DEFAULT= GNUPG2
29 GNUPG1_DESC= Build gpgme library for GnuPG 1.x
30 GNUPG2_DESC= Build gpgme library for GnuPG 2.x
31 UISERVER_DESC= GnuPG UI server support
34 USE_AUTOTOOLS= libtool
39 CONFIGURE_ARGS= --includedir=${PREFIX}/include/gpgme \
43 PORTDOCS= AUTHORS ChangeLog COPYING COPYING.LESSER INSTALL \
44 NEWS README THANKS TODO
46 .include <bsd.port.options.mk>
48 .if ${PORT_OPTIONS:MGNUPG1}
49 BUILD_DEPENDS+= gpgv:${PORTSDIR}/security/gnupg1
50 RUN_DEPENDS+= gpgv:${PORTSDIR}/security/gnupg1
51 CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg \
56 .if ${PORT_OPTIONS:MGNUPG2}
57 BUILD_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg
58 RUN_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg
59 CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg2 \
60 --with-gpgconf=${LOCALBASE}/bin/gpgconf
61 .if exists(${LOCALBASE}/bin/gpgsm)
62 CONFIGURE_ARGS+=--with-gpgsm=${LOCALBASE}/bin/gpgsm
64 CONFIGURE_ARGS+=--with-gpgsm=no
68 .if ${PORT_OPTIONS:MUISERVER}
69 CONFIGURE_ARGS+=--enable-fd-passing
73 gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.sig
76 @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
77 ${WRKSRC}/${CONFIGURE_SCRIPT} \
78 ${WRKSRC}/src/Makefile.in \
79 ${WRKSRC}/src/gpgme-config.in \
80 ${WRKSRC}/tests/gpg/Makefile.in
81 @${REINPLACE_CMD} -e 's|^clfilesdir.*|clfilesdir=$$\(libdir\)/common-lisp/gpgme|g' \
82 ${WRKSRC}/lang/cl/Makefile.in
85 .if ${PORT_OPTIONS:MDOCS}
87 ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
90 .include <bsd.port.mk>