pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11 Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f145dcdd0091
branches:  trunk
changeset: 495034:f145dcdd0091
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jun 01 19:44:07 2005 +0000

description:
Convert to options framework.

diffstat:

 x11/eterm/Makefile       |   9 ++-------
 x11/eterm/options.mk     |  15 +++++++++++++++
 x11/gnopernicus/Makefile |   9 +++++----
 3 files changed, 22 insertions(+), 11 deletions(-)

diffs (67 lines):

diff -r 595f53e2fb17 -r f145dcdd0091 x11/eterm/Makefile
--- a/x11/eterm/Makefile        Wed Jun 01 19:43:29 2005 +0000
+++ b/x11/eterm/Makefile        Wed Jun 01 19:44:07 2005 +0000
@@ -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 @@
 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 -r 595f53e2fb17 -r f145dcdd0091 x11/eterm/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/eterm/options.mk      Wed Jun 01 19:44:07 2005 +0000
@@ -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 -r 595f53e2fb17 -r f145dcdd0091 x11/gnopernicus/Makefile
--- a/x11/gnopernicus/Makefile  Wed Jun 01 19:43:29 2005 +0000
+++ b/x11/gnopernicus/Makefile  Wed Jun 01 19:44:07 2005 +0000
@@ -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/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



Home | Main Index | Thread Index | Old Index