summaryrefslogtreecommitdiff
path: root/security/libgpg-error
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-30 11:26:47 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-30 11:26:47 +0000
commitbb2b83b72f8047263dcf0bfa04fb50a675d7cf7c (patch)
tree43d31780e102dfdb77462669be928e1826594eca /security/libgpg-error
parent- Add NO_ARCH (diff)
- Convert to new options helper
- Convert to new options target helper Approved by: portmgr (blanket)
Notes
Notes: svn path=/head/; revision=400534
Diffstat (limited to 'security/libgpg-error')
-rw-r--r--security/libgpg-error/Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/security/libgpg-error/Makefile b/security/libgpg-error/Makefile
index 7244af2bfa11..81bf7559265c 100644
--- a/security/libgpg-error/Makefile
+++ b/security/libgpg-error/Makefile
@@ -11,30 +11,23 @@ MAINTAINER= novel@FreeBSD.org
COMMENT= Common error values for all GnuPG components
OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
USES= gmake libtool tar:bzip2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
CPP+= -P
-CONFIGURE_ARGS+= --enable-static=yes
+CONFIGURE_ARGS= --enable-static=yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext iconv
-CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG} \
- --with-libintl-prefix=${LOCALBASE}
-PLIST_SUB= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB= NLS="@comment "
-.endif
+NLS_CONFIGURE_OFF= --disable-nls
+NLS_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG} --with-libintl-prefix=${LOCALBASE}
+NLS_USES= gettext iconv
DOCS= AUTHORS ChangeLog NEWS README
INFO= gpgrt
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}