void-packages/srcpkgs/omxplayer/template

44 lines
1 KiB
Text
Raw Normal View History

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