summaryrefslogtreecommitdiff
path: root/devel/libast
diff options
context:
space:
mode:
authorwiz <wiz>2005-05-31 21:35:13 +0000
committerwiz <wiz>2005-05-31 21:35:13 +0000
commit2c862d63e86b2615918ab528ebe2d84a8da13638 (patch)
treead56e78f057b023699be6a3b9dfcf8bf3902d12d /devel/libast
parent84a091f78c8dbae971880618b96e5c3ddf7b82c3 (diff)
downloadpkgsrc-2c862d63e86b2615918ab528ebe2d84a8da13638.tar.gz
Convert to options framework.
Diffstat (limited to 'devel/libast')
-rw-r--r--devel/libast/Makefile10
-rw-r--r--devel/libast/options.mk15
2 files changed, 17 insertions, 8 deletions
diff --git a/devel/libast/Makefile b/devel/libast/Makefile
index a0fe7240dd3..11077ec94f2 100644
--- a/devel/libast/Makefile
+++ b/devel/libast/Makefile
@@ -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 @@ USE_X11= YES
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 --git a/devel/libast/options.mk b/devel/libast/options.mk
new file mode 100644
index 00000000000..568ad5ac0bf
--- /dev/null
+++ b/devel/libast/options.mk
@@ -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