2013-03-24 18:16:15 +00:00
|
|
|
# Template file for 'omxplayer'
|
|
|
|
pkgname=omxplayer
|
2013-07-15 04:34:30 +00:00
|
|
|
version=20130715
|
|
|
|
revision=1
|
2013-03-24 18:16:15 +00:00
|
|
|
short_desc="Commandline OMX player for the Raspberry Pi"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://github.com/huceke/omxplayer"
|
|
|
|
|
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
|
|
|
|
|
|
|
# XXX only rpi
|
|
|
|
only_for_archs="armv6l"
|
|
|
|
hostmakedepends="pkg-config"
|
2013-07-15 04:34:30 +00:00
|
|
|
makedepends="rpi-firmware pcre-devel boost-devel freetype-devel ffmpeg-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-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
|
|
|
./gen_version.sh > version.h
|
|
|
|
sed -e 's,\\n,,g' -i version.h
|
|
|
|
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-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-07-15 04:34:30 +00:00
|
|
|
|
2013-03-24 18:16:15 +00:00
|
|
|
INCLUDES="-I$XBPS_CROSS_BASE/include \
|
2013-07-15 04:34:30 +00:00
|
|
|
-I$XBPS_CROSS_BASE/include/freetype2"
|
2013-03-24 18:16:15 +00:00
|
|
|
|
2013-07-15 04:34:30 +00:00
|
|
|
LDFLAGS="-L$XBPS_CROSS_BASE/lib"
|
2013-03-24 18:16:15 +00:00
|
|
|
|
|
|
|
sed -e "s|@INCLUDES@|${INCLUDES}|g" -i Makefile.include
|
|
|
|
sed -e "s|@LDFLAGS@|${LDFLAGS}|g" -i Makefile.include
|
|
|
|
sed -e "s|@OPTBASE@|${XBPS_CROSS_BASE}/opt|g" -i Makefile.include
|
|
|
|
else
|
|
|
|
sed -e "s|@OPTBASE@|/opt|g" -i Makefile.include
|
|
|
|
fi
|
|
|
|
|
|
|
|
make CC="$CC" CXX="$CXX" LD="$LD"
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
}
|
2013-04-14 03:01:48 +00:00
|
|
|
|
|
|
|
omxplayer_package() {
|
|
|
|
depends="freefont-ttf"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|