summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/omxplayer/omxplayer_git.bb
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-08-27 16:51:26 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-08-29 00:05:21 +0300
commit6647bb651f1f33f4ab761c4aa129928fe3ae5f87 (patch)
tree5dd4d22f1e07db1564efc38e8125074250fbfc06 /recipes-multimedia/omxplayer/omxplayer_git.bb
parentcc199637a7f82f3b0fab9db563071b7c0790b62a (diff)
downloadmeta-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.bb62
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 @@
1DESCRIPTION = "OMXPlayer is a commandline OMX player for the Raspberry Pi"
2HOMEPAGE = "https://github.com/huceke/omxplayer"
3SECTION = "console/utils"
4LICENSE = "GPLv2"
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
7
8DEPENDS = "libpcre libav virtual/egl boost freetype"
9
10PR = "r0"
11
12SRCREV = "231c08b42005e3de565013bc1cee18bd5a349c1f"
13SRC_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 "
19S = "${WORKDIR}/git"
20
21COMPATIBLE_MACHINE = "raspberrypi"
22
23inherit autotools
24
25# Variable added in Makefile to INCLUDE
26export ADD_INCDIR = "-I${STAGING_INCDIR}/interface/vcos/pthreads -I${STAGING_INCDIR}/freetype2"
27
28# Needed in configure from Makefile.ffmpeg
29export HOST = "${HOST_SYS}"
30export WORK = "${S}"
31export TEMPDIR = "${S}/tmp"
32export FLOAT = "softfp"
33
34export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \
35 -L${STAGING_DIR_HOST}/lib \
36 -L${STAGING_DIR_HOST}/usr/lib \
37 "
38
39export 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}
45export DEST = "${D}"
46
47do_compile() {
48 # Needed for compiler test in ffmpeg's configure
49 mkdir -p tmp
50
51 oe_runmake ffmpeg
52 oe_runmake
53}
54
55do_install() {
56 oe_runmake dist
57}
58
59FILES_${PN} = "${bindir}/omxplayer* \
60 ${libdir}/omxplayer/lib*${SOLIBS}"
61
62FILES_${PN}-dev += "${libdir}/omxplayer/*.so"