void-packages/srcpkgs/omxplayer/template

32 lines
894 B
Plaintext
Raw Normal View History

2013-03-24 19:16:15 +01:00
# Template file for 'omxplayer'
_githash=f666a5d
2013-03-24 19:16:15 +01:00
pkgname=omxplayer
version=20140120
revision=1
short_desc="Commandline OMX player for the Raspberry Pi (git ${_githash})"
2013-03-24 19:16:15 +01:00
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="https://github.com/huceke/omxplayer"
# XXX only rpi
only_for_archs="armv6l"
2013-11-23 10:56:44 +01:00
build_style=gnu-makefile
2013-03-24 19:16:15 +01:00
hostmakedepends="pkg-config"
makedepends="rpi-firmware>=20130913 pcre-devel boost-devel freetype-devel ffmpeg-devel>=2.1 dbus-devel"
depends="rpi-firmware>=20130913 freefont-ttf"
2013-03-24 19:16:15 +01:00
do_fetch() {
local url="git://github.com/popcornmix/omxplayer.git"
2013-03-24 19:16:15 +01:00
git clone $url ${pkgname}-${version}
cd ${pkgname}-${version}
git checkout ${_githash}
2013-03-24 19:16:15 +01:00
}
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
2013-03-24 19:16:15 +01:00
}