summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-06-01 19:44:07 +0000
committerwiz <wiz@pkgsrc.org>2005-06-01 19:44:07 +0000
commit8f0d5afd9bd0b27a38c8b854543815597d980fa0 (patch)
tree48e4544dfc39fa04b668c98800a40d0080b4371c
parent339d39213e0083e076e211dea981c3c54bb39a1b (diff)
downloadpkgsrc-8f0d5afd9bd0b27a38c8b854543815597d980fa0.tar.gz
Convert to options framework.
-rw-r--r--x11/eterm/Makefile9
-rw-r--r--x11/eterm/options.mk15
-rw-r--r--x11/gnopernicus/Makefile9
3 files changed, 22 insertions, 11 deletions
diff --git a/x11/eterm/Makefile b/x11/eterm/Makefile
index dc3b0ea6fed..515934b94f2 100644
--- a/x11/eterm/Makefile
+++ b/x11/eterm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2005/06/01 18:03:28 jlam Exp $
+# $NetBSD: Makefile,v 1.42 2005/06/01 19:44:07 wiz Exp $
DISTNAME= Eterm-0.9.3
PKGNAME= ${DISTNAME:S/^E/e/}
@@ -41,12 +41,7 @@ OWN_DIRS= ${PKG_SYSCONFDIR}/themes
SPECIAL_PERMS= ${PREFIX}/bin/Eterm ${SETUID_ROOT_PERMS}
.endif
-.if ${MACHINE_ARCH} == "i386"
-BUILD_DEFS+= USE_MMX
-. if !empty(USE_MMX:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+= --enable-mmx
-. endif
-.endif
+.include "options.mk"
post-extract:
${LN} -sf ${WRKSRC} ${WRKDIR}/Eterm
diff --git a/x11/eterm/options.mk b/x11/eterm/options.mk
new file mode 100644
index 00000000000..661dd24e2fe
--- /dev/null
+++ b/x11/eterm/options.mk
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2005/06/01 19:44:07 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.eterm
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+PKG_SUPPORTED_OPTIONS= mmx
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmmx)
+CONFIGURE_ARGS+= --enable-mmx
+.endif
diff --git a/x11/gnopernicus/Makefile b/x11/gnopernicus/Makefile
index 130929a1e88..23e11f8c457 100644
--- a/x11/gnopernicus/Makefile
+++ b/x11/gnopernicus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2005/06/01 18:03:28 jlam Exp $
+# $NetBSD: Makefile,v 1.28 2005/06/01 19:46:17 wiz Exp $
#
DISTNAME= gnopernicus-0.10.6
@@ -31,11 +31,12 @@ CONF_FILES+= ${EGDIR}/translation_tables/es.a2b \
CONF_FILES+= ${EGDIR}/translation_tables/sv.a2b \
${PKG_SYSCONFDIR}/translation_tables/sv.a2b
-.include "../../mk/bsd.prefs.mk"
+PKG_OPTIONS_VAR= PKG_OPTIONS.gnopernicus
+PKG_SUPPORTED_OPTIONS= inet6
-BUILD_DEFS+= USE_INET6
+.include "../../mk/bsd.options.mk"
-.if !empty(USE_INET6:M[Yy][Ee][Ss])
+.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6