blob: 890be69269b2879328ae1a3eedd4f8dd6acbf40a [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "libmatroska is a C++ libary to parse Matroska files (.mkv and .mka)"
Andrew Geissler9aee5002022-03-30 16:27:02 +00002LICENSE = "LGPL-2.1-only"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05003LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4fbd65380cdd255951079008b364516c"
4
5DEPENDS = "libebml"
6
Brad Bishop7f28bc52017-12-03 23:42:40 -05007SRC_URI = "http://dl.matroska.org/downloads/${BPN}/${BPN}-${PV}.tar.bz2 \
8 file://0001-Makefile-Use-LINKFLAGS-during-link-step.patch \
9 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010SRC_URI[md5sum] = "f61b2e5086f4bb9d24a43cc8af43a719"
11SRC_URI[sha256sum] = "086f21873e925679babdabf793c3bb85c353d0cd79423543a3355e08e8a4efb7"
12
13EXTRA_OEMAKE = "-e MAKEFLAGS="
14
15do_compile() {
16 cd ${S}/make/linux
17 oe_runmake CROSS="${TARGET_PREFIX}"
18}
19
20do_install() {
21 cd ${S}/make/linux
22
23 install -d ${D}${libdir}
24 install -m 0644 libmatroska.a ${D}${libdir}
25 install -m 0755 libmatroska.so.* ${D}${libdir}
26 cp -R --no-dereference --preserve=mode,links -v libmatroska.so ${D}${libdir}
27
28 install -d ${D}${includedir}/matroska
29 for i in ../../matroska/*.h; do
30 install -m 0644 $i ${D}${includedir}/matroska
31 done
32
33 install -d ${D}${includedir}/matroska/c
34 for i in ../../matroska/c/*.h; do
35 install -m 0644 $i ${D}${includedir}/matroska/c
36 done
37}