From 4717998f3193637adafae3cfc141328430953130 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 1 Jun 2005 14:29:58 +0000 Subject: Convert to options framework. --- devel/allegro/Makefile | 14 ++------------ devel/allegro/options.mk | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 devel/allegro/options.mk diff --git a/devel/allegro/Makefile b/devel/allegro/Makefile index 8123fecbe9b..b8aa8213972 100644 --- a/devel/allegro/Makefile +++ b/devel/allegro/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2005/05/22 20:07:47 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2005/06/01 14:29:58 wiz Exp $ DISTNAME= allegro-4.1.18 CATEGORIES= devel @@ -23,17 +23,7 @@ CONFIGURE_ARGS+= --disable-ossmidi LIBS+= ${LIBOSSAUDIO} -.include "../../mk/bsd.prefs.mk" - -BUILD_DEFS+= USE_ESOUND - -.if !empty(USE_ESOUND:M[Yy][Ee][Ss]) -CONFIGURE_ARGS+= --enable-esddigi -.include "../../audio/esound/buildlink3.mk" -PLIST_SUBST+= ESOUND="" -.else -PLIST_SUBST+= ESOUND="@comment " -.endif +.include "options.mk" SUBST_CLASSES= oss SUBST_STAGE.oss= post-patch diff --git a/devel/allegro/options.mk b/devel/allegro/options.mk new file mode 100644 index 00000000000..0f1a7fb63c7 --- /dev/null +++ b/devel/allegro/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1 2005/06/01 14:29:58 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.allegro +PKG_SUPPORTED_OPTIONS= esound + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mesound) +CONFIGURE_ARGS+= --enable-esddigi +.include "../../audio/esound/buildlink3.mk" +PLIST_SUBST+= ESOUND="" +.else +PLIST_SUBST+= ESOUND="@comment " +.endif -- cgit v1.2.3