summaryrefslogtreecommitdiff
path: root/x11/aterm
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-06-01 19:39:36 +0000
committerwiz <wiz@pkgsrc.org>2005-06-01 19:39:36 +0000
commit997d60474ff934a9fdec8150aaedd12b25e6be95 (patch)
treeac4e0fdde0fd2a52a72e6cc04110101eb44530d4 /x11/aterm
parentd92c5003fc665a5689c7ed793c95a31c00c5abbc (diff)
downloadpkgsrc-997d60474ff934a9fdec8150aaedd12b25e6be95.tar.gz
Convert to options framework.
Fix a pasto in a comment while here.
Diffstat (limited to 'x11/aterm')
-rw-r--r--x11/aterm/Makefile22
-rw-r--r--x11/aterm/options.mk26
2 files changed, 29 insertions, 19 deletions
diff --git a/x11/aterm/Makefile b/x11/aterm/Makefile
index b2c4e0fe44f..1259a7adebf 100644
--- a/x11/aterm/Makefile
+++ b/x11/aterm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2005/06/01 18:03:27 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2005/06/01 19:39:36 wiz Exp $
#
DISTNAME= aterm-0.4.2
@@ -17,8 +17,6 @@ GNU_CONFIGURE= YES
BUILD_DEFS+= ATERM_USE_KANJI ATERM_USE_XTERM_SCROLL
BUILD_DEFS+= ATERM_USE_BIG5 ATERM_USE_GREEK
-.include "../../mk/bsd.prefs.mk"
-
CONFIGURE_ARGS+=--enable-background-image \
--enable-transparency \
--enable-fading \
@@ -35,26 +33,12 @@ CONFIGURE_ARGS+=--enable-background-image \
--enable-utmp \
--enable-wtmp
-.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 "../../mk/bsd.prefs.mk"
.if ${OPSYS:M*BSD} || ${OPSYS} == "Darwin"
-# Make rxvt setuid root so that tty ownership setting and utmp logging
+# Make aterm setuid root so that tty ownership setting and utmp logging
# function correctly.
#
CONFIGURE_ARGS+=--enable-ttygid
diff --git a/x11/aterm/options.mk b/x11/aterm/options.mk
new file mode 100644
index 00000000000..52cf7c7a16d
--- /dev/null
+++ b/x11/aterm/options.mk
@@ -0,0 +1,26 @@
+# $NetBSD: options.mk,v 1.1 2005/06/01 19:39:36 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