omxplayer: Update to HEAD and tweak SUMMARY and DESCRIPTION

* Update to current git HEAD commit which includes fix for boost 1.55.
* Replace tabs by spaces
* Tweak SUMMARY and DESCRIPTION
* Add bash to PN RDEPENDS as omxplayer is actually a bash script.
* omxplayer is a bash script - add RDEPENDS and fix mktemp inside

Change-Id: I5c8a4cf1005ba49f9b01821e3f832d1da49869bc
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
This commit is contained in:
Andrei Gherzan 2014-01-04 01:27:50 +02:00
parent 3994102d7b
commit cbb6008288
2 changed files with 40 additions and 14 deletions

View File

@ -0,0 +1,23 @@
Busybox has a restriction in temp file name. From documentation:
Create a temporary file with name based on TEMPLATE and print its name.
TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).
Use 6 x 'X' to be busybox compatible too.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Index: git/omxplayer
===================================================================
--- git.orig/omxplayer
+++ git/omxplayer
@@ -43,8 +43,8 @@ if [ -z $NOREFRESH ] || [ "$NOREFRESH" =
fi
fi
-OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXX`
-OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXX`
+OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXXX`
+OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXXX`
exec 5> $OMXPLAYER_DBUS_ADDR
exec 6> $OMXPLAYER_DBUS_PID

View File

@ -1,20 +1,21 @@
DESCRIPTION = "OMXPlayer is a commandline OMX player for the Raspberry Pi" SUMMARY = "A commandline OMX player for the Raspberry Pi"
DESCRIPTION = "This player was developed as a testbed for the XBMC \
Raspberry PI implementation and is quite handy to use standalone"
HOMEPAGE = "https://github.com/popcornmix/omxplayer" HOMEPAGE = "https://github.com/popcornmix/omxplayer"
SECTION = "console/utils" SECTION = "console/utils"
LICENSE = "GPLv2"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libpcre libav virtual/egl boost freetype dbus" DEPENDS = "libpcre libav virtual/egl boost freetype dbus"
PR = "r2"
PR = "r1" SRCREV = "74f4be222be05d3ea50be9f5a70846f7c0e9df6e"
SRCREV = "c0dd9502ed2c43c487674939195c69680f3d98b0"
SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \
file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \
file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \
file://0003-Remove-strip-step-in-Makefile.patch" file://0003-Remove-strip-step-in-Makefile.patch \
file://mktemp-compatible-with-busybox.patch"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
COMPATIBLE_MACHINE = "raspberrypi" COMPATIBLE_MACHINE = "raspberrypi"
@ -46,17 +47,17 @@ export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \
export DIST = "${D}" export DIST = "${D}"
do_compile() { do_compile() {
# Needed for compiler test in ffmpeg's configure # Needed for compiler test in ffmpeg's configure
mkdir -p tmp mkdir -p tmp
oe_runmake ffmpeg oe_runmake ffmpeg
oe_runmake oe_runmake
} }
do_install() { do_install() {
oe_runmake dist oe_runmake dist
mkdir -p ${D}/usr/share/fonts/truetype/freefont/ mkdir -p ${D}/usr/share/fonts/truetype/freefont/
install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/
} }
FILES_${PN} = "${bindir}/omxplayer* \ FILES_${PN} = "${bindir}/omxplayer* \
@ -64,3 +65,5 @@ FILES_${PN} = "${bindir}/omxplayer* \
/usr/share/fonts" /usr/share/fonts"
FILES_${PN}-dev += "${libdir}/omxplayer/*.so" FILES_${PN}-dev += "${libdir}/omxplayer/*.so"
RDEPENDS_${PN} += "bash"