Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2012 22:22:30 GMT
From:      Chris Petrik <c.petrik.sosa@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173800: [PATCH] audio/gmusicbrowser optionsng
Message-ID:  <201211212222.qALMMUdt078294@red.freebsd.org>
Resent-Message-ID: <201211212230.qALMU2NC041115@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173800
>Category:       ports
>Synopsis:       [PATCH] audio/gmusicbrowser optionsng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 21 22:30:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Chris Petrik
>Release:        
>Organization:
na
>Environment:
>Description:
OptionsNG Changes
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: gmusicbrowser/Makefile
===================================================================
--- gmusicbrowser/Makefile	(revision 305743)
+++ gmusicbrowser/Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	gmusicbrowser
-# Date created:		2011-10-13
-# Whom:			Zhihao Yuan <lichray@gmail.com>
-#
+# Created by:	Zhihao Yuan <lichray@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	gmusicbrowser
 PORTVERSION=	1.1.9
@@ -20,28 +16,27 @@
 PORTDOCS=	AUTHORS COPYING README NEWS INSTALL layout_doc.html
 PORTDATA=	*
 
-OPTIONS=	GST	"Enable GStreamer backend"	Off \
-		MPLAYER	"Enable mplayer backend"	On \
-		DBUS	"Enable DBus (Gnome multimedia key)" Off \
-		WEBKIT	"Enable embedded web browser" Off \
-		NLS	"Enable Native Language Support" On
-#		123	"Enable mpg123/ogg123 backend"	Off  # alsa-only
+#OPTIONS_DEFINE=	GST MPLAYER DBUS WEBKIT NLS MPG123
+OPTIONS_DEFINE=	GSTREAMER MPLAYER DBUS WEBKIT NLS
+OPTIONS_DEFAULT=	MPLAYER NLS
 
-.include <bsd.port.pre.mk>
+WEBKIT_DESC=	Enable embedded web browser
 
-.if defined(WITH_GST)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGSTREAMER}
 RUN_DEPENDS+=	p5-GStreamer>=0:${PORTSDIR}/multimedia/p5-GStreamer
 .endif
 
-.if defined(WITH_MPLAYER)
+.if ${PORT_OPTIONS:MMPLAYER}
 RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
 .endif
 
-.if defined(WITH_DBUS)
+.if ${PORT_OPTIONS:MDBUS}
 RUN_DEPENDS+=	p5-Net-DBus>=1.0:${PORTSDIR}/devel/p5-Net-DBus
 .endif
 
-.if defined(WITH_WEBKIT)
+.if ${PORT_OPTIONS:MWEBKIT}
 RUN_DEPENDS+=	p5-Gtk2-WebKit>=0:${PORTSDIR}/www/p5-Gtk2-WebKit
 .endif
 
@@ -72,4 +67,4 @@
 		${FIND} locale -type f | ${SED} "s|^|share/|g" >> ${TMPPLIST})
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211212222.qALMMUdt078294>