package: add libebml package
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 28 Nov 2012 00:05:52 +0000 (16:05 -0800)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 28 Nov 2012 00:06:05 +0000 (16:06 -0800)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/libebml/Config.in [new file with mode: 0644]
package/libebml/libebml.mk [new file with mode: 0644]

index d566a39bf1fd47d5d544239355bc90212317f1fe..fa04fd731efcd9ebb46ded47895579c376f0c531 100644 (file)
@@ -435,6 +435,7 @@ endmenu
 menu "Multimedia"
 source "package/libdvdread/Config.in"
 source "package/libdvdnav/Config.in"
+source "package/libebml/Config.in"
 source "package/libmms/Config.in"
 source "package/libmpeg2/Config.in"
 source "package/libogg/Config.in"
diff --git a/package/libebml/Config.in b/package/libebml/Config.in
new file mode 100644 (file)
index 0000000..ce855b2
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBEBML
+       bool "libebml"
+       depends on BR2_INSTALL_LIBSTDCPP
+       help
+         Access library for the EBML (Extensible Binary Meta
+         Language, a binary derivative of XML) format.
+
+         http://matroska.org
+
+comment "libebml requires a toolchain with C++ support"
+       depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/libebml/libebml.mk b/package/libebml/libebml.mk
new file mode 100644 (file)
index 0000000..0a04635
--- /dev/null
@@ -0,0 +1,26 @@
+#############################################################
+#
+# libebml
+#
+#############################################################
+
+LIBEBML_VERSION = 1.2.2
+LIBEBML_SOURCE = libebml-$(LIBEBML_VERSION).tar.bz2
+LIBEBML_SITE = http://dl.matroska.org/downloads/libebml/
+LIBEBML_INSTALL_STAGING = YES
+LIBEBML_LICENSE = LGPLv2.1+
+LIBEBML_LICENSE_FILES = LICENSE.LGPL
+
+define LIBEBML_BUILD_CMDS
+       $(MAKE) -C $(@D)/make/linux CROSS="$(CCACHE) $(TARGET_CROSS)"
+endef
+
+define LIBEBML_INSTALL_STAGING_CMDS
+       $(MAKE) -C $(@D)/make/linux prefix=$(STAGING_DIR)/usr install
+endef
+
+define LIBEBML_INSTALL_TARGET_CMDS
+       $(MAKE) -C $(@D)/make/linux prefix=$(TARGET_DIR)/usr install
+endef
+
+$(eval $(generic-package))