summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Thai Ngoc Duy <pclouds@gentoo.org>2007-12-16 18:46:21 +0000
committerNguyen Thai Ngoc Duy <pclouds@gentoo.org>2007-12-16 18:46:21 +0000
commit6fabc82c8c09e6a9859e57625af31d0f2e711376 (patch)
tree8950fa540463ba41ff275863af317ed18a5f338b /media-libs/swfdec
parentadd missing doc to IUSE (diff)
downloadgentoo-2-6fabc82c8c09e6a9859e57625af31d0f2e711376.tar.gz
gentoo-2-6fabc82c8c09e6a9859e57625af31d0f2e711376.tar.bz2
gentoo-2-6fabc82c8c09e6a9859e57625af31d0f2e711376.zip
Added some more USE flags, #202379
(Portage version: 2.1.3_rc8)
Diffstat (limited to 'media-libs/swfdec')
-rw-r--r--media-libs/swfdec/ChangeLog9
-rw-r--r--media-libs/swfdec/files/digest-swfdec-0.5.4-r13
-rw-r--r--media-libs/swfdec/swfdec-0.5.4-r1.ebuild82
3 files changed, 93 insertions, 1 deletions
diff --git a/media-libs/swfdec/ChangeLog b/media-libs/swfdec/ChangeLog
index 2a40fecd465e..0814abdd7089 100644
--- a/media-libs/swfdec/ChangeLog
+++ b/media-libs/swfdec/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/swfdec
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/swfdec/ChangeLog,v 1.22 2007/11/24 18:12:00 pclouds Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/swfdec/ChangeLog,v 1.23 2007/12/16 18:46:20 pclouds Exp $
+
+*swfdec-0.5.4-r1 (16 Dec 2007)
+
+ 16 Dec 2007; Nguyễn Thái Ngọc Duy <pclouds@gentoo.org>
+ +swfdec-0.5.4-r1.ebuild:
+ Added some more USE flags with patch from
+ Christoph Brill (egore) <egore@gmx.de>, #202379
*swfdec-0.5.4 (24 Nov 2007)
diff --git a/media-libs/swfdec/files/digest-swfdec-0.5.4-r1 b/media-libs/swfdec/files/digest-swfdec-0.5.4-r1
new file mode 100644
index 000000000000..22fd4291e326
--- /dev/null
+++ b/media-libs/swfdec/files/digest-swfdec-0.5.4-r1
@@ -0,0 +1,3 @@
+MD5 506b032204b71ffac7d0424eaf9608c4 swfdec-0.5.4.tar.gz 6857084
+RMD160 11c7bbcee4bffa2e826a6d48e28cb4ba09749f29 swfdec-0.5.4.tar.gz 6857084
+SHA256 b43256d55896d7def5a5d403f0533e0937c511eb32bcca97cb26d228f2e0c94e swfdec-0.5.4.tar.gz 6857084
diff --git a/media-libs/swfdec/swfdec-0.5.4-r1.ebuild b/media-libs/swfdec/swfdec-0.5.4-r1.ebuild
new file mode 100644
index 000000000000..1c5a5e50744b
--- /dev/null
+++ b/media-libs/swfdec/swfdec-0.5.4-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/swfdec/swfdec-0.5.4-r1.ebuild,v 1.1 2007/12/16 18:46:20 pclouds Exp $
+
+inherit eutils versionator confutils
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Macromedia Flash decoding library"
+HOMEPAGE="http://swfdec.freedesktop.org"
+SRC_URI="http://swfdec.freedesktop.org/download/${PN}/${MY_PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE="ffmpeg gstreamer gnome mad oss alsa pulseaudio soup"
+
+RESTRICT="test"
+
+RDEPEND=">=dev-libs/glib-2.12
+ >=dev-libs/liboil-0.3.1
+ >=x11-libs/pango-1.16.4
+ soup? ( >=net-libs/libsoup-2.2.0 )
+ >=x11-libs/cairo-1.2
+ >=x11-libs/gtk+-2.8.0
+ >=media-libs/alsa-lib-1.0.12
+ ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20070330 )
+ mad? ( >=media-libs/libmad-0.15.1b )
+ gstreamer? ( >=media-libs/gstreamer-0.10.11 )
+ gnome? ( gnome-base/gnome-vfs )
+ alsa? ( >=media-libs/alsa-lib-1.0 )
+ pulseaudio? ( media-sound/pulseaudio )
+ !<=net-www/swfdec-mozilla-0.5.2"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+pkg_setup() {
+ if use ppc && use ffmpeg ; then
+ eerror "swfdec doesn't work with latest ffmpeg version in"
+ eerror "ppc arch. See bug #11841 in Freedesktop Bugzilla."
+ eerror "Please disable ffmpeg flag and enable gstreamer"
+ die "Depends failed"
+ fi
+ if use !gnome ; then
+ ewarn "In order to compile libswfdec-gtk with Gnome-VFS"
+ ewarn "support you must have 'gnome' USE flag enabled"
+ fi
+ if use !soup ; then
+ ewarn "swfdec will be built without HTTP protocol support"
+ ewarn "so you won't be able to use swfdec-mozilla, please"
+ ewarn "add 'soup' to your USE flags"
+ fi
+ confutils_use_conflict oss alsa pulseaudio
+}
+
+src_compile() {
+ local myconf
+ local myaudio
+
+ #--with-audio=[auto/alsa/oss/none]
+ myaudio="none"
+ use oss && myaudio="oss"
+ use pulseaudio && myaudio="pa"
+ use alsa && myaudio="alsa"
+ myconf=" --with-audio=$myaudio"
+
+ econf \
+ $(use_enable gstreamer) \
+ $(use_enable ffmpeg) \
+ $(use_enable mad) \
+ $(use_enable gnome gnome-vfs) \
+ $(use_enable soup) \
+ ${myconf} || die "configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "emake install failed"
+ dodoc AUTHORS ChangeLog README
+}