diff options
author | Stuart Longland <redhatter@gentoo.org> | 2009-03-01 09:39:39 +0000 |
---|---|---|
committer | Stuart Longland <redhatter@gentoo.org> | 2009-03-01 09:39:39 +0000 |
commit | eeef519ea5dac2db6f16594fa3d55ca5049c0f8a (patch) | |
tree | 7daa99ad95125995de528c2039be2848fd14ff57 /media-sound | |
parent | Initial import. (diff) | |
download | gentoo-2-eeef519ea5dac2db6f16594fa3d55ca5049c0f8a.tar.gz gentoo-2-eeef519ea5dac2db6f16594fa3d55ca5049c0f8a.tar.bz2 gentoo-2-eeef519ea5dac2db6f16594fa3d55ca5049c0f8a.zip |
Add id3tag USE flag to alsaplayer (and patch configure.ac accordingly). Resolves bug #210163.
(Portage version: 2.1.6.7/cvs/Linux mips64)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/alsaplayer/ChangeLog | 12 | ||||
-rw-r--r-- | media-sound/alsaplayer/alsaplayer-0.99.80-r1.ebuild | 82 | ||||
-rw-r--r-- | media-sound/alsaplayer/files/alsaplayer-0.99.80-enable-libid3tag.patch | 19 | ||||
-rw-r--r-- | media-sound/alsaplayer/metadata.xml | 3 |
4 files changed, 114 insertions, 2 deletions
diff --git a/media-sound/alsaplayer/ChangeLog b/media-sound/alsaplayer/ChangeLog index 48fc61c5b993..d8a7f828d0f6 100644 --- a/media-sound/alsaplayer/ChangeLog +++ b/media-sound/alsaplayer/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-sound/alsaplayer -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/ChangeLog,v 1.67 2008/07/05 06:49:43 drac Exp $ +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/ChangeLog,v 1.68 2009/03/01 09:39:39 redhatter Exp $ + +*alsaplayer-0.99.80-r1 (01 Mar 2009) + + 01 Mar 2009; Stuart Longland <redhatter@gentoo.org> + +files/alsaplayer-0.99.80-enable-libid3tag.patch, + +alsaplayer-0.99.80-r1.ebuild: + Add id3tag USE flag to alsaplayer (and patch configure.ac accordingly). + Resolves bug #210163. 05 Jul 2008; Samuli Suominen <drac@gentoo.org> +files/alsaplayer-0.99.80-missing_limits_h.patch, diff --git a/media-sound/alsaplayer/alsaplayer-0.99.80-r1.ebuild b/media-sound/alsaplayer/alsaplayer-0.99.80-r1.ebuild new file mode 100644 index 000000000000..7e961c30a47f --- /dev/null +++ b/media-sound/alsaplayer/alsaplayer-0.99.80-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/alsaplayer-0.99.80-r1.ebuild,v 1.1 2009/03/01 09:39:39 redhatter Exp $ + +inherit autotools eutils + +DESCRIPTION="A heavily multi-threaded pluggable audio player." +HOMEPAGE="http://www.alsaplayer.org" +SRC_URI="http://www.${PN}.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86" +IUSE="alsa audiofile doc esd flac gtk id3tag jack mad mikmod nas nls ogg opengl oss vorbis xosd" + +RDEPEND="media-libs/libsndfile + mad? ( media-libs/libmad ) + id3tag? ( media-libs/libid3tag ) + gtk? ( >=x11-libs/gtk+-2.8 ) + alsa? ( media-libs/alsa-lib ) + audiofile? ( media-libs/audiofile ) + esd? ( media-sound/esound ) + flac? ( media-libs/flac ) + jack? ( >=media-sound/jack-audio-connection-kit-0.80 ) + mikmod? ( >=media-libs/libmikmod-3.1.10 ) + nas? ( media-libs/nas ) + ogg? ( media-libs/libogg ) + opengl? ( virtual/opengl ) + vorbis? ( media-libs/libvorbis ) + xosd? ( x11-libs/xosd )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + nls? ( sys-devel/gettext ) + doc? ( app-doc/doxygen )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}_rc3-flags.patch \ + "${FILESDIR}"/${P}-missing_limits_h.patch \ + "${FILESDIR}"/${P}-enable-libid3tag.patch + eautoreconf +} + +src_compile() { + use xosd || export ac_cv_lib_xosd_xosd_create="no" + use doc || export ac_cv_prog_HAVE_DOXYGEN="false" + + local myconf + + if ! use alsa && ! use oss && ! use esd && ! use jack && ! use nas; then + ewarn "You've disabled alsa, oss, esd, jack and nas. Enabling oss for you." + myconf="${myconf} --enable-oss" + fi + + econf --disable-sgi \ + $(use_enable audiofile) \ + $(use_enable esd) \ + $(use_enable flac) \ + $(use_enable gtk gtk2) \ + $(use_enable id3tag) \ + $(use_enable jack) \ + $(use_enable mikmod) \ + $(use_enable nas) \ + $(use_enable opengl) \ + $(use_enable oss) \ + $(use_enable sparc) \ + $(use_enable vorbis oggvorbis) \ + $(use_enable alsa) \ + $(use_enable nls) \ + $(use_enable mad) \ + --disable-dependency-tracking \ + ${myconf} + + emake CFLAGS="${CFLAGS}" || die "emake failed." +} + +src_install() { + emake DESTDIR="${D}" docdir="${D}/usr/share/doc/${PF}" install \ + || die "emake install failed." + dodoc AUTHORS ChangeLog README TODO docs/*.txt +} diff --git a/media-sound/alsaplayer/files/alsaplayer-0.99.80-enable-libid3tag.patch b/media-sound/alsaplayer/files/alsaplayer-0.99.80-enable-libid3tag.patch new file mode 100644 index 000000000000..c29bba5054f3 --- /dev/null +++ b/media-sound/alsaplayer/files/alsaplayer-0.99.80-enable-libid3tag.patch @@ -0,0 +1,19 @@ +--- alsaplayer-0.99.80/configure.ac 2007-11-04 06:15:35.000000000 +1000 ++++ alsaplayer-0.99.80.new/configure.ac 2009-03-01 17:25:22.344483528 +1000 +@@ -292,6 +292,16 @@ + + AC_CHECK_LIB(id3tag, id3_file_open, + FLC_LDADD="$FLC_LDADD -lid3tag -lz"; use_libid3tag=yes; AC_DEFINE(HAVE_LIBID3TAG, 1, [Define if you have libid3tag library (-lid3tag)]), use_libid3tag=no) ++AC_ARG_ENABLE(id3tag, ++[ --enable-id3tag Enable libid3tag support (default=yes)], ++[if test "$enableval" = "no" ++then ++ if test "$use_libid3tag" = "yes" ++ then ++ use_libid3tag=no ++ fi ++fi]) ++ + + CFLAGS=$oldcflags + diff --git a/media-sound/alsaplayer/metadata.xml b/media-sound/alsaplayer/metadata.xml index 7b7315c8c2fd..8882930edee4 100644 --- a/media-sound/alsaplayer/metadata.xml +++ b/media-sound/alsaplayer/metadata.xml @@ -2,6 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>sound</herd> + <use> + <flag name="id3tag">Enables ID3 tagging with id3tag library</flag> + </use> <maintainer> <email>redhatter@gentoo.org</email> <name>Stuart Longland</name> |