ports/149888: [patch] Enable ffaudio, cue plugins support in multimedia/audacious-plugins
Kuan-Chung Chiu
buganini at gmail.com
Sun Aug 22 19:30:06 UTC 2010
>Number: 149888
>Category: ports
>Synopsis: [patch] Enable ffaudio,cue plugins support in multimedia/audacious-plugins
>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 Aug 22 19:30:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Kuan-Chung Chiu
>Release: 9.0-CURRENT
>Organization:
N/A
>Environment:
FreeBSD zeta.twbbs.org 9.0-CURRENT FreeBSD 9.0-CURRENT #5 r211571: Sun Aug 22 00:26:10 UTC 2010 root at zeta.twbbs.org:/usr/obj/usr/src/sys/ELIZABETH amd64
>Description:
1. Currently ffaudio is hardcodedly disable, but I need ffaudio for ape decoding.
2. Enable CUE support, this require a new port: libcue
http://www.freebsd.org/cgi/query-pr.cgi?pr=149887
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN audacious-plugins.orig/Makefile audacious-plugins/Makefile
--- audacious-plugins.orig/Makefile 2010-08-23 01:36:38.000000000 +0000
+++ audacious-plugins/Makefile 2010-08-23 02:47:00.000000000 +0000
@@ -7,7 +7,7 @@
PORTNAME= audacious-plugins
PORTVERSION= 2.3
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= multimedia audio
MASTER_SITES= http://distfiles.atheme.org/
EXTRACT_SUFX= .tgz
@@ -23,7 +23,7 @@
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" \
CFLAGS="-I${LOCALBASE}/include" \
CPP=${CPP}
-CONFIGURE_ARGS= --disable-evdevplug --disable-alsa --disable-ffaudio \
+CONFIGURE_ARGS= --disable-evdevplug --disable-alsa \
--disable-pulse --disable-projectm --disable-projectm-1.0
WANT_GNOME= yes
WANT_EFL= yes
@@ -37,6 +37,7 @@
# PROJECTM "Enable projectM vis plugin" on \
OPTIONS= DBUS "Enable dbus support" on \
+ CUE "Enable CUE support" on \
ESOUND "Enable Esound output output" off \
MP3 "Enable mp3 plugin" on \
ROCKLIGHT "Enable Rocklight vis plugin" on \
@@ -47,6 +48,7 @@
ADPLUG "Enable AdPlug plugin" off \
VORBIS "Enable Ogg Vorbis input plugin" off \
FLAC "Enable FLAC input plugin" off \
+ FFAUDIO "Enable FFAUDIO input plugin" off \
WAVPACK "Enable WavPack input plugin" off \
AAC "Enable aac plugin" on \
SNDFILE "Enable sndfile extensions" off \
@@ -77,6 +79,15 @@
PLIST_SUB+= DBUS="@comment "
.endif
+.if !defined(WITHOUT_CUE)
+LIB_DEPENDS+= cue.1:${PORTSDIR}/audio/libcue
+CONFIGURE_ARGS+=--enable-cue
+PLIST_SUB+= CUEPLUGIN=""
+.else
+CONFIGURE_ARGS+=--disable-cue
+PLIST_SUB+= CUEPLUGIN="@comment "
+.endif
+
.if defined(WITH_ESOUND)
USE_GNOME+= esound
CONFIGURE_ARGS+=--enable-esd
@@ -171,6 +182,15 @@
PLIST_SUB+= FLACPLUGIN="@comment "
.endif
+.if defined(WITH_FFAUDIO)
+LIB_DEPENDS+= avutil.1:${PORTSDIR}/multimedia/ffmpeg
+CONFIGURE_ARGS+=--enable-ffaudio
+PLIST_SUB+= FFAUDIOPLUGIN=""
+.else
+CONFIGURE_ARGS+=--disable-ffaudio
+PLIST_SUB+= FFAUDIOPLUGIN="@comment "
+.endif
+
.if defined(WITH_WAVPACK)
LIB_DEPENDS+= wavpack.2:${PORTSDIR}/audio/wavpack
CONFIGURE_ARGS+=--enable-wavpack
diff -ruN audacious-plugins.orig/pkg-plist audacious-plugins/pkg-plist
--- audacious-plugins.orig/pkg-plist 2010-08-23 01:36:38.000000000 +0000
+++ audacious-plugins/pkg-plist 2010-08-23 02:45:17.000000000 +0000
@@ -1,3 +1,4 @@
+%%CUEPLUGIN%%lib/audacious/Container/cue.so
lib/audacious/Container/m3u.so
lib/audacious/Container/pls.so
lib/audacious/Container/xspf.so
@@ -28,6 +29,7 @@
%%CDAUDIOPLUGIN%%lib/audacious/Input/cdaudio-ng.so
lib/audacious/Input/console.so
%%FLACPLUGIN%%lib/audacious/Input/flacng.so
+%%FFAUDIOPLUGIN%%lib/audacious/Input/ffaudio.so
%%MP3PLUGIN%%lib/audacious/Input/madplug.so
lib/audacious/Input/metronom.so
%%MODPLUG%%lib/audacious/Input/modplug.so
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list