41 lines
1014 B
Plaintext
41 lines
1014 B
Plaintext
# Template file for 'omxplayer'
|
|
pkgname=omxplayer
|
|
_githash=9b52cee
|
|
version=20131124
|
|
revision=1
|
|
short_desc="Commandline OMX player for the Raspberry Pi (git ${_githash})"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="https://github.com/huceke/omxplayer"
|
|
|
|
# XXX only rpi
|
|
only_for_archs="armv6l"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
makedepends="rpi-firmware>=20130913 pcre-devel boost-devel freetype-devel ffmpeg-devel>=2.1 dbus-devel"
|
|
|
|
do_fetch() {
|
|
local url="git://github.com/popcornmix/omxplayer.git"
|
|
git clone $url ${pkgname}-${version}
|
|
cd ${pkgname}-${version}
|
|
git checkout ${_githash}
|
|
}
|
|
|
|
pre_build() {
|
|
cp -f ${FILESDIR}/* .
|
|
sed -e 's,/usr/share/fonts/truetype/freefont,/usr/share/fonts/TTF,g' -i omxplayer.cpp
|
|
mkdir -p /opt/vc/lib
|
|
sed -e "s|@CROSSBASE@|${XBPS_CROSS_BASE}|g" -i Makefile.include
|
|
}
|
|
|
|
do_build() {
|
|
make CC="$CC" CXX="$CXX" LD="$LD" ${makejobs}
|
|
}
|
|
|
|
omxplayer_package() {
|
|
depends="rpi-firmware>=20130913 freefont-ttf"
|
|
pkg_install() {
|
|
vmove all
|
|
}
|
|
}
|