Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2012 21:52:05 GMT
From:      Chris Petrik <c.petrik.sosa@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173779: [PATCH] audio/asunder optionsng
Message-ID:  <201211212152.qALLq5HF029569@red.freebsd.org>
Resent-Message-ID: <201211212200.qALM0151037563@freefall.freebsd.org>

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

>Number:         173779
>Category:       ports
>Synopsis:       [PATCH] audio/asunder optionsng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 21 22:00:01 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: asunder/Makefile
===================================================================
--- asunder/Makefile	(revision 305743)
+++ asunder/Makefile	(working copy)
@@ -1,7 +1,4 @@
-# New ports collection makefile for:	asunder
-# Date created:				14 September 2007
-# Whom:					frase@frase.id.au
-#
+# Created by: frase@frase.id.au
 # $FreeBSD$
 
 PORTNAME=	asunder
@@ -16,38 +13,37 @@
 LIB_DEPENDS=	cddb.4:${PORTSDIR}/audio/libcddb
 RUN_DEPENDS=	${LOCALBASE}/bin/cdparanoia:${PORTSDIR}/audio/cdparanoia
 
-OPTIONS=	LAME "lame support" on \
-		OGG "ogg-vorbis support" on \
-		FLAC "FLAC support" on \
-		WAVPACK "WavPack support" off \
-		MONKEYAUDIO "Monkey's Audio support" off \
-		WINDOWS_CHARS "Allow Windows special chars in filenames" off
+OPTIONS_DEFINE=	LAME OGG FLAC WAVPACK MONKEYAUDIO WINDOWS_CHARS
+OPTIONS_DEFAULT=	LAME OGG FLAC
 
+MONKEYAUDIO_DESC=	Monkey's Audio support
+WINDOWS_CHARS_DESC=	Allow Windows special chars in filenames
+
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
 USE_GNOME=	gtk20
 
 PORTDOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_LAME)
+.if ${PORT_OPTIONS:MLAME}
 RUN_DEPENDS+=	lame:${PORTSDIR}/audio/lame
 .endif
 
-.if defined(WITH_OGG)
+.if ${PORT_OPTIONS:MOGG}
 RUN_DEPENDS+=	oggenc:${PORTSDIR}/audio/vorbis-tools
 .endif
 
-.if defined(WITH_FLAC)
+.if ${PORT_OPTIONS:MFLAC}
 RUN_DEPENDS+=	flac:${PORTSDIR}/audio/flac
 .endif
 
-.if defined(WITH_WAVPACK)
+.if ${PORT_OPTIONS:MWAVPACK}
 RUN_DEPENDS+=	wavpack:${PORTSDIR}/audio/wavpack
 .endif
 
-.if defined(WITH_MONKEYAUDIO)
+.if ${PORT_OPTIONS:MMONKEYAUDIO}
 RUN_DEPENDS+=	mac:${PORTSDIR}/audio/mac
 .endif
 
@@ -62,4 +58,4 @@
 	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
 .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?201211212152.qALLq5HF029569>