libvpx: new package libvpx
authorSpenser Gilliland <spenser@gillilanding.com>
Sun, 26 May 2013 17:12:20 +0000 (12:12 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 30 May 2013 19:28:15 +0000 (21:28 +0200)
adds webm multimedia support and the VP8 encoder/decoder library.

http://www.webmproject.org/

[Peter: strip trailing spaces, wrap help text]
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/Config.in
package/multimedia/libvpx/Config.in [new file with mode: 0644]
package/multimedia/libvpx/libvpx.mk [new file with mode: 0644]

index 931e6d39a2f70d400ab188832f2b6d657beae38e..dd74863fdec7483d97341d38182232d619dd5ca1 100644 (file)
@@ -15,6 +15,7 @@ source "package/multimedia/gst-plugins-good/Config.in"
 source "package/multimedia/gst-plugins-bad/Config.in"
 source "package/multimedia/gst-plugins-ugly/Config.in"
 source "package/multimedia/lame/Config.in"
+source "package/multimedia/libvpx/Config.in"
 source "package/multimedia/madplay/Config.in"
 source "package/multimedia/mpd/Config.in"
 source "package/multimedia/mpg123/Config.in"
diff --git a/package/multimedia/libvpx/Config.in b/package/multimedia/libvpx/Config.in
new file mode 100644 (file)
index 0000000..1332c56
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBVPX
+       bool "libvpx"
+       help
+         A high-quality, open video format that's freely available to
+         everyone.
+
+         http://webmproject.org
diff --git a/package/multimedia/libvpx/libvpx.mk b/package/multimedia/libvpx/libvpx.mk
new file mode 100644 (file)
index 0000000..131fd49
--- /dev/null
@@ -0,0 +1,53 @@
+#############################################################
+#
+# libvpx
+#
+#############################################################
+
+LIBVPX_VERSION = v1.2.0
+LIBVPX_SITE = http://git.chromium.org/webm/libvpx.git
+LIBVPX_SITE_METHOD = git
+
+LIBVPX_LICENSE = BSD-3c
+LIBVPX_LICENSE_FILES = LICENSE PATENTS
+
+LIBVPX_INSTALL_STAGING = YES
+
+# ld is being used with cc options. therefore, pretend ld is cc.
+LIBVPX_CONF_ENV = \
+       LD="$(TARGET_CC)" \
+       CROSS=$(GNU_TARGET_NAME)
+
+LIBVPX_CONF_OPT = \
+       --disable-examples \
+       --disable-docs \
+       --disable-unit-tests
+
+# This is not a true autotools package.  It is based on the ffmpeg build system
+define LIBVPX_CONFIGURE_CMDS
+       (cd $(LIBVPX_SRCDIR) && rm -rf config.cache && \
+       $(TARGET_CONFIGURE_OPTS) \
+       $(TARGET_CONFIGURE_ARGS) \
+       $(LIBVPX_CONF_ENV) \
+       ./configure \
+               --target=generic-gnu \
+               --enable-pic \
+               --prefix=/usr \
+               $(SHARED_STATIC_LIBS_OPTS) \
+               $(LIBVPX_CONF_OPT) \
+       )
+endef
+
+define LIBVPX_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) -C $(@D) all
+endef
+
+define LIBVPX_INSTALL_STAGING_CMDS
+       $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install
+endef
+
+define LIBVPX_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
+endef
+
+$(eval $(generic-package))