aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorlawrance <lawrance@FreeBSD.org>2006-10-31 16:28:03 +0800
committerlawrance <lawrance@FreeBSD.org>2006-10-31 16:28:03 +0800
commit41c84a49d82ad4cebb992b972c73df6d04f95cd0 (patch)
tree1022b93baf2ce5b9187dcbe3126f2981514edb48 /multimedia
parent5025890bfd683360234297b85507d001bc703dfe (diff)
downloadfreebsd-ports-gnome-41c84a49d82ad4cebb992b972c73df6d04f95cd0.tar.gz
freebsd-ports-gnome-41c84a49d82ad4cebb992b972c73df6d04f95cd0.tar.zst
freebsd-ports-gnome-41c84a49d82ad4cebb992b972c73df6d04f95cd0.zip
Add a port option to build with FLAC support.
PR: ports/104155 Submitted by: Roland Smith <rsmith@xs4all.nl> Approved by: Stepan Zastupov <redchrom@gmail.com> (maintainer, timeout 3 weeks)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/audacious-plugins/Makefile14
-rw-r--r--multimedia/audacious-plugins/pkg-plist1
-rw-r--r--multimedia/audacious/Makefile14
-rw-r--r--multimedia/audacious/pkg-plist1
4 files changed, 26 insertions, 4 deletions
diff --git a/multimedia/audacious-plugins/Makefile b/multimedia/audacious-plugins/Makefile
index 3913ae658971..04dde100af07 100644
--- a/multimedia/audacious-plugins/Makefile
+++ b/multimedia/audacious-plugins/Makefile
@@ -31,8 +31,8 @@ CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lstdc++" \
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
@@ -45,6 +45,7 @@ VISUALIZATION_PLUGINS= blur_scope
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 \
@@ -75,6 +76,15 @@ 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)
INPUT_PLUGINS+= sid
PLIST_SUB+= SIDPLUGIN=""
diff --git a/multimedia/audacious-plugins/pkg-plist b/multimedia/audacious-plugins/pkg-plist
index e306a329003f..3ecd72af0071 100644
--- a/multimedia/audacious-plugins/pkg-plist
+++ b/multimedia/audacious-plugins/pkg-plist
@@ -29,6 +29,7 @@ lib/audacious/Input/libaac.so
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
diff --git a/multimedia/audacious/Makefile b/multimedia/audacious/Makefile
index 3913ae658971..04dde100af07 100644
--- a/multimedia/audacious/Makefile
+++ b/multimedia/audacious/Makefile
@@ -31,8 +31,8 @@ CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lstdc++" \
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
@@ -45,6 +45,7 @@ VISUALIZATION_PLUGINS= blur_scope
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 \
@@ -75,6 +76,15 @@ 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)
INPUT_PLUGINS+= sid
PLIST_SUB+= SIDPLUGIN=""
diff --git a/multimedia/audacious/pkg-plist b/multimedia/audacious/pkg-plist
index e306a329003f..3ecd72af0071 100644
--- a/multimedia/audacious/pkg-plist
+++ b/multimedia/audacious/pkg-plist
@@ -29,6 +29,7 @@ lib/audacious/Input/libaac.so
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