2013-03-24 18:16:15 +00:00
|
|
|
# Template file for 'omxplayer'
|
|
|
|
pkgname=omxplayer
|
2013-10-26 08:16:21 +00:00
|
|
|
_githash=5e6b623
|
2013-10-30 08:45:31 +00:00
|
|
|
version=20131030
|
2013-07-15 04:34:30 +00:00
|
|
|
revision=1
|
2013-09-23 07:22:44 +00:00
|
|
|
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"
|
2013-10-30 08:45:31 +00:00
|
|
|
makedepends="rpi-firmware>=20130913 pcre-devel boost-devel freetype-devel ffmpeg-devel>=2.1 dbus-devel"
|
2013-03-24 18:16:15 +00:00
|
|
|
|
|
|
|
do_fetch() {
|
2013-07-15 04:34:30 +00:00
|
|
|
local url="git://github.com/popcornmix/omxplayer.git"
|
2013-03-24 18:16:15 +00:00
|
|
|
git clone $url ${pkgname}-${version}
|
2013-09-23 07:22:44 +00:00
|
|
|
cd ${pkgname}-${version}
|
|
|
|
git checkout ${_githash}
|
2013-03-24 18:16:15 +00:00
|
|
|
}
|
|
|
|
|
2013-07-15 04:34:30 +00:00
|
|
|
pre_build() {
|
2013-03-24 18:16:15 +00:00
|
|
|
cp -f ${FILESDIR}/Makefile* .
|
2013-07-15 04:34:30 +00:00
|
|
|
sed -e 's,/usr/share/fonts/truetype/freefont,/usr/share/fonts/TTF,g' -i omxplayer.cpp
|
|
|
|
}
|
2013-03-24 18:16:15 +00:00
|
|
|
|
2013-07-15 04:34:30 +00:00
|
|
|
do_build() {
|
|
|
|
mkdir -p /opt/vc/lib
|
2013-09-13 10:32:45 +00:00
|
|
|
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
|
|
|
|
}
|
2013-04-14 03:01:48 +00:00
|
|
|
|
|
|
|
omxplayer_package() {
|
2013-09-13 10:32:45 +00:00
|
|
|
depends="rpi-firmware>=20130913 freefont-ttf"
|
2013-04-14 03:01:48 +00:00
|
|
|
pkg_install() {
|
2013-09-13 10:32:45 +00:00
|
|
|
vmove all
|
2013-04-14 03:01:48 +00:00
|
|
|
}
|
|
|
|
}
|