diff options
author | wiz <wiz@pkgsrc.org> | 2005-05-31 21:35:13 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-05-31 21:35:13 +0000 |
commit | 0a6786cb3dff465e9e0522b8d0da31756a958b52 (patch) | |
tree | ad56e78f057b023699be6a3b9dfcf8bf3902d12d /devel/libast | |
parent | 46920282885484b73f1d58fda518fd60efe7f7fd (diff) | |
download | pkgsrc-0a6786cb3dff465e9e0522b8d0da31756a958b52.tar.gz |
Convert to options framework.
Diffstat (limited to 'devel/libast')
-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 |