aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/omxplayer/omxplayer_git.bb
blob: b637ba678d4331c8be9fbb2162e8c9600a403080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
DESCRIPTION = "OMXPlayer is a commandline OMX player for the Raspberry Pi"
HOMEPAGE = "https://github.com/huceke/omxplayer"
SECTION = "console/utils"
LICENSE = "GPLv2"

LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

DEPENDS = "libpcre libav virtual/egl boost freetype"

PR = "r0"

SRCREV = "231c08b42005e3de565013bc1cee18bd5a349c1f"
SRC_URI = "git://github.com/huceke/omxplayer.git;protocol=git;branch=master \
           file://remove-makefile-include.patch \
           file://libraries-are-installed-in-usr-lib.patch \
           file://remove-hardcoded-directory-omxplayer-dist.patch \
           file://don-t-strip-while-installing.patch \
          "
S = "${WORKDIR}/git"

COMPATIBLE_MACHINE = "raspberrypi"

inherit autotools

# Variable added in Makefile to INCLUDE
export ADD_INCDIR = "-I${STAGING_INCDIR}/interface/vcos/pthreads -I${STAGING_INCDIR}/freetype2"

# Needed in configure from Makefile.ffmpeg
export HOST = "${HOST_SYS}"
export WORK = "${S}"
export TEMPDIR = "${S}/tmp"
export FLOAT = "softfp"

export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \
                  -L${STAGING_DIR_HOST}/lib \
                  -L${STAGING_DIR_HOST}/usr/lib \
                 "

export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \
                   -isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \
                   -isystem${STAGING_DIR_HOST}/usr/include/freetype2 \
                  "

# Install in ${D}
export DEST = "${D}"

do_compile() {
	# Needed for compiler test in ffmpeg's configure
	mkdir -p tmp

	oe_runmake ffmpeg
	oe_runmake
}

do_install() {
	oe_runmake dist
}

FILES_${PN} = "${bindir}/omxplayer* \
               ${libdir}/omxplayer/lib*${SOLIBS}"

FILES_${PN}-dev += "${libdir}/omxplayer/*.so"