diff options
author | jase <jase@FreeBSD.org> | 2012-07-09 21:02:18 +0800 |
---|---|---|
committer | jase <jase@FreeBSD.org> | 2012-07-09 21:02:18 +0800 |
commit | 9c5a299a9c6b8b68dfeaaa402a77ced9df279340 (patch) | |
tree | 05b6a64a7d0a59b4a14cf4d2b86aa28c8b09a81c /security | |
parent | 3652826728ccd5e7f004f006d5ced56eaf8824af (diff) | |
download | freebsd-ports-gnome-9c5a299a9c6b8b68dfeaaa402a77ced9df279340.tar.gz freebsd-ports-gnome-9c5a299a9c6b8b68dfeaaa402a77ced9df279340.tar.zst freebsd-ports-gnome-9c5a299a9c6b8b68dfeaaa402a77ced9df279340.zip |
- Convert to optionsNG
PR: ports/169576
Submitted by: Jason E. Hale <bsdkaffee@gmail.com> (maintainer)
Approved by: flo (mentor)
Diffstat (limited to 'security')
-rw-r--r-- | security/gpgme/Makefile | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/security/gpgme/Makefile b/security/gpgme/Makefile index 5cf1c3691c29..72ea50090fc7 100644 --- a/security/gpgme/Makefile +++ b/security/gpgme/Makefile @@ -21,6 +21,15 @@ LICENSE= LGPL21 LIB_DEPENDS= assuan.0:${PORTSDIR}/security/libassuan \ gpg-error.0:${PORTSDIR}/security/libgpg-error +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 + USE_BZIP2= yes USE_AUTOTOOLS= libtool USE_GMAKE= yes @@ -34,18 +43,17 @@ INFO= gpgme PORTDOCS= AUTHORS ChangeLog COPYING COPYING.LESSER INSTALL \ NEWS README THANKS TODO -OPTIONS= GNUPG1 "Use GNUPG 1.x instead of GNUPG 2.x" off \ - UISERVER "Enable the GNUPG UI Server support" off - -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_GNUPG1) -BUILD_DEPENDS+= gpg:${PORTSDIR}/security/gnupg1 -RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg1 +.if ${PORT_OPTIONS:MGNUPG1} +BUILD_DEPENDS+= gpgv:${PORTSDIR}/security/gnupg1 +RUN_DEPENDS+= gpgv:${PORTSDIR}/security/gnupg1 CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg \ --with-gpgsm=no \ --with-gpgconf=no -.else +.endif + +.if ${PORT_OPTIONS:MGNUPG2} BUILD_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg RUN_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg2 \ @@ -57,7 +65,7 @@ CONFIGURE_ARGS+=--with-gpgsm=no .endif .endif -.if defined(WITH_UISERVER) +.if ${PORT_OPTIONS:MUISERVER} CONFIGURE_ARGS+=--enable-fd-passing .endif @@ -74,9 +82,9 @@ post-patch: ${WRKSRC}/lang/cl/Makefile.in post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |