diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2009-09-10 23:44:45 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2009-09-10 23:44:45 +0200 |
commit | 1bb1b03e7f580132dd140d3b1151363cf865b03c (patch) | |
tree | 8a0f5071514dc8891a47e9f687769ba20734a0a9 /media-libs | |
parent | Hum, gudev is now in udev main (diff) | |
download | gnome-live-1bb1b03e7f580132dd140d3b1151363cf865b03c.tar.gz gnome-live-1bb1b03e7f580132dd140d3b1151363cf865b03c.tar.bz2 gnome-live-1bb1b03e7f580132dd140d3b1151363cf865b03c.zip |
media-libs/swfdec: add ebuild
* thanks to Walter Trautner for initial ebuild.
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/swfdec/Manifest | 1 | ||||
-rw-r--r-- | media-libs/swfdec/swfdec-9999.ebuild | 97 |
2 files changed, 98 insertions, 0 deletions
diff --git a/media-libs/swfdec/Manifest b/media-libs/swfdec/Manifest new file mode 100644 index 0000000..2cb21c9 --- /dev/null +++ b/media-libs/swfdec/Manifest @@ -0,0 +1 @@ +EBUILD swfdec-9999.ebuild 2556 RMD160 8715f06742d1e5ecfc40d7aec20386eee7569fe7 SHA1 5adb613c01fb5077df29c438b95653cac4945fb0 SHA256 b407130de024dfe05776e4a9e01112f356645a806d684d5ef586cac84c483f3c diff --git a/media-libs/swfdec/swfdec-9999.ebuild b/media-libs/swfdec/swfdec-9999.ebuild new file mode 100644 index 0000000..8e0f08a --- /dev/null +++ b/media-libs/swfdec/swfdec-9999.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/swfdec/swfdec-0.8.4.ebuild,v 1.10 2009/04/27 14:19:36 jer Exp $ + +EAPI="2" + +inherit autotools eutils versionator git + +MY_PV=$(get_version_component_range 1-2) +DESCRIPTION="Macromedia Flash decoding library" +HOMEPAGE="http://swfdec.freedesktop.org" + +EGIT_REPO_URI="git://anongit.freedesktop.org/git/swfdec/swfdec" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="alsa doc ffmpeg gstreamer +gtk pulseaudio" + +RDEPEND=">=dev-libs/glib-2.16 + >=dev-libs/liboil-0.3.1 + >=x11-libs/pango-1.16.4 + gtk? ( + >=x11-libs/gtk+-2.8.0 + net-libs/libsoup:2.4 ) + >=x11-libs/cairo-1.6 + gstreamer? ( + >=media-libs/gstreamer-0.10.11 + >=media-libs/gst-plugins-base-0.10.15 + ffmpeg? ( media-plugins/gst-plugins-ffmpeg ) ) + alsa? ( >=media-libs/alsa-lib-1.0.12 ) + pulseaudio? ( media-sound/pulseaudio )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + dev-util/gtk-doc-am + doc? ( >=dev-util/gtk-doc-1.6 )" + +RESTRICT="test" + +pkg_setup() { + if use !gtk ; then + ewarn "swfdec will be built without swfdec-gtk convenience" + ewarn "library, which is needed by swfdec-mozilla and" + ewarn "swfdec-gnome. Please add 'gtk' to your USE flags" + ewarn "unless you really know what you are doing." + fi + + if use !gstreamer && use ffmpeg; then + ewarn + ewarn "The 'ffmpeg' USE flag enables video support via gst-plugins-ffmpeg" + ewarn "as such it requires the 'gstreamer' USE flag to be enabled." + fi + + if use alsa && use pulseaudio; then + ewarn + ewarn "Pulseaudio and ALSA selected. Selecting mature ALSA backend." + fi +} + +src_prepare() { + # remove silly CFLAGS + sed 's/-Werror//g' -i configure.ac || die "sed 1 failed" + + # bug #216284 image tests are not ready yet + sed "s:\(SUBDIRS.*\)image:\1:" -i test/Makefile.am \ + || die "sed 2 failed" + + eautoreconf || die "autoreconf failed" +} + +src_configure() { + # Backend logic is from configure.ac: + # alsa > pulseaudio + local audio="none" + use pulseaudio && audio="pulse" + use alsa && audio="alsa" + + # bug #216009 + # avoid writing to /root/.gstreamer-0.10/registry.xml + export GST_REGISTRY="${T}"/registry.xml + # also avoid loading gconf plugins, which may write to /root/.gconfd + export GST_PLUGIN_SYSTEM_PATH="${T}" + + econf \ + --disable-static \ + $(use_enable doc gtk-doc) \ + $(use_enable gstreamer) \ + $(use_enable gtk) \ + --with-audio=${audio} +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + dodoc AUTHORS ChangeLog README || die "dodoc failed" +} |