summaryrefslogtreecommitdiff
path: root/devel/gtexinfo
diff options
context:
space:
mode:
authorhans <hans>2011-11-26 23:56:45 +0000
committerhans <hans>2011-11-26 23:56:45 +0000
commitd186687841d4c14febebe046a2efa203e07851a2 (patch)
treee0028722ef4b49221ef2edcd9475272157ef524c /devel/gtexinfo
parent016414f828f135137397c080f694a9a32c554b65 (diff)
downloadpkgsrc-d186687841d4c14febebe046a2efa203e07851a2.tar.gz
Use options framework for nls support.
Diffstat (limited to 'devel/gtexinfo')
-rw-r--r--devel/gtexinfo/Makefile14
-rw-r--r--devel/gtexinfo/options.mk20
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