diff options
| -rw-r--r-- | recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch | 23 | ||||
| -rw-r--r-- | recipes-multimedia/omxplayer/omxplayer_git.bb | 31 |
2 files changed, 40 insertions, 14 deletions
diff --git a/recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch b/recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch new file mode 100644 index 0000000..4e43c7d --- /dev/null +++ b/recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Busybox has a restriction in temp file name. From documentation: | ||
| 2 | Create a temporary file with name based on TEMPLATE and print its name. | ||
| 3 | TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX). | ||
| 4 | |||
| 5 | Use 6 x 'X' to be busybox compatible too. | ||
| 6 | |||
| 7 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
| 8 | |||
| 9 | Index: git/omxplayer | ||
| 10 | =================================================================== | ||
| 11 | --- git.orig/omxplayer | ||
| 12 | +++ git/omxplayer | ||
| 13 | @@ -43,8 +43,8 @@ if [ -z $NOREFRESH ] || [ "$NOREFRESH" = | ||
| 14 | fi | ||
| 15 | fi | ||
| 16 | |||
| 17 | -OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXX` | ||
| 18 | -OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXX` | ||
| 19 | +OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXXX` | ||
| 20 | +OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXXX` | ||
| 21 | |||
| 22 | exec 5> $OMXPLAYER_DBUS_ADDR | ||
| 23 | exec 6> $OMXPLAYER_DBUS_PID | ||
diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb index c77f858..8d444fd 100644 --- a/recipes-multimedia/omxplayer/omxplayer_git.bb +++ b/recipes-multimedia/omxplayer/omxplayer_git.bb | |||
| @@ -1,20 +1,21 @@ | |||
| 1 | DESCRIPTION = "OMXPlayer is a commandline OMX player for the Raspberry Pi" | 1 | SUMMARY = "A commandline OMX player for the Raspberry Pi" |
| 2 | DESCRIPTION = "This player was developed as a testbed for the XBMC \ | ||
| 3 | Raspberry PI implementation and is quite handy to use standalone" | ||
| 2 | HOMEPAGE = "https://github.com/popcornmix/omxplayer" | 4 | HOMEPAGE = "https://github.com/popcornmix/omxplayer" |
| 3 | SECTION = "console/utils" | 5 | SECTION = "console/utils" |
| 4 | LICENSE = "GPLv2" | ||
| 5 | 6 | ||
| 7 | LICENSE = "GPLv2" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 7 | 9 | ||
| 8 | DEPENDS = "libpcre libav virtual/egl boost freetype dbus" | 10 | DEPENDS = "libpcre libav virtual/egl boost freetype dbus" |
| 11 | PR = "r2" | ||
| 9 | 12 | ||
| 10 | PR = "r1" | 13 | SRCREV = "74f4be222be05d3ea50be9f5a70846f7c0e9df6e" |
| 11 | |||
| 12 | SRCREV = "c0dd9502ed2c43c487674939195c69680f3d98b0" | ||
| 13 | |||
| 14 | SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ | 14 | SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ |
| 15 | file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ | 15 | file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ |
| 16 | file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ | 16 | file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ |
| 17 | file://0003-Remove-strip-step-in-Makefile.patch" | 17 | file://0003-Remove-strip-step-in-Makefile.patch \ |
| 18 | file://mktemp-compatible-with-busybox.patch" | ||
| 18 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
| 19 | 20 | ||
| 20 | COMPATIBLE_MACHINE = "raspberrypi" | 21 | COMPATIBLE_MACHINE = "raspberrypi" |
| @@ -46,17 +47,17 @@ export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \ | |||
| 46 | export DIST = "${D}" | 47 | export DIST = "${D}" |
| 47 | 48 | ||
| 48 | do_compile() { | 49 | do_compile() { |
| 49 | # Needed for compiler test in ffmpeg's configure | 50 | # Needed for compiler test in ffmpeg's configure |
| 50 | mkdir -p tmp | 51 | mkdir -p tmp |
| 51 | 52 | ||
| 52 | oe_runmake ffmpeg | 53 | oe_runmake ffmpeg |
| 53 | oe_runmake | 54 | oe_runmake |
| 54 | } | 55 | } |
| 55 | 56 | ||
| 56 | do_install() { | 57 | do_install() { |
| 57 | oe_runmake dist | 58 | oe_runmake dist |
| 58 | mkdir -p ${D}/usr/share/fonts/truetype/freefont/ | 59 | mkdir -p ${D}/usr/share/fonts/truetype/freefont/ |
| 59 | install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ | 60 | install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ |
| 60 | } | 61 | } |
| 61 | 62 | ||
| 62 | FILES_${PN} = "${bindir}/omxplayer* \ | 63 | FILES_${PN} = "${bindir}/omxplayer* \ |
| @@ -64,3 +65,5 @@ FILES_${PN} = "${bindir}/omxplayer* \ | |||
| 64 | /usr/share/fonts" | 65 | /usr/share/fonts" |
| 65 | 66 | ||
| 66 | FILES_${PN}-dev += "${libdir}/omxplayer/*.so" | 67 | FILES_${PN}-dev += "${libdir}/omxplayer/*.so" |
| 68 | |||
| 69 | RDEPENDS_${PN} += "bash" | ||
