diff options
author | hans <hans@pkgsrc.org> | 2011-11-26 23:56:45 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2011-11-26 23:56:45 +0000 |
commit | 39430dfa1fb3a6db72de9f70758ee37bbb9dbd56 (patch) | |
tree | e0028722ef4b49221ef2edcd9475272157ef524c /devel | |
parent | 4c4c34af3237fdb1cfb452d959b79faaca7b659e (diff) | |
download | pkgsrc-39430dfa1fb3a6db72de9f70758ee37bbb9dbd56.tar.gz |
Use options framework for nls support.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gtexinfo/Makefile | 14 | ||||
-rw-r--r-- | devel/gtexinfo/options.mk | 20 |
2 files changed, 22 insertions, 12 deletions
diff --git a/devel/gtexinfo/Makefile b/devel/gtexinfo/Makefile index 909a0c4900f..74bbc617372 100644 --- a/devel/gtexinfo/Makefile +++ b/devel/gtexinfo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.75 2011/04/22 13:43:19 obache Exp $ +# $NetBSD: Makefile,v 1.76 2011/11/26 23:56:45 hans Exp $ DISTNAME= texinfo-4.13 PKGNAME= g${DISTNAME} @@ -24,17 +24,7 @@ PKGSRC_INFOPATH= ${PREFIX}/${PKGINFODIR}:${X11BASE}/${PKGINFODIR}:${LOCALBASE}/$ MAKE_ENV+= PKGSRC_INFOPATH=${PKGSRC_INFOPATH:Q} .include "../../mk/bsd.prefs.mk" - -TEXINFO_LOCALE?= yes -BUILD_DEFS+= TEXINFO_LOCALE -MAKEFLAGS+= TEXINFO_LOCALE=${TEXINFO_LOCALE:Q} -.if !empty(TEXINFO_LOCALE:M[yY][eE][sS]) -USE_PKGLOCALEDIR= yes -PLIST_SRC+= ${PKGDIR}/PLIST.locale -. include "../../devel/gettext-lib/buildlink3.mk" -.else -CONFIGURE_ARGS+= --disable-nls -.endif +.include "options.mk" .include "../../mk/termcap.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/gtexinfo/options.mk b/devel/gtexinfo/options.mk new file mode 100644 index 00000000000..1dfc50d3d0e --- /dev/null +++ b/devel/gtexinfo/options.mk @@ -0,0 +1,20 @@ +# $NetBSD: options.mk,v 1.1 2011/11/26 23:56:45 hans Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.gtexinfo +PKG_SUPPORTED_OPTIONS= nls +PKG_SUGGESTED_OPTIONS= +.if ${OPSYS} == "NetBSD" +PKG_SUGGESTED_OPTIONS+= nls +.endif + +PKG_OPTIONS_LEGACY_VARS= TEXINFO_LOCALE + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mnls) +USE_PKGLOCALEDIR= yes +PLIST_SRC+= ${PKGDIR}/PLIST.locale +. include "../../devel/gettext-lib/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-nls +.endif |