2013-03-24 18:16:15 +00:00
|
|
|
# Template file for 'omxplayer'
|
|
|
|
pkgname=omxplayer
|
|
|
|
version=20130324
|
2013-03-24 18:42:49 +00:00
|
|
|
revision=2
|
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"
|
|
|
|
makedepends="rpi-firmware pcre-devel boost-devel freetype-devel ffmpeg-0.10x-compat-devel"
|
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
local url="git://github.com/huceke/omxplayer.git"
|
|
|
|
git clone $url ${pkgname}-${version}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
cp -f ${FILESDIR}/Makefile* .
|
|
|
|
|
|
|
|
_ffmpeg_inc="/usr/include/ffmpeg-0.10x-compat"
|
|
|
|
_ffmpeg_lib="/usr/lib/ffmpeg-0.10x-compat"
|
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-24 18:16:15 +00:00
|
|
|
INCLUDES="-I$XBPS_CROSS_BASE/include \
|
|
|
|
-I$XBPS_CROSS_BASE/include/freetype2 \
|
|
|
|
-I$XBPS_CROSS_BASE/${_ffmpeg_inc}"
|
|
|
|
|
2013-04-14 03:01:48 +00:00
|
|
|
LDFLAGS="-L$XBPS_CROSS_BASE/lib -L$XBPS_CROSS_BASE/${_ffmpeg_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|@INCLUDES@|-I${_ffmpeg_inc}|g" -i Makefile.include
|
|
|
|
sed -e "s|@LDFLAGS@|-L${_ffmpeg_lib} -Wl,-rpath ${_ffmpeg_lib}|g" -i Makefile.include
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|