summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-06-01 19:50:26 +0000
committerwiz <wiz@pkgsrc.org>2005-06-01 19:50:26 +0000
commit5bb62fbc8bc63b86cc21d86db36bc39eee39d674 (patch)
tree00d719f7c031d297949715e1095ad1bfbc651137 /x11
parentfa0c346c703aa33edd25e826f46e7ea26a5752c1 (diff)
downloadpkgsrc-5bb62fbc8bc63b86cc21d86db36bc39eee39d674.tar.gz
Convert to options framework.
Diffstat (limited to 'x11')
-rw-r--r--x11/multi-aterm/Makefile23
-rw-r--r--x11/multi-aterm/options.mk26
2 files changed, 28 insertions, 21 deletions
diff --git a/x11/multi-aterm/Makefile b/x11/multi-aterm/Makefile
index c22ad3533c4..62e8611c716 100644
--- a/x11/multi-aterm/Makefile
+++ b/x11/multi-aterm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2005/06/01 18:03:29 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2005/06/01 19:50:26 wiz Exp $
#
DISTNAME= multi-aterm-0.0.4
@@ -20,26 +20,7 @@ CONFIGURE_ARGS+= --enable-fading
CONFIGURE_ARGS+= --enable-transparency
CONFIGURE_ARGS+= --with-xpm=${BUILDLINK_PREFIX.xpm}
-BUILD_DEFS+= ATERM_USE_KANJI ATERM_USE_XTERM_SCROLL
-BUILD_DEFS+= ATERM_USE_BIG5 ATERM_USE_GREEK
-
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(ATERM_USE_XTERM_SCROLL) && ${ATERM_USE_XTERM_SCROLL} != NO
-CONFIGURE_ARGS+= --enable-xterm-scroll
-.endif
-
-.if defined(ATERM_USE_KANJI) && ${ATERM_USE_KANJI} != NO
-CONFIGURE_ARGS+= --enable-kanji
-.endif
-
-.if defined(ATERM_USE_BIG5) && ${ATERM_USE_BIG5} != NO
-CONFIGURE_ARGS+= --enable-big5
-.endif
-
-.if defined(ATERM_USE_GREEK) && ${ATERM_USE_GREEK} != NO
-CONFIGURE_ARGS+= --enable-greek
-.endif
+.include "options.mk"
.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/x11/multi-aterm/options.mk b/x11/multi-aterm/options.mk
new file mode 100644
index 00000000000..c7572fe09d2
--- /dev/null
+++ b/x11/multi-aterm/options.mk
@@ -0,0 +1,26 @@
+# $NetBSD: options.mk,v 1.1 2005/06/01 19:50:26 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.aterm
+PKG_SUPPORTED_OPTIONS= aterm-big5 aterm-greek aterm-kanji aterm-xterm-scroll
+PKG_OPTIONS_LEGACY_VARS+= ATERM_USE_KANJI:aterm-kanji
+PKG_OPTIONS_LEGACY_VARS+= ATERM_USE_XTERM_SCROLL:aterm-xterm-scroll
+PKG_OPTIONS_LEGACY_VARS+= ATERM_USE_BIG5:aterm-big5
+PKG_OPTIONS_LEGACY_VARS+= ATERM_USE_GREEK:aterm-greek
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Materm-big5)
+CONFIGURE_ARGS+=--enable-big5
+.endif
+
+.if !empty(PKG_OPTIONS:Materm-greek)
+CONFIGURE_ARGS+=--enable-greek
+.endif
+
+.if !empty(PKG_OPTIONS:Materm-kanji)
+CONFIGURE_ARGS+=--enable-kanji
+.endif
+
+.if !empty(PKG_OPTIONS:Materm-xterm-scroll)
+CONFIGURE_ARGS+=--enable-xterm-scroll
+.endif