diff options
author | Ming Liu <peter.x.liu@external.atlascopco.com> | 2017-07-28 16:03:19 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-08-13 13:19:41 +0200 |
commit | 26dafa0f354207e110935d0d3218e5d7edf14ed8 (patch) | |
tree | 3faf40a57d042a7b94e868397a964c04e20f2e5e | |
parent | e406d4f5ae8c3ad735611c2f1a4a8df1c9e1db6d (diff) | |
download | meta-openembedded-26dafa0f354207e110935d0d3218e5d7edf14ed8.tar.gz |
libebml: inherit dos2unix
Drop do_unpack postfuncs dos2unix, inherit dos2unix.bbclass instead, to
make the code cleaner.
Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-multimedia/recipes-mkv/libebml/libebml_1.3.0.bb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/meta-multimedia/recipes-mkv/libebml/libebml_1.3.0.bb b/meta-multimedia/recipes-mkv/libebml/libebml_1.3.0.bb index bbbe56388..16e17e9ab 100644 --- a/meta-multimedia/recipes-mkv/libebml/libebml_1.3.0.bb +++ b/meta-multimedia/recipes-mkv/libebml/libebml_1.3.0.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | SUMMARY = "libebml is a C++ libary to parse EBML files" | 1 | SUMMARY = "libebml is a C++ libary to parse EBML files" |
2 | LICENSE = "LGPLv2.1" | 2 | LICENSE = "LGPLv2.1" |
3 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=f14599a2f089f6ff8c97e2baa4e3d575" | 3 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=7fbc338309ac38fefcd64b04bb903e34" |
4 | 4 | ||
5 | SRC_URI = "\ | 5 | SRC_URI = "\ |
6 | http://dl.matroska.org/downloads/libebml/libebml-${PV}.tar.bz2 \ | 6 | http://dl.matroska.org/downloads/libebml/libebml-${PV}.tar.bz2 \ |
@@ -10,15 +10,7 @@ SRC_URI = "\ | |||
10 | SRC_URI[md5sum] = "efec729bf5a51e649e1d9d1f61c0ae7a" | 10 | SRC_URI[md5sum] = "efec729bf5a51e649e1d9d1f61c0ae7a" |
11 | SRC_URI[sha256sum] = "83b074d6b62715aa0080406ea84d33df2e44b5d874096640233a4db49b8096de" | 11 | SRC_URI[sha256sum] = "83b074d6b62715aa0080406ea84d33df2e44b5d874096640233a4db49b8096de" |
12 | 12 | ||
13 | do_unpack[postfuncs] += "dos2unix" | 13 | inherit dos2unix |
14 | |||
15 | dos2unix () { | ||
16 | cr="$(printf '\r')" | ||
17 | for f in ${S}/make/*/Makefile; do | ||
18 | tr -d "$cr" <"$f" >"$f.new" && \ | ||
19 | mv "$f.new" "$f" | ||
20 | done | ||
21 | } | ||
22 | 14 | ||
23 | LIBEBML_OS = "Unknown" | 15 | LIBEBML_OS = "Unknown" |
24 | LIBEBML_OS_linux = "Linux" | 16 | LIBEBML_OS_linux = "Linux" |