summaryrefslogtreecommitdiff
path: root/x11/eterm
diff options
context:
space:
mode:
authorwiz <wiz>2005-06-01 19:44:07 +0000
committerwiz <wiz>2005-06-01 19:44:07 +0000
commita62eb6606ee18dd63a115b66f41b6e1b71a3a6cc (patch)
tree48e4544dfc39fa04b668c98800a40d0080b4371c /x11/eterm
parent41c7e700b2cd6f7235033c55df8679cc55591067 (diff)
downloadpkgsrc-a62eb6606ee18dd63a115b66f41b6e1b71a3a6cc.tar.gz
Convert to options framework.
Diffstat (limited to 'x11/eterm')
-rw-r--r--x11/eterm/Makefile9
-rw-r--r--x11/eterm/options.mk15
2 files changed, 17 insertions, 7 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