Add Swfdec Free flash library
authorEmmanuel Riou <riou.emmanuel@googlemail.com>
Mon, 28 Sep 2009 11:03:43 +0000 (12:03 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 29 Sep 2009 09:34:26 +0000 (11:34 +0200)
Peter: fixed kconfig (missing/wrong dependencies, text, trailing spaces)
and makefile typo (ohost-pkgconfig).

Signed-off-by: Emmanuel Riou <riou.emmanuel@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/Config.in
package/multimedia/swfdec/Config.in [new file with mode: 0644]
package/multimedia/swfdec/swfdec.mk [new file with mode: 0644]

index c7160a663c51e4a1194d66c19513bdfd57333780..49932d0f2735c95711f8601e5bfd3e763c2c4f6e 100644 (file)
@@ -21,6 +21,7 @@ source "package/multimedia/madplay/Config.in"
 source "package/multimedia/mpg123/Config.in"
 source "package/multimedia/mplayer/Config.in"
 source "package/multimedia/speex/Config.in"
+source "package/multimedia/swfdec/Config.in"
 source "package/multimedia/festival/Config.in"
 source "package/multimedia/taglib/Config.in"
 source "package/multimedia/vlc/Config.in"
diff --git a/package/multimedia/swfdec/Config.in b/package/multimedia/swfdec/Config.in
new file mode 100644 (file)
index 0000000..7a51e2e
--- /dev/null
@@ -0,0 +1,29 @@
+config BR2_PACKAGE_SWFDEC
+       bool "swfdec"
+       select BR2_PACKAGE_LIBOIL
+       select BR2_PACKAGE_ALSA_LIB
+       select BR2_PACKAGE_PANGO
+       select BR2_PACKAGE_CAIRO
+       select BR2_PACKAGE_CAIRO_PNG
+       help
+         Library to play Flash files
+
+         http://swfdec.freedesktop.org/
+
+config BR2_PACKAGE_SWFDEC_GTK_SUPPORT
+       bool "gtk support"
+       depends on BR2_PACKAGE_SWFDEC
+       depends on BR2_PACKAGE_LIBGTK2
+       select BR2_PACKAGE_LIBSOUP
+       help
+         Swfdec-gtk library is used for easy integration
+         of swfdec in GTK applications
+
+config BR2_PACKAGE_SWFDEC_GSTREAMER
+       bool "gstreamer support"
+       depends on BR2_PACKAGE_SWFDEC
+       select BR2_PACKAGE_GSTREAMER
+       select BR2_PACKAGE_GST_PLUGINS_BASE
+       help
+         Enables GStreamer support
+
diff --git a/package/multimedia/swfdec/swfdec.mk b/package/multimedia/swfdec/swfdec.mk
new file mode 100644 (file)
index 0000000..015d32e
--- /dev/null
@@ -0,0 +1,30 @@
+#############################################################
+#
+# Swfdec
+#
+#############################################################
+SWFDEC_VERSION_MAJOR = 0.8
+SWFDEC_VERSION_MINOR = 4
+SWFDEC_VERSION = $(SWFDEC_VERSION_MAJOR).$(SWFDEC_VERSION_MINOR)
+SWFDEC_SOURCE = swfdec-$(SWFDEC_VERSION).tar.gz
+SWFDEC_SITE = http://swfdec.freedesktop.org/download/swfdec/$(SWFDEC_VERSION_MAJOR)
+
+SWFDEC_LIBTOOL_PATCH = NO
+SWFDEC_INSTALL_STAGING = YES
+SWFDEC_INSTALL_TARGET = YES
+
+SWFDEC_DEPENDENCIES = liboil alsa-lib pango cairo host-pkgconfig
+
+ifeq ($(BR2_PACKAGE_SWFDEC_GSTREAMER),y)
+SWFDEC_DEPENDENCIES += gstreamer gst-plugins-base
+else
+SWFDEC_CONF_OPT += --disable-gstreamer
+endif
+
+ifeq ($(BR2_PACKAGE_SWFDEC_GTK_SUPPORT),y)
+SWFDEC_DEPENDENCIES += libgtk2 libsoup
+else
+SWFDEC_CONF_OPT += --disable-gtk
+endif
+
+$(eval $(call AUTOTARGETS,package/multimedia,swfdec))