diff options
author | wiz <wiz> | 2005-05-31 21:35:13 +0000 |
---|---|---|
committer | wiz <wiz> | 2005-05-31 21:35:13 +0000 |
commit | 6fc5c23c84f686a4ad0072a0e1d316d363e4db9d (patch) | |
tree | ad56e78f057b023699be6a3b9dfcf8bf3902d12d /devel | |
parent | 0620d95dd595e7cb9116e7d780898b41439acc46 (diff) | |
download | pkgsrc-6fc5c23c84f686a4ad0072a0e1d316d363e4db9d.tar.gz |
Convert to options framework.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libast/Makefile | 10 | ||||
-rw-r--r-- | devel/libast/options.mk | 15 |
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 |