diff options
author | 2008-08-31 12:47:25 +0300 | |
---|---|---|
committer | 2008-08-31 12:47:25 +0300 | |
commit | 80488ef78bf4b5656a6d025752d82a73ca191849 (patch) | |
tree | 66d7668956a113258e2c1bd16a42990288c563d8 | |
parent | Use lua eclass. (diff) | |
download | hawking-80488ef78bf4b5656a6d025752d82a73ca191849.tar.gz hawking-80488ef78bf4b5656a6d025752d82a73ca191849.tar.bz2 hawking-80488ef78bf4b5656a6d025752d82a73ca191849.zip |
Add swfdec-9999 and swfdec-mozilla-9999.
-rw-r--r-- | media-libs/swfdec/Manifest | 1 | ||||
-rw-r--r-- | media-libs/swfdec/swfdec-9999.ebuild | 100 | ||||
-rw-r--r-- | net-www/swfdec-mozilla/Manifest | 1 | ||||
-rw-r--r-- | net-www/swfdec-mozilla/swfdec-mozilla-9999.ebuild | 49 | ||||
-rw-r--r-- | profiles/categories | 2 |
5 files changed, 153 insertions, 0 deletions
diff --git a/media-libs/swfdec/Manifest b/media-libs/swfdec/Manifest new file mode 100644 index 0000000..db94828 --- /dev/null +++ b/media-libs/swfdec/Manifest @@ -0,0 +1 @@ +EBUILD swfdec-9999.ebuild 2448 RMD160 f88371add3d74320fab369686ed02acb14c1c4ba SHA1 b5aa527ac807f86476aa323c8851d8ec40e11a62 SHA256 d8d0a98bc27d518952776f7aca9661a30925e8c04adde12f070c71c6ee731cec diff --git a/media-libs/swfdec/swfdec-9999.ebuild b/media-libs/swfdec/swfdec-9999.ebuild new file mode 100644 index 0000000..d2774e7 --- /dev/null +++ b/media-libs/swfdec/swfdec-9999.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/swfdec/swfdec-0.7.4.ebuild,v 1.2 2008/08/17 20:27:46 ford_prefect Exp $ + +EAPI=1 + +inherit autotools eutils git versionator + +DESCRIPTION="Macromedia Flash decoding library" +HOMEPAGE="http://swfdec.freedesktop.org" +EGIT_REPO_URI="git://anongit.freedesktop.org/git/${PN}/${PN}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="" + +IUSE="alsa doc ffmpeg gstreamer gtk oss pulseaudio" + +RDEPEND=">=dev-libs/glib-2.12 + >=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 + doc? ( >=dev-util/gtk-doc-1.6 )" + +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_unpack() { + git_src_unpack + + eautoreconf +} + +src_compile() { + # Backend logic is from configure.ac: + # alsa > pulseaudio > oss + local audio="none" + use oss && audio="oss" + 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 \ + $(use_enable doc gtk-doc) \ + $(use_enable gstreamer) \ + $(use_enable gtk) \ + --disable-ffmpeg \ + --disable-mad \ + --with-audio=${audio} || die "configure failed" + + # bug #216284 image tests are not ready yet + cat >test/image/Makefile <<EOF +all: +check: +install: +EOF + + emake || die "emake failed" +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + dodoc AUTHORS ChangeLog README +} diff --git a/net-www/swfdec-mozilla/Manifest b/net-www/swfdec-mozilla/Manifest new file mode 100644 index 0000000..c70f0a8 --- /dev/null +++ b/net-www/swfdec-mozilla/Manifest @@ -0,0 +1 @@ +EBUILD swfdec-mozilla-9999.ebuild 1337 RMD160 6493065f974902660bf3d7a7e749634dd1c7dc2f SHA1 033caaaee99f60837f8d899356c6ca26ecdfe616 SHA256 2631adea22a5846c7757c858b7cac9a3785fd70f30ec584ef6c77db2b11dba0d diff --git a/net-www/swfdec-mozilla/swfdec-mozilla-9999.ebuild b/net-www/swfdec-mozilla/swfdec-mozilla-9999.ebuild new file mode 100644 index 0000000..50f3069 --- /dev/null +++ b/net-www/swfdec-mozilla/swfdec-mozilla-9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/swfdec-mozilla/swfdec-mozilla-0.7.4.ebuild,v 1.1 2008/08/03 14:08:31 dang Exp $ + +inherit multilib versionator autotools eutils git + +MY_PV=$(get_version_component_range 1-2) + +DESCRIPTION="Swfdec-mozilla is a decoder/renderer netscape style plugin for Macromedia Flash animations." +HOMEPAGE="http://swfdec.freedesktop.org/" +EGIT_REPO_URI="git://anongit.freedesktop.org/git/swfdec/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND=">=dev-libs/glib-2 + >=media-libs/swfdec-0.6" +DEPEND="${RDEPEND} + >=dev-util/intltool-0.35 + >=dev-util/pkgconfig-0.20" + +pkg_setup() { + if ! built_with_use media-libs/swfdec gtk ; then + einfo "You must build swfdec with the gtk USE flag to build" + einfo "swfdec-gtk, which is required by ${PN}" + die "Please re-emerge media-libs/swfdec with the gtk USE flag" + fi +} + +src_unpack() { + git_src_unpack + + autoreconf -i -f +} + +src_compile() { + econf --with-plugin-dir=/usr/$(get_libdir)/nsbrowser/plugins + emake || die "emake failed" +} + +src_install() { + exeinto /usr/$(get_libdir)/nsbrowser/plugins + doexe src/.libs/libswfdecmozilla.so || die "libswfdecmozilla.so failed" + + insinto /usr/$(get_libdir)/nsbrowser/plugins + doins src/libswfdecmozilla.la +} diff --git a/profiles/categories b/profiles/categories index 9523c86..656674d 100644 --- a/profiles/categories +++ b/profiles/categories @@ -1,2 +1,4 @@ dev-lua games-board +media-libs +net-www |