diff options
author | Johan van Selst <johans@FreeBSD.org> | 2012-06-27 20:58:20 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2012-06-27 20:58:20 +0000 |
commit | 06576dbdac1fb94eac216f08d894752b5d1693b2 (patch) | |
tree | ea555afdb0808c311f347f044777f85fcbae7719 /devel/bison | |
parent | 02ba56950a2778a142c898f2b44ce44204e89b96 (diff) | |
download | ports-06576dbdac1fb94eac216f08d894752b5d1693b2.tar.gz ports-06576dbdac1fb94eac216f08d894752b5d1693b2.zip |
Convert to new options framework
Notes
Notes:
svn path=/head/; revision=300115
Diffstat (limited to 'devel/bison')
-rw-r--r-- | devel/bison/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/devel/bison/Makefile b/devel/bison/Makefile index 139478c0678e..7f651b40a608 100644 --- a/devel/bison/Makefile +++ b/devel/bison/Makefile @@ -27,12 +27,15 @@ MAN1= bison.1 INFO= bison CONFIGURE_ARGS+=--disable-yacc -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.else + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " .endif .ifdef USE_BISON @@ -42,7 +45,7 @@ PLIST_SUB+= NLS="" post-extract: @${RM} -f ${WRKSRC}/doc/bison.info* @${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in -.if defined(WITHOUT_NLS) +.if empty(${PORT_OPTIONS:MNLS}) @${REINPLACE_CMD} 's/ install-exec-local//' ${WRKSRC}/lib/Makefile.in .endif |