summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-11-28 00:42:43 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-11-28 00:43:42 (GMT)
commitd69172d7d807769f5091a612f7145bd464c7bc82 (patch)
tree11209110c8efdf599100fe00556d903613a40510
parentd19be01683b6f79427beb4edfa8ae5a711fc81ef (diff)
downloadbuildroot-d69172d7d807769f5091a612f7145bd464c7bc82.tar.gz
buildroot-d69172d7d807769f5091a612f7145bd464c7bc82.tar.bz2
package: add libmatroska package
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/libmatroska/Config.in12
-rw-r--r--package/libmatroska/libmatroska.mk27
3 files changed, 40 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index fa04fd7..f3ca496 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -436,6 +436,7 @@ menu "Multimedia"
source "package/libdvdread/Config.in"
source "package/libdvdnav/Config.in"
source "package/libebml/Config.in"
+source "package/libmatroska/Config.in"
source "package/libmms/Config.in"
source "package/libmpeg2/Config.in"
source "package/libogg/Config.in"
diff --git a/package/libmatroska/Config.in b/package/libmatroska/Config.in
new file mode 100644
index 0000000..b1c53ee
--- /dev/null
+++ b/package/libmatroska/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LIBMATROSKA
+ bool "libmatroska"
+ select BR2_PACKAGE_LIBEBML
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ Extensible open standard audio/video container format access
+ library.
+
+ http://matroska.org
+
+comment "libmatroska requires a toolchain with C++ support"
+ depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/libmatroska/libmatroska.mk b/package/libmatroska/libmatroska.mk
new file mode 100644
index 0000000..605a2fb
--- /dev/null
+++ b/package/libmatroska/libmatroska.mk
@@ -0,0 +1,27 @@
+#############################################################
+#
+# libmatroska
+#
+#############################################################
+
+LIBMATROSKA_VERSION = 1.3.0
+LIBMATROSKA_SOURCE = libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
+LIBMATROSKA_SITE = http://dl.matroska.org/downloads/libmatroska/
+LIBMATROSKA_INSTALL_STAGING = YES
+LIBMATROSKA_LICENSE = LGPLv2.1+
+LIBMATROSKA_LICENSE_FILES = LICENSE.LGPL
+LIBMATROSKA_DEPENDENCIES = libebml
+
+define LIBMATROSKA_BUILD_CMDS
+ $(MAKE) -C $(@D)/make/linux CROSS="$(CCACHE) $(TARGET_CROSS)"
+endef
+
+define LIBMATROSKA_INSTALL_STAGING_CMDS
+ $(MAKE) -C $(@D)/make/linux prefix=$(STAGING_DIR)/usr install
+endef
+
+define LIBMATROSKA_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D)/make/linux prefix=$(TARGET_DIR)/usr install
+endef
+
+$(eval $(generic-package))