summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/omxplayer/omxplayer_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/omxplayer/omxplayer_git.bb')
-rw-r--r--recipes-multimedia/omxplayer/omxplayer_git.bb11
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"
8LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 8LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
9 9
10DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl libssh libomxil coreutils-native curl-native" 10DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl libssh libomxil coreutils-native curl-native"
11DEPENDS += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", " userland-nogl", "", d)}"
12
11PR = "r4" 13PR = "r4"
12 14
13SRCREV_default = "7f3faf6cadac913013248de759462bcff92f0102" 15SRCREV_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 "
39S = "${WORKDIR}/git" 42S = "${WORKDIR}/git"
40 43
41COMPATIBLE_HOST ?= "null" 44COMPATIBLE_MACHINE = "^rpi$"
42COMPATIBLE_HOST_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', 'null', '(.*)', d)}"
43 45
44def cpu(d): 46def 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}"
66export FFMPEG_EXTRA_LDFLAGS = "${TUNE_CCARGS} ${TOOLCHAIN_OPTIONS}" 68export FFMPEG_EXTRA_LDFLAGS = "${TUNE_CCARGS} ${TOOLCHAIN_OPTIONS}"
67 69
68# Needed in top Makefile 70# Needed in top Makefile
71
69export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \ 72export 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 "
73export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \ 76export 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* \
102FILES_${PN}-dev += "${libdir}/omxplayer/*.so" 106FILES_${PN}-dev += "${libdir}/omxplayer/*.so"
103 107
104RDEPENDS_${PN} += "bash procps" 108RDEPENDS_${PN} += "bash procps"
109RDEPENDS_${PN} += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", " userland-nogl", "", d)}"