pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/w3m Convert to options framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7c138a570e56
branches: trunk
changeset: 495104:7c138a570e56
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Jun 02 18:24:18 2005 +0000
description:
Convert to options framework.
diffstat:
www/w3m/Makefile.common | 44 ++++----------------------------------------
www/w3m/options.mk | 44 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 40 deletions(-)
diffs (113 lines):
diff -r 89efd524e001 -r 7c138a570e56 www/w3m/Makefile.common
--- a/www/w3m/Makefile.common Thu Jun 02 18:11:34 2005 +0000
+++ b/www/w3m/Makefile.common Thu Jun 02 18:24:18 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.35 2005/06/01 18:03:27 jlam Exp $
+# $NetBSD: Makefile.common,v 1.36 2005/06/02 18:24:18 wiz Exp $
#
DISTNAME= w3m-${W3M_VERS}
@@ -20,45 +20,7 @@
DOCDIR= share/doc/w3m
-.include "../../mk/bsd.prefs.mk"
-
-# Memo about W3m configuration:
-#
-# * pkgsrc should export only user configurable build options that can't
-# be configured at run-time.
-#
-# * As of 0.5, W3m is moving from English/Japanese (localized model) to
-# internationalized model. The set of its options are not well refined
-# nor tested yet. These configuration should be revisited later.
-#
-# * --enable-m17n enables multibyte encoding support, and
-# --enable-unicode adds UTF-7/UTF-8 support. W3m has a home-grown M17N
-# library (libwc) instead of using libc's I18N functions, that means
-# enabling M17N much increases the size of W3m binary. Additionary W3m
-# has a home-grown Unicode mapping table, which is huge too!
-#
-
-BUILD_DEFS+= W3M_USE_M17N
-BUILD_DEFS+= W3M_USE_UNICODE
-BUILD_DEFS+= W3M_USE_LYNX_KEY
-
-.if ${W3M_USE_M17N} == YES
-CONFIGURE_ARGS+= --enable-m17n
-.else
-CONFIGURE_ARGS+= --disable-m17n
-.endif
-
-.if ${W3M_USE_UNICODE} == YES
-CONFIGURE_ARGS+= --enable-unicode
-.else
-CONFIGURE_ARGS+= --disable-unicode
-.endif
-
-.if ${W3M_USE_LYNX_KEY} == YES
-CONFIGURE_ARGS+= --enable-keymap=lynx
-.else
-CONFIGURE_ARGS+= --enable-keymap=w3m
-.endif
+.include "options.mk"
_W3M_USE_IMAGE?= NO
.if ${_W3M_USE_IMAGE} == YES
@@ -67,6 +29,8 @@
CONFIGURE_ARGS+= --disable-image
.endif
+.include "../../mk/bsd.prefs.mk"
+
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --with-termlib=curses
.elif ${OPSYS} == "Linux"
diff -r 89efd524e001 -r 7c138a570e56 www/w3m/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/w3m/options.mk Thu Jun 02 18:24:18 2005 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: options.mk,v 1.1 2005/06/02 18:24:18 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.w3m
+PKG_SUPPORTED_OPTIONS= w3m-lynx-key w3m-m17n w3m-unicode
+PKG_SUGGESTED_OPTIONS= w3m-m17n
+PKG_OPTIONS_LEGACY_VARS+= W3M_USE_LYNX_KEY:w3m-lynx-key
+PKG_OPTIONS_LEGACY_VARS+= W3M_USE_M17N:w3m-m17n
+PKG_OPTIONS_LEGACY_VARS+= W3M_USE_UNICODE:w3m-unicode
+
+# Memo about W3m configuration:
+#
+# * pkgsrc should export only user configurable build options that can't
+# be configured at run-time.
+#
+# * As of 0.5, W3m is moving from English/Japanese (localized model) to
+# internationalized model. The set of its options are not well refined
+# nor tested yet. These configuration should be revisited later.
+#
+# * --enable-m17n enables multibyte encoding support, and
+# --enable-unicode adds UTF-7/UTF-8 support. W3m has a home-grown M17N
+# library (libwc) instead of using libc's I18N functions, that means
+# enabling M17N much increases the size of W3m binary. Additionary W3m
+# has a home-grown Unicode mapping table, which is huge too!
+#
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mw3m-m17n)
+CONFIGURE_ARGS+= --enable-m17n
+.else
+CONFIGURE_ARGS+= --disable-m17n
+.endif
+
+.if !empty(PKG_OPTIONS:Mw3m-unicode)
+CONFIGURE_ARGS+= --enable-unicode
+.else
+CONFIGURE_ARGS+= --disable-unicode
+.endif
+
+.if !empty(PKG_OPTIONS:Mw3m-lynx-key)
+CONFIGURE_ARGS+= --enable-keymap=lynx
+.else
+CONFIGURE_ARGS+= --enable-keymap=w3m
+.endif
Home |
Main Index |
Thread Index |
Old Index