Permalink
Browse files

package: add libmatroska package

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  • Loading branch information...
1 parent d19be01 commit d69172d7d807769f5091a612f7145bd464c7bc82 @jacmet jacmet committed Nov 28, 2012
Showing with 40 additions and 0 deletions.
  1. +1 −0 package/Config.in
  2. +12 −0 package/libmatroska/Config.in
  3. +27 −0 package/libmatroska/libmatroska.mk
View
@@ -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"
@@ -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
@@ -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))

0 comments on commit d69172d

Please sign in to comment.