diff options
author | Christopher Larson <chris_larson@mentor.com> | 2016-06-09 11:13:32 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-06-15 12:13:15 +0200 |
commit | 03f0be623831a3a7e039643c637f7a4b84d1d467 (patch) | |
tree | 5f3e6db07819a7d639cb8f0444683b887345af0b /meta-oe/recipes-multimedia/mplayer | |
parent | 7d399caee6adc82812f631f756b7805d866bad83 (diff) | |
download | meta-openembedded-03f0be623831a3a7e039643c637f7a4b84d1d467.tar.gz |
mpv: use waf.bbclass
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-multimedia/mplayer')
-rw-r--r-- | meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb b/meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb index 5fac298fa..768c87ae2 100644 --- a/meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb +++ b/meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb | |||
@@ -12,14 +12,14 @@ LICENSE = "GPLv2+" | |||
12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=91f1cb870c1cc2d31351a4d2595441cb" | 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=91f1cb870c1cc2d31351a4d2595441cb" |
13 | 13 | ||
14 | SRC_URI = "https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz;name=mpv \ | 14 | SRC_URI = "https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz;name=mpv \ |
15 | http://www.freehackers.org/~tnagy/release/waf-1.8.12;name=waf \ | 15 | http://www.freehackers.org/~tnagy/release/waf-1.8.12;name=waf;subdir=${BPN}-${PV} \ |
16 | " | 16 | " |
17 | SRC_URI[mpv.md5sum] = "9042bd3fbff2bc8ba0b7fadaa4a22101" | 17 | SRC_URI[mpv.md5sum] = "9042bd3fbff2bc8ba0b7fadaa4a22101" |
18 | SRC_URI[mpv.sha256sum] = "7d31217ba8572f364fcea2955733f821374ae6d8c6d8f22f8bc63c44c0400bdc" | 18 | SRC_URI[mpv.sha256sum] = "7d31217ba8572f364fcea2955733f821374ae6d8c6d8f22f8bc63c44c0400bdc" |
19 | SRC_URI[waf.md5sum] = "cef4ee82206b1843db082d0b0506bf71" | 19 | SRC_URI[waf.md5sum] = "cef4ee82206b1843db082d0b0506bf71" |
20 | SRC_URI[waf.sha256sum] = "01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b" | 20 | SRC_URI[waf.sha256sum] = "01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b" |
21 | 21 | ||
22 | inherit pkgconfig pythonnative distro_features_check | 22 | inherit waf pkgconfig pythonnative distro_features_check |
23 | 23 | ||
24 | # Note: both lua and libass are required to get on-screen-display (controls) | 24 | # Note: both lua and libass are required to get on-screen-display (controls) |
25 | PACKAGECONFIG ??= "lua libass" | 25 | PACKAGECONFIG ??= "lua libass" |
@@ -28,6 +28,7 @@ PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass" | |||
28 | PACKAGECONFIG[libarchive] = "--enable-libarchive,--disable-libarchive,libarchive" | 28 | PACKAGECONFIG[libarchive] = "--enable-libarchive,--disable-libarchive,libarchive" |
29 | PACKAGECONFIG[jack] = "--enable-jack, --disable-jack, jack" | 29 | PACKAGECONFIG[jack] = "--enable-jack, --disable-jack, jack" |
30 | 30 | ||
31 | SIMPLE_TARGET_SYS = "${@'${TARGET_SYS}'.replace('${TARGET_VENDOR}', '')}" | ||
31 | EXTRA_OECONF = " \ | 32 | EXTRA_OECONF = " \ |
32 | --prefix=${prefix} \ | 33 | --prefix=${prefix} \ |
33 | --target=${SIMPLE_TARGET_SYS} \ | 34 | --target=${SIMPLE_TARGET_SYS} \ |
@@ -50,21 +51,9 @@ EXTRA_OECONF = " \ | |||
50 | --disable-vapoursynth-lazy \ | 51 | --disable-vapoursynth-lazy \ |
51 | " | 52 | " |
52 | 53 | ||
53 | do_configure() { | 54 | do_configure_prepend () { |
54 | if [ ! -L ../waf ]; then | 55 | ln -sf waf-1.8.12 ${S}/waf |
55 | chmod a+x ../waf-1.8.12 | 56 | chmod +x ${S}/waf |
56 | ln -s waf-1.8.12 ../waf | ||
57 | fi | ||
58 | export SIMPLE_TARGET_SYS="$(echo ${TARGET_SYS} | sed s:${TARGET_VENDOR}::g)" | ||
59 | ../waf configure ${EXTRA_OECONF} | ||
60 | } | ||
61 | |||
62 | do_compile () { | ||
63 | ../waf build | ||
64 | } | ||
65 | |||
66 | do_install() { | ||
67 | ../waf install --destdir=${D} | ||
68 | } | 57 | } |
69 | 58 | ||
70 | FILES_${PN} += "${datadir}/icons" | 59 | FILES_${PN} += "${datadir}/icons" |