diff options
author | Marinus Schraal <foser@gentoo.org> | 2004-03-06 17:30:29 +0000 |
---|---|---|
committer | Marinus Schraal <foser@gentoo.org> | 2004-03-06 17:30:29 +0000 |
commit | 2319603faea788d4a554a5f96701133810b91791 (patch) | |
tree | 9b51a83f65483ff0dbc53b8eb9c5a24654cb7156 /media-sound/rhythmbox | |
parent | New app. (Manifest recommit) (diff) | |
download | gentoo-2-2319603faea788d4a554a5f96701133810b91791.tar.gz gentoo-2-2319603faea788d4a554a5f96701133810b91791.tar.bz2 gentoo-2-2319603faea788d4a554a5f96701133810b91791.zip |
fix flac switching
Diffstat (limited to 'media-sound/rhythmbox')
-rw-r--r-- | media-sound/rhythmbox/ChangeLog | 6 | ||||
-rw-r--r-- | media-sound/rhythmbox/files/rhythmbox-0.6-fix_flac_test.patch | 35 | ||||
-rw-r--r-- | media-sound/rhythmbox/rhythmbox-0.6.8.ebuild | 21 |
3 files changed, 56 insertions, 6 deletions
diff --git a/media-sound/rhythmbox/ChangeLog b/media-sound/rhythmbox/ChangeLog index b56582ad3c23..e6284d177cd5 100644 --- a/media-sound/rhythmbox/ChangeLog +++ b/media-sound/rhythmbox/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-sound/rhythmbox # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/rhythmbox/ChangeLog,v 1.32 2004/03/06 16:06:37 liquidx Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/rhythmbox/ChangeLog,v 1.33 2004/03/06 17:30:29 foser Exp $ + + 06 Mar 2004; foser <foser@gentoo.org> rhythmbox-0.6.8.ebuild : + Fixed flac switch, so it now actually works the way it should + Had to fix deps & configure switch usage accordingly *rhythmbox-0.6.8 (06 Mar 2004) diff --git a/media-sound/rhythmbox/files/rhythmbox-0.6-fix_flac_test.patch b/media-sound/rhythmbox/files/rhythmbox-0.6-fix_flac_test.patch new file mode 100644 index 000000000000..8a044cfccd78 --- /dev/null +++ b/media-sound/rhythmbox/files/rhythmbox-0.6-fix_flac_test.patch @@ -0,0 +1,35 @@ +diff -uNr rhythmbox-0.6.8/configure.ac rhythmbox-0.6.8.patched/configure.ac +--- rhythmbox-0.6.8/configure.ac 2004-03-05 20:06:16.000000000 +0100 ++++ rhythmbox-0.6.8.patched/configure.ac 2004-03-06 18:03:59.314696456 +0100 +@@ -272,7 +272,7 @@ + VORBISKEYS= + fi + AC_SUBST(VORBISKEYS) +-if test "x$enable_vorbis" = "xyes"; then ++if test x"$enable_vorbis" = "xyes"; then + AC_DEFINE(HAVE_VORBIS,,[Define if we have Ogg Vorbis support]) + fi + AM_CONDITIONAL(HAVE_VORBIS,test "x$enable_vorbis" = "xyes") +@@ -284,18 +284,18 @@ + if test x"$enable_flac" = xyes && test x"$enable_mp3" != xyes; then + AC_MSG_ERROR([libid3tag is required for FLAC support]) + fi +-if test "$xenable_flac" != "xno" && test x"$enable_mp3" = xyes; then ++if test x"$enable_flac" != "xno" && test x"$enable_mp3" = xyes; then + AC_CHECK_HEADER(FLAC/all.h,[enable_flac=yes],) + fi +-if test "x$enable_flac" = "xyes"; then ++if test x"$enable_flac" = "xyes"; then + LIBS="$LIBS -lFLAC" + FLACKEYS=",application/x-flac,audio/x-flac" + fi + AC_SUBST(FLACKEYS) +-if test "x$enable_flac" = "xyes"; then ++if test x"$enable_flac" = "xyes"; then + AC_DEFINE(HAVE_FLAC,,[Define if we have FLAC support]) + fi +-AM_CONDITIONAL(HAVE_FLAC,test "x$enable_flac" = "xyes") ++AM_CONDITIONAL(HAVE_FLAC,test x"$enable_flac" = "xyes") + + CFLAGS="$CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS" + LIBS="$LIBS $OGG_LIBS $VORBIS_LIBS $VORBISFILE_LIBS $FLAC_LIBS" diff --git a/media-sound/rhythmbox/rhythmbox-0.6.8.ebuild b/media-sound/rhythmbox/rhythmbox-0.6.8.ebuild index b4adcdc67976..6beafcc04f25 100644 --- a/media-sound/rhythmbox/rhythmbox-0.6.8.ebuild +++ b/media-sound/rhythmbox/rhythmbox-0.6.8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/rhythmbox/rhythmbox-0.6.8.ebuild,v 1.2 2004/03/06 16:06:37 liquidx Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/rhythmbox/rhythmbox-0.6.8.ebuild,v 1.3 2004/03/06 17:30:29 foser Exp $ inherit gnome2 @@ -19,7 +19,8 @@ RDEPEND=">=x11-libs/gtk+-2.2.2 >=gnome-base/libbonobo-2 >=media-libs/musicbrainz-2 faad? ( >=media-libs/faad2-2.0_rc3 ) - flac? ( >=media-libs/flac-1 ) + flac? ( >=media-libs/flac-1 + >=media-libs/libid3tag-0.15.0b ) oggvorbis? ( >=media-libs/libvorbis-1 ) mad? ( >=media-libs/libid3tag-0.15.0b ) !xine? ( >=media-libs/gstreamer-0.6.3 @@ -43,13 +44,16 @@ DEPEND="${RDEPEND} MAKEOPTS="${MAKEOPTS} -j1" use xine && G2CONF="${G2CONF} --enable-xine" -use flac && G2CONF="${G2CONF} --enable-flac" + +# flac support needs both flac & mp3 support enabled +use flac || use mad \ + && G2CONF="${G2CONF} --enable-mp3" \ + || G2CONF="${G2CONF} --disable-mp3" G2CONF="${G2CONF} \ - $(use_enable flac) \ $(use_enable oggvorbis vorbis) \ - $(use_enable mad mp3) \ $(use_enable faad mp4 ) \ + $(use_enable flac) \ --enable-mmkeys \ --enable-audiocd \ --disable-schemas-install" @@ -64,6 +68,13 @@ src_unpack( ) { epatch ${FILESDIR}/${PN}-0.6.5-gcc2_fix.patch epatch ${FILESDIR}/${PN}-0.6.8-amd64.patch + + # fix configure.ac to make flac switch work correctly + epatch ${FILESDIR}/${PN}-0.6-fix_flac_test.patch + + # rerun autoconf for the flac fix + autoconf || die + } DOCS="AUTHORS COPYING ChangeLog DOCUMENTERS INSTALL INTERNALS \ |