pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/golem Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f519d13acc86
branches:  trunk
changeset: 495101:f519d13acc86
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jun 02 18:10:33 2005 +0000

description:
Convert to options framework.

diffstat:

 wm/golem/Makefile |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r d273290a83e8 -r f519d13acc86 wm/golem/Makefile
--- a/wm/golem/Makefile Thu Jun 02 18:10:13 2005 +0000
+++ b/wm/golem/Makefile Thu Jun 02 18:10:33 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2005/06/01 18:03:25 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2005/06/02 18:10:33 wiz Exp $
 #
 
 DISTNAME=      golem-0.0.5
@@ -20,10 +20,13 @@
 CONFIGURE_ARGS+=       --enable-xinerama
 .endif
 
-GOLEM_WITH_SOUND?=     NO
+PKG_OPTIONS_VAR=       PKG_OPTIONS.golem
+PKG_SUPPORTED_OPTIONS= esound
+PKG_OPTIONS_LEGACY_VARS+=      GOLEM_WITH_SOUND:esound
 
-.if !empty(GOLEM_WITH_SOUND:M[Yy][Ee][Ss])
-BUILD_DEFS=            GOLEM_WITH_SOUND
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mesound)
 CONFIGURE_ARGS+=       --enable-sound
 PLIST_SUBST=           NOT_SOUND=
 .include "../../audio/esound/buildlink3.mk"



Home | Main Index | Thread Index | Old Index