blob: 70df73f835dab447029e7b2198dbe620058de0ba [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "libebml is a C++ libary to parse EBML files"
2LICENSE = "LGPLv2.1"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05003LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=7fbc338309ac38fefcd64b04bb903e34"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004
Patrick Williamsddad1a12017-02-23 20:36:32 -06005SRC_URI = "\
6 http://dl.matroska.org/downloads/libebml/libebml-${PV}.tar.bz2 \
7 file://ldflags.patch \
8 file://override-uname.patch \
9"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010SRC_URI[md5sum] = "efec729bf5a51e649e1d9d1f61c0ae7a"
11SRC_URI[sha256sum] = "83b074d6b62715aa0080406ea84d33df2e44b5d874096640233a4db49b8096de"
12
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013inherit dos2unix
Patrick Williamsddad1a12017-02-23 20:36:32 -060014
15LIBEBML_OS = "Unknown"
16LIBEBML_OS_linux = "Linux"
Patrick Williams213cb262021-08-07 19:21:33 -050017LIBEBML_OS:darwin = "Darwin"
18LIBEBML_OS:mingw32 = "Windows"
Patrick Williamsddad1a12017-02-23 20:36:32 -060019
20EXTRA_OEMAKE = "\
21 'TARGET_OS=${LIBEBML_OS}' \
22 \
23 'CXX=${CXX}' \
24 'LD=${CXX}' \
25 'AR=${AR}' \
26 'RANLIB=${RANLIB}' \
27 \
28 'DEBUGFLAGS=' \
29 'CPPFLAGS=${CPPFLAGS}' \
30 'CXXFLAGS=${CXXFLAGS}' \
31 'LDFLAGS=${LDFLAGS}' \
32 \
33 'prefix=${prefix}' \
34 'libdir=${libdir}' \
35 'includedir=${includedir}/ebml' \
36"
37
38do_compile () {
39 oe_runmake -C make/linux
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040}
41
42do_install() {
43 cd ${S}/make/linux
44
45 install -d ${D}${libdir}
46 install -m 0644 libebml.a ${D}${libdir}
47 install -m 0755 libebml.so.* ${D}${libdir}
48 cp -R --no-dereference --preserve=mode,links -v libebml.so ${D}${libdir}
49
50 install -d ${D}${includedir}/ebml
51 for i in ../../ebml/*.h; do
52 install -m 0644 $i ${D}${includedir}/ebml
53 done
54
55 install -d ${D}${includedir}/ebml/c
56 for i in ../../ebml/c/*.h; do
57 install -m 0644 $i ${D}${includedir}/ebml/c
58 done
59}