diff options
| author | Andrei Gherzan <andrei@gherzan.ro> | 2012-08-27 16:51:26 +0300 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-08-29 00:05:21 +0300 |
| commit | 6647bb651f1f33f4ab761c4aa129928fe3ae5f87 (patch) | |
| tree | 5dd4d22f1e07db1564efc38e8125074250fbfc06 /recipes-multimedia/omxplayer/omxplayer_git.bb | |
| parent | cc199637a7f82f3b0fab9db563071b7c0790b62a (diff) | |
| download | meta-raspberrypi-6647bb651f1f33f4ab761c4aa129928fe3ae5f87.tar.gz | |
omxplayer: Integrate git revision 231c08b42005e3de565013bc1cee18bd5a349c1f
Add four patches:
1. don-t-strip-while-installing.patch
Don't strip binaries because buildsystem will strip them after all.
2. libraries-are-installed-in-usr-lib.patch
Libraries are installed in /usr/lib not in /usr/local/lib
3, remove-hardcoded-directory-omxplayer-dist.patch
We want files to be installed in ${D}. Add a variable in Makefile to
let users install omxplayer in a specific location.
4. remove-makefile-include.patch
Remove Makefile.include as it includes hardcoded paths. Rely on
variables provided by build system.
[GITHUB #34]
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'recipes-multimedia/omxplayer/omxplayer_git.bb')
| -rw-r--r-- | recipes-multimedia/omxplayer/omxplayer_git.bb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb new file mode 100644 index 0000000..b637ba6 --- /dev/null +++ b/recipes-multimedia/omxplayer/omxplayer_git.bb | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | DESCRIPTION = "OMXPlayer is a commandline OMX player for the Raspberry Pi" | ||
| 2 | HOMEPAGE = "https://github.com/huceke/omxplayer" | ||
| 3 | SECTION = "console/utils" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
| 7 | |||
| 8 | DEPENDS = "libpcre libav virtual/egl boost freetype" | ||
| 9 | |||
| 10 | PR = "r0" | ||
| 11 | |||
| 12 | SRCREV = "231c08b42005e3de565013bc1cee18bd5a349c1f" | ||
| 13 | SRC_URI = "git://github.com/huceke/omxplayer.git;protocol=git;branch=master \ | ||
| 14 | file://remove-makefile-include.patch \ | ||
| 15 | file://libraries-are-installed-in-usr-lib.patch \ | ||
| 16 | file://remove-hardcoded-directory-omxplayer-dist.patch \ | ||
| 17 | file://don-t-strip-while-installing.patch \ | ||
| 18 | " | ||
| 19 | S = "${WORKDIR}/git" | ||
| 20 | |||
| 21 | COMPATIBLE_MACHINE = "raspberrypi" | ||
| 22 | |||
| 23 | inherit autotools | ||
| 24 | |||
| 25 | # Variable added in Makefile to INCLUDE | ||
| 26 | export ADD_INCDIR = "-I${STAGING_INCDIR}/interface/vcos/pthreads -I${STAGING_INCDIR}/freetype2" | ||
| 27 | |||
| 28 | # Needed in configure from Makefile.ffmpeg | ||
| 29 | export HOST = "${HOST_SYS}" | ||
| 30 | export WORK = "${S}" | ||
| 31 | export TEMPDIR = "${S}/tmp" | ||
| 32 | export FLOAT = "softfp" | ||
| 33 | |||
| 34 | export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \ | ||
| 35 | -L${STAGING_DIR_HOST}/lib \ | ||
| 36 | -L${STAGING_DIR_HOST}/usr/lib \ | ||
| 37 | " | ||
| 38 | |||
| 39 | export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \ | ||
| 40 | -isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \ | ||
| 41 | -isystem${STAGING_DIR_HOST}/usr/include/freetype2 \ | ||
| 42 | " | ||
| 43 | |||
| 44 | # Install in ${D} | ||
| 45 | export DEST = "${D}" | ||
| 46 | |||
| 47 | do_compile() { | ||
| 48 | # Needed for compiler test in ffmpeg's configure | ||
| 49 | mkdir -p tmp | ||
| 50 | |||
| 51 | oe_runmake ffmpeg | ||
| 52 | oe_runmake | ||
| 53 | } | ||
| 54 | |||
| 55 | do_install() { | ||
| 56 | oe_runmake dist | ||
| 57 | } | ||
| 58 | |||
| 59 | FILES_${PN} = "${bindir}/omxplayer* \ | ||
| 60 | ${libdir}/omxplayer/lib*${SOLIBS}" | ||
| 61 | |||
| 62 | FILES_${PN}-dev += "${libdir}/omxplayer/*.so" | ||
