mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-07-27 19:36:58 +00:00
eff5ec9b75
Changed the active development repository to git://github.com/popcornmix/omxplayer.git Added dbus package as a dependency. Installed fonts directory in the default location needed by omxplayer Change-Id: Ie2e1ae73656d3c9a5cbefbf87d0792b10fcd9430 Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
67 lines
2.0 KiB
BlitzBasic
67 lines
2.0 KiB
BlitzBasic
DESCRIPTION = "OMXPlayer is a commandline OMX player for the Raspberry Pi"
|
|
HOMEPAGE = "https://github.com/popcornmix/omxplayer"
|
|
SECTION = "console/utils"
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
|
|
|
DEPENDS = "libpcre libav virtual/egl boost freetype dbus"
|
|
|
|
PR = "r1"
|
|
|
|
SRCREV = "c0dd9502ed2c43c487674939195c69680f3d98b0"
|
|
|
|
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"
|
|
S = "${WORKDIR}/git"
|
|
|
|
COMPATIBLE_MACHINE = "raspberrypi"
|
|
|
|
inherit autotools
|
|
|
|
# Needed in ffmpeg configure
|
|
export TEMPDIR = "${S}/tmp"
|
|
|
|
# Needed in Makefile.ffmpeg
|
|
export HOST = "${HOST_SYS}"
|
|
export WORK = "${S}"
|
|
export FLOAT = "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "hard", "softfp", d)}"
|
|
|
|
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 \
|
|
-isystem${STAGING_DIR_HOST}/usr/include/interface/vmcs_host/linux \
|
|
-isystem${STAGING_DIR_HOST}/usr/include/dbus-1.0 \
|
|
-isystem${STAGING_DIR_HOST}/usr/lib/dbus-1.0/include \
|
|
"
|
|
|
|
# Install in ${D}
|
|
export DIST = "${D}"
|
|
|
|
do_compile() {
|
|
# Needed for compiler test in ffmpeg's configure
|
|
mkdir -p tmp
|
|
|
|
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/
|
|
}
|
|
|
|
FILES_${PN} = "${bindir}/omxplayer* \
|
|
${libdir}/omxplayer/lib*${SOLIBS} \
|
|
/usr/share/fonts"
|
|
|
|
FILES_${PN}-dev += "${libdir}/omxplayer/*.so"
|