summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-05-31 21:35:13 +0000
committerwiz <wiz@pkgsrc.org>2005-05-31 21:35:13 +0000
commit6a50d7260d3bef930b75a038b4fd05f1ace061fa (patch)
treead56e78f057b023699be6a3b9dfcf8bf3902d12d /graphics
parent884d8f6b44e0a7c892b79a489226dcd234638543 (diff)
downloadpkgsrc-6a50d7260d3bef930b75a038b4fd05f1ace061fa.tar.gz
Convert to options framework.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/imlib2/Makefile11
-rw-r--r--graphics/imlib2/options.mk15
2 files changed, 17 insertions, 9 deletions
diff --git a/graphics/imlib2/Makefile b/graphics/imlib2/Makefile
index 7d97dde70d0..7b6e2fd127e 100644
--- a/graphics/imlib2/Makefile
+++ b/graphics/imlib2/Makefile
@@ -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 @@ PKGCONFIG_OVERRIDE= imlib2.pc.in
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 --git a/graphics/imlib2/options.mk b/graphics/imlib2/options.mk
new file mode 100644
index 00000000000..b50325e9af2
--- /dev/null
+++ b/graphics/imlib2/options.mk
@@ -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