Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "libmatroska is a C++ libary to parse Matroska files (.mkv and .mka)" |
| 2 | LICENSE = "LGPLv2.1" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4fbd65380cdd255951079008b364516c" |
| 4 | |
| 5 | DEPENDS = "libebml" |
| 6 | |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 7 | SRC_URI = "http://dl.matroska.org/downloads/${BPN}/${BPN}-${PV}.tar.bz2 \ |
| 8 | file://0001-Makefile-Use-LINKFLAGS-during-link-step.patch \ |
| 9 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | SRC_URI[md5sum] = "f61b2e5086f4bb9d24a43cc8af43a719" |
| 11 | SRC_URI[sha256sum] = "086f21873e925679babdabf793c3bb85c353d0cd79423543a3355e08e8a4efb7" |
| 12 | |
| 13 | EXTRA_OEMAKE = "-e MAKEFLAGS=" |
| 14 | |
| 15 | do_compile() { |
| 16 | cd ${S}/make/linux |
| 17 | oe_runmake CROSS="${TARGET_PREFIX}" |
| 18 | } |
| 19 | |
| 20 | do_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 | } |