Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  8 Oct 2006 13:02:10 +0200 (CEST)
From:      Roland Smith <rsmith@xs4all.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/104155: [PATCH] enable optional FLAC support for multimedia/audacious
Message-ID:  <20061008110210.44446B845@slackbox.xs4all.nl>
Resent-Message-ID: <200610081110.k98BAMQR006433@freefall.freebsd.org>

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

>Number:         104155
>Category:       ports
>Synopsis:       [PATCH] enable optional FLAC support for multimedia/audacious
>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:   Sun Oct 08 11:10:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Roland Smith
>Release:        FreeBSD 6.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD slackbox.xs4all.nl 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Sep 9 14:46:57 CEST 2006 rsmith@slackbox.xs4all.nl:/usr/obj/usr/src/sys/RFS amd64


	
>Description:
	FLAC support in multimedia/audacious is currently disabled. 
>How-To-Repeat:
	cd /usr/ports/multimedia/audacious; make config install clean
>Fix:
Apply the following patches to the port Makefile and plist. They make FLAC
an optional dependency. 

Note that this also fixes a typo in CONFIGURE_ARGS; '--disable-flc' should
be '--disable-flac', according to the configure script for audacious.

---------- Makefile patch ----------
--- Makefile.orig	Sun Oct  8 12:24:06 2006
+++ Makefile	Sun Oct  8 12:40:06 2006
@@ -32,8 +32,8 @@
 		INPUT_PLUGINS="${INPUT_PLUGINS}" \
 		OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \
 		VISUALIZATION_PLUGINS="${VISUALIZATION_PLUGINS}"
-CONFIGURE_ARGS=	--disable-jack --disable-flc --disable-adplug \
-	--disable-lirc --disable-alsa --disable-amidiplug --disable-arts --disable-wma
+CONFIGURE_ARGS=	--disable-jack --disable-adplug --disable-lirc \
+--disable-alsa --disable-amidiplug --disable-arts --disable-wma
 
 MAN1=		audacious.1
 
@@ -46,6 +46,7 @@
 
 OPTIONS=	VORBIS	"Enable Ogg Vorbis input" on \
 		MODPLUG	"Enable modplug input" off \
+		FLAC	"Enable FLAC input" off \
 		SID	"Enable sid input" off \
 		MPC	"Enable mpc input" off \
 		ESOUND	"Enable Esound output"  off \
@@ -74,6 +75,15 @@
 .else
 PLIST_SUB+=	MODPLUG="@comment "
 CONFIGURE_ARGS+=	--disable-modplug
+.endif
+
+.if !defined(WITHOUT_FLAC)
+INPUT_PLUGINS+=	flac
+PLIST_SUB+=	FLACPLUGIN=""
+LIB_DEPENDS+=	FLAC.7:${PORTSDIR}/audio/flac
+.else
+PLIST_SUB+=	FLACPLUGIN="@comment "
+CONFIGURE_ARGS+=	--disable-flac
 .endif
 
 .if !defined(WITHOUT_SID)
---------- Makefile patch ----------

---------- pkg-plist patch ----------
--- pkg-plist.orig	Sun Oct  8 12:36:20 2006
+++ pkg-plist	Sun Oct  8 12:37:44 2006
@@ -29,6 +29,7 @@
 lib/audacious/Input/libtimidity.so
 %%VORBISPLUGIN%%lib/audacious/Input/libvorbis.so
 %%MODPLUG%%lib/audacious/Input/libmodplug.so
+%%FLACPLUGIN%%lib/audacious/Input/libflac.so
 %%MPCPLUGIN%%lib/audacious/Input/libmpc.so
 %%SIDPLUGIN%%lib/audacious/Input/libsid.so
 lib/audacious/Input/libwav.so
---------- pkg-plist patch ----------


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



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