diff options
Diffstat (limited to 'recipes-multimedia/omxplayer/omxplayer_git.bb')
| -rw-r--r-- | recipes-multimedia/omxplayer/omxplayer_git.bb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb index 983abf7..4ec0b24 100644 --- a/recipes-multimedia/omxplayer/omxplayer_git.bb +++ b/recipes-multimedia/omxplayer/omxplayer_git.bb | |||
| @@ -8,6 +8,8 @@ LICENSE = "GPLv2" | |||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 9 | 9 | ||
| 10 | DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl libssh libomxil coreutils-native curl-native" | 10 | DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl libssh libomxil coreutils-native curl-native" |
| 11 | DEPENDS += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", " userland-nogl", "", d)}" | ||
| 12 | |||
| 11 | PR = "r4" | 13 | PR = "r4" |
| 12 | 14 | ||
| 13 | SRCREV_default = "7f3faf6cadac913013248de759462bcff92f0102" | 15 | SRCREV_default = "7f3faf6cadac913013248de759462bcff92f0102" |
| @@ -35,11 +37,11 @@ SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master | |||
| 35 | file://0001-swresample-arm-avoid-conditional-branch-to-PLT-in-TH.patch;patchdir=ffmpeg \ | 37 | file://0001-swresample-arm-avoid-conditional-branch-to-PLT-in-TH.patch;patchdir=ffmpeg \ |
| 36 | file://0001-rtmpdh-Stop-using-OpenSSL-provided-DH-functions-to-s.patch;patchdir=ffmpeg \ | 38 | file://0001-rtmpdh-Stop-using-OpenSSL-provided-DH-functions-to-s.patch;patchdir=ffmpeg \ |
| 37 | file://cross-crompile-ffmpeg.patch \ | 39 | file://cross-crompile-ffmpeg.patch \ |
| 40 | file://0001-Fix-build-with-vc4-driver.patch \ | ||
| 38 | " | 41 | " |
| 39 | S = "${WORKDIR}/git" | 42 | S = "${WORKDIR}/git" |
| 40 | 43 | ||
| 41 | COMPATIBLE_HOST ?= "null" | 44 | COMPATIBLE_MACHINE = "^rpi$" |
| 42 | COMPATIBLE_HOST_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', 'null', '(.*)', d)}" | ||
| 43 | 45 | ||
| 44 | def cpu(d): | 46 | def cpu(d): |
| 45 | for arg in (d.getVar('TUNE_CCARGS') or '').split(): | 47 | for arg in (d.getVar('TUNE_CCARGS') or '').split(): |
| @@ -66,11 +68,13 @@ export FFMPEG_EXTRA_CFLAGS = "${TUNE_CCARGS} ${TOOLCHAIN_OPTIONS}" | |||
| 66 | export FFMPEG_EXTRA_LDFLAGS = "${TUNE_CCARGS} ${TOOLCHAIN_OPTIONS}" | 68 | export FFMPEG_EXTRA_LDFLAGS = "${TUNE_CCARGS} ${TOOLCHAIN_OPTIONS}" |
| 67 | 69 | ||
| 68 | # Needed in top Makefile | 70 | # Needed in top Makefile |
| 71 | |||
| 69 | export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \ | 72 | export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \ |
| 70 | -L${STAGING_DIR_HOST}/lib \ | 73 | -L${STAGING_DIR_HOST}/lib \ |
| 71 | -L${STAGING_DIR_HOST}/usr/lib \ | 74 | -L${STAGING_DIR_HOST}/usr/lib \ |
| 72 | " | 75 | " |
| 73 | export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \ | 76 | export INCLUDES = "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", " -D__GBM__", "", d)} \ |
| 77 | -isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \ | ||
| 74 | -isystem${STAGING_DIR_HOST}/usr/include/freetype2 \ | 78 | -isystem${STAGING_DIR_HOST}/usr/include/freetype2 \ |
| 75 | -isystem${STAGING_DIR_HOST}/usr/include/interface/vmcs_host/linux \ | 79 | -isystem${STAGING_DIR_HOST}/usr/include/interface/vmcs_host/linux \ |
| 76 | -isystem${STAGING_DIR_HOST}/usr/include/dbus-1.0 \ | 80 | -isystem${STAGING_DIR_HOST}/usr/include/dbus-1.0 \ |
| @@ -102,3 +106,4 @@ FILES_${PN} = "${bindir}/omxplayer* \ | |||
| 102 | FILES_${PN}-dev += "${libdir}/omxplayer/*.so" | 106 | FILES_${PN}-dev += "${libdir}/omxplayer/*.so" |
| 103 | 107 | ||
| 104 | RDEPENDS_${PN} += "bash procps" | 108 | RDEPENDS_${PN} += "bash procps" |
| 109 | RDEPENDS_${PN} += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", " userland-nogl", "", d)}" | ||
