pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/allegro Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4decab11334f
branches:  trunk
changeset: 494991:4decab11334f
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jun 01 14:29:58 2005 +0000

description:
Convert to options framework.

diffstat:

 devel/allegro/Makefile   |  14 ++------------
 devel/allegro/options.mk |  14 ++++++++++++++
 2 files changed, 16 insertions(+), 12 deletions(-)

diffs (46 lines):

diff -r 63d84b90767f -r 4decab11334f devel/allegro/Makefile
--- a/devel/allegro/Makefile    Wed Jun 01 14:29:47 2005 +0000
+++ b/devel/allegro/Makefile    Wed Jun 01 14:29:58 2005 +0000
@@ -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 @@
 
 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 -r 63d84b90767f -r 4decab11334f devel/allegro/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/allegro/options.mk  Wed Jun 01 14:29:58 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index