[yocto] [meta-raspberrypi][PATCH 1/4] omxplayer: Update to HEAD and tweak SUMMARY and DESCRIPTION

Andrei Gherzan andrei at gherzan.ro
Sun Jan 19 09:24:10 PST 2014


On Fri, Jan 17, 2014 at 04:51:11PM +0200, Andrei Gherzan wrote:
> * 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 at gherzan.ro>
> ---
>  .../omxplayer/mktemp-compatible-with-busybox.patch | 23 ++++++++++++++++
>  recipes-multimedia/omxplayer/omxplayer_git.bb      | 31 ++++++++++++----------
>  2 files changed, 40 insertions(+), 14 deletions(-)
>  create mode 100644 recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch
>
> 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 @@
> +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 at 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
> 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 @@
> -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"
>  SECTION = "console/utils"
> -LICENSE = "GPLv2"
>
> +LICENSE = "GPLv2"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
>
>  DEPENDS = "libpcre libav virtual/egl boost freetype dbus"
> +PR = "r2"
>
> -PR = "r1"
> -
> -SRCREV = "c0dd9502ed2c43c487674939195c69680f3d98b0"
> -
> +SRCREV = "74f4be222be05d3ea50be9f5a70846f7c0e9df6e"
>  SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \
>             file://0001-Remove-Makefile.include-which-includes-hardcoded.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"
>
>  COMPATIBLE_MACHINE = "raspberrypi"
> @@ -46,17 +47,17 @@ export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \
>  export DIST = "${D}"
>
>  do_compile() {
> -	# Needed for compiler test in ffmpeg's configure
> -	mkdir -p tmp
> +    # Needed for compiler test in ffmpeg's configure
> +    mkdir -p tmp
>
> -	oe_runmake ffmpeg
> -	oe_runmake
> +    oe_runmake ffmpeg
> +    oe_runmake
>  }
>
>  do_install() {
> -	oe_runmake dist
> -	mkdir -p ${D}/usr/share/fonts/truetype/freefont/
> -	install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/
> +    oe_runmake dist
> +    mkdir -p ${D}/usr/share/fonts/truetype/freefont/
> +    install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/
>  }
>
>  FILES_${PN} = "${bindir}/omxplayer* \
> @@ -64,3 +65,5 @@ FILES_${PN} = "${bindir}/omxplayer* \
>                 /usr/share/fonts"
>
>  FILES_${PN}-dev += "${libdir}/omxplayer/*.so"
> +
> +RDEPENDS_${PN} += "bash"
> --
> 1.8.1.4
>

Merged the series.

--
Andrei Gherzan
m: +40.744.478.414 | f: +40.31.816.28.12



More information about the yocto mailing list