aboutsummaryrefslogtreecommitdiff
path: root/package/multimedia/libvpx/libvpx.mk
diff options
context:
space:
mode:
authorGravatar Spenser Gilliland <spenser@gillilanding.com>2013-05-26 12:12:20 -0500
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2013-05-30 21:28:15 +0200
commit1460245354019df29ffc4c3d76ddd61cb14dfd04 (patch)
tree6b756069ef01aed6556896df390d3861d8974334 /package/multimedia/libvpx/libvpx.mk
parent03bc3c3bdcffbef498b9072e9cd1c079fd0dd26a (diff)
downloadbuildroot-1460245354019df29ffc4c3d76ddd61cb14dfd04.tar.gz
buildroot-1460245354019df29ffc4c3d76ddd61cb14dfd04.tar.bz2
libvpx: new package libvpx
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>
Diffstat (limited to 'package/multimedia/libvpx/libvpx.mk')
-rw-r--r--package/multimedia/libvpx/libvpx.mk53
1 files changed, 53 insertions, 0 deletions
diff --git a/package/multimedia/libvpx/libvpx.mk b/package/multimedia/libvpx/libvpx.mk
new file mode 100644
index 0000000000..131fd49fad
--- /dev/null
+++ b/package/multimedia/libvpx/libvpx.mk
@@ -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))