Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "libebml is a C++ libary to parse EBML files" |
| 2 | LICENSE = "LGPLv2.1" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 3 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=7fbc338309ac38fefcd64b04bb903e34" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 4 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 5 | SRC_URI = "\ |
| 6 | http://dl.matroska.org/downloads/libebml/libebml-${PV}.tar.bz2 \ |
| 7 | file://ldflags.patch \ |
| 8 | file://override-uname.patch \ |
| 9 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | SRC_URI[md5sum] = "efec729bf5a51e649e1d9d1f61c0ae7a" |
| 11 | SRC_URI[sha256sum] = "83b074d6b62715aa0080406ea84d33df2e44b5d874096640233a4db49b8096de" |
| 12 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | inherit dos2unix |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 14 | |
| 15 | LIBEBML_OS = "Unknown" |
| 16 | LIBEBML_OS_linux = "Linux" |
| 17 | LIBEBML_OS_darwin = "Darwin" |
| 18 | LIBEBML_OS_mingw32 = "Windows" |
| 19 | |
| 20 | EXTRA_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 | |
| 38 | do_compile () { |
| 39 | oe_runmake -C make/linux |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | do_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 | } |