summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-plugins/swfdec-mozilla/swfdec-mozilla-0.8.0.ebuild')
-rw-r--r--www-plugins/swfdec-mozilla/swfdec-mozilla-0.8.0.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/www-plugins/swfdec-mozilla/swfdec-mozilla-0.8.0.ebuild b/www-plugins/swfdec-mozilla/swfdec-mozilla-0.8.0.ebuild
new file mode 100644
index 000000000000..cf13fa73bb84
--- /dev/null
+++ b/www-plugins/swfdec-mozilla/swfdec-mozilla-0.8.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/swfdec-mozilla/swfdec-mozilla-0.8.0.ebuild,v 1.1 2009/04/10 13:37:18 ulm Exp $
+
+inherit multilib versionator eutils
+
+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/"
+SRC_URI="http://swfdec.freedesktop.org/download/${PN}/${MY_PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/glib-2
+ >=media-libs/swfdec-0.8"
+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_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
+}