pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/80265e0cd3b9
branches:  trunk
changeset: 494913:80265e0cd3b9
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 31 21:35:13 2005 +0000

description:
Convert to options framework.

diffstat:

 devel/libast/Makefile      |  10 ++--------
 devel/libast/options.mk    |  15 +++++++++++++++
 graphics/imlib2/Makefile   |  11 ++---------
 graphics/imlib2/options.mk |  15 +++++++++++++++
 4 files changed, 34 insertions(+), 17 deletions(-)

diffs (89 lines):

diff -r c50856b5a048 -r 80265e0cd3b9 devel/libast/Makefile
--- a/devel/libast/Makefile     Tue May 31 21:33:11 2005 +0000
+++ b/devel/libast/Makefile     Tue May 31 21:35:13 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2005/04/11 21:45:26 tv Exp $
+# $NetBSD: Makefile,v 1.17 2005/05/31 21:35:13 wiz Exp $
 
 DISTNAME=      libast-0.6.1
 CATEGORIES=    devel
@@ -13,15 +13,9 @@
 GNU_CONFIGURE=         YES
 TEST_TARGET=           test
 
+.include "options.mk"
 .include "../../mk/bsd.prefs.mk"
 
-.if ${MACHINE_ARCH} == "i386"
-BUILD_DEFS+=           USE_MMX
-. if !empty(USE_MMX:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+=       --enable-mmx
-. endif
-.endif
-
 .if ${OPSYS} == "SunOS"
 LDFLAGS+=-lresolv
 .endif
diff -r c50856b5a048 -r 80265e0cd3b9 devel/libast/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libast/options.mk   Tue May 31 21:35:13 2005 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 21:35:13 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.libast
+
+.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 c50856b5a048 -r 80265e0cd3b9 graphics/imlib2/Makefile
--- a/graphics/imlib2/Makefile  Tue May 31 21:33:11 2005 +0000
+++ b/graphics/imlib2/Makefile  Tue May 31 21:35:13 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2005/04/11 21:46:04 tv Exp $
+# $NetBSD: Makefile,v 1.32 2005/05/31 21:36:36 wiz Exp $
 
 DISTNAME=      imlib2-1.2.0
 PKGREVISION=   3
@@ -17,14 +17,7 @@
 
 LIBS.SunOS=            -lm
 
-.include "../../mk/bsd.prefs.mk"
-
-.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"
 
 .include "../../archivers/bzip2/buildlink3.mk"
 .include "../../devel/libltdl/buildlink3.mk"
diff -r c50856b5a048 -r 80265e0cd3b9 graphics/imlib2/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/imlib2/options.mk        Tue May 31 21:35:13 2005 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 21:36:36 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.imlib2
+
+.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



Home | Main Index | Thread Index | Old Index