2012-09-20 14:27:56 +00:00
|
|
|
# Contributor tomasgroth at yahoo.dk
|
|
|
|
# Contributor WarheadsSE <max@warheads.net>
|
2013-04-08 18:51:48 +00:00
|
|
|
_gitname="xbmc"
|
2012-09-20 14:27:56 +00:00
|
|
|
pkgname=xbmc-rbp-git
|
2013-04-08 18:51:48 +00:00
|
|
|
pkgver=13.306.gcdedbd8
|
|
|
|
#xbmc Gotham is version 13
|
|
|
|
_cycle_version=13
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/$_gitname"
|
|
|
|
git describe --tags |sed "s/[^-]*-/$_cycle_version./;s/-/./g"
|
|
|
|
}
|
|
|
|
epoch=1
|
|
|
|
pkgrel=1
|
2012-09-20 14:27:56 +00:00
|
|
|
buildarch=16
|
|
|
|
|
|
|
|
pkgdesc="A software media player and entertainment hub for digital media for the Raspberry Pi"
|
|
|
|
arch=('armv6h')
|
|
|
|
url="http://xbmc.org"
|
|
|
|
license=('GPL' 'custom')
|
2013-04-26 21:13:07 +00:00
|
|
|
depends=('hicolor-icon-theme' 'fribidi' 'lzo2' 'smbclient' 'libtiff' 'libva' 'libpng' 'libcdio' 'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'sdl_image' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'xorg-xdpyinfo' 'libbluray' 'libnfs' 'afpfs-ng' 'libshairport' 'avahi' 'bluez' 'tinyxml' 'raspberrypi-firmware' 'libcec-rpi' 'libplist' 'swig' 'taglib')
|
2012-10-11 21:51:42 +00:00
|
|
|
|
2013-04-09 18:29:30 +00:00
|
|
|
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'bluez' 'git' 'autoconf' 'java-environment')
|
2012-09-20 14:27:56 +00:00
|
|
|
optdepends=(
|
|
|
|
'lirc: remote controller support'
|
|
|
|
'udisks: automount external drives'
|
|
|
|
'upower: used to trigger suspend functionality'
|
|
|
|
'unrar: access compressed files without unpacking them'
|
|
|
|
)
|
2013-02-02 08:59:56 +00:00
|
|
|
provides=("xbmc")
|
|
|
|
conflicts=("xbmc")
|
2013-02-03 09:55:23 +00:00
|
|
|
install="xbmc.install"
|
2013-02-02 23:01:39 +00:00
|
|
|
source=(xbmc-ae04d99-321-texturepacker-hostflags-and-rework.patch
|
2013-04-08 18:51:48 +00:00
|
|
|
xbmc.service
|
|
|
|
"git://github.com/xbmc/xbmc.git")
|
2013-02-02 23:01:39 +00:00
|
|
|
md5sums=('fc6a925a09ba1b13d84daf1121b42ab9'
|
2013-04-08 18:51:48 +00:00
|
|
|
'76fae229ebc3bcfaab7e7f27e4fb51f5'
|
|
|
|
'SKIP')
|
2012-09-20 14:27:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
_prefix=/usr
|
|
|
|
|
2013-04-08 18:51:48 +00:00
|
|
|
prepare() {
|
2012-09-20 14:27:56 +00:00
|
|
|
cd "${srcdir}/${_gitname}"
|
|
|
|
|
|
|
|
# fix lsb_release dependency
|
|
|
|
sed -i -e 's:/usr/bin/lsb_release -d:cat /etc/arch-release:' xbmc/utils/SystemInfo.cpp
|
|
|
|
|
2012-11-26 18:19:25 +00:00
|
|
|
# Patch to fix TexturePacker build.
|
2013-04-08 18:51:48 +00:00
|
|
|
git apply ${srcdir}/xbmc-ae04d99-321-texturepacker-hostflags-and-rework.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${_gitname}"
|
2012-09-20 14:27:56 +00:00
|
|
|
|
|
|
|
# Bootstrapping XBMC
|
|
|
|
./bootstrap
|
|
|
|
|
|
|
|
# Configuring XBMC
|
|
|
|
export PYTHON_VERSION=2 # external python v2
|
|
|
|
# we need to compile for armv6 instead of armv5 to avoid problems compiling assembler code
|
2013-01-01 00:32:59 +00:00
|
|
|
export CFLAGS="-O3 -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mabi=aapcs-linux -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
|
|
|
|
export CXXFLAGS="-O3 -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mabi=aapcs-linux -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
|
2012-09-20 14:27:56 +00:00
|
|
|
export LDFLAGS="$LDFLAGS -L/opt/vc/lib"
|
|
|
|
# export MAKEFLAGS="-j1"
|
|
|
|
./configure --prefix=$_prefix --exec-prefix=$_prefix \
|
|
|
|
--enable-gles --disable-sdl --disable-x11 --disable-xrandr --disable-openmax \
|
|
|
|
--disable-optical-drive --disable-dvdcss --disable-joystick --disable-debug \
|
|
|
|
--disable-crystalhd --disable-vtbdecoder --disable-vaapi --disable-vdpau \
|
2012-10-06 21:43:14 +00:00
|
|
|
--disable-pulse --disable-projectm --with-platform=raspberry-pi --enable-optimizations \
|
2012-12-30 21:43:25 +00:00
|
|
|
--enable-libcec --enable-player=omxplayer
|
2012-09-20 14:27:56 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_gitname}"
|
|
|
|
# Running make install
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# run feh with python2
|
|
|
|
sed -i -e 's/python/python2/g' ${pkgdir}${_prefix}/bin/xbmc
|
|
|
|
|
|
|
|
# Remove checks that doesn't apply to the raspberry pi
|
|
|
|
head -n 171 "${pkgdir}${_prefix}/share/xbmc/FEH.py" > "${pkgdir}${_prefix}/share/xbmc/FEH.py.new"
|
|
|
|
mv "${pkgdir}${_prefix}/share/xbmc/FEH.py.new" "${pkgdir}${_prefix}/share/xbmc/FEH.py"
|
|
|
|
|
|
|
|
# lsb_release fix
|
|
|
|
sed -i -e 's/which lsb_release > \/dev\/null/\[ -f \/etc\/arch-release ]/g' "${pkgdir}${_prefix}/bin/xbmc"
|
|
|
|
sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/cat \/etc\/arch-release/g" "${pkgdir}${_prefix}/bin/xbmc"
|
|
|
|
|
|
|
|
# Tools
|
|
|
|
install -D -m 0755 "${srcdir}/${_gitname}/tools/TexturePacker/TexturePacker" "${pkgdir}${_prefix}/share/xbmc/"
|
|
|
|
|
|
|
|
# Licenses
|
|
|
|
install -d -m 0755 "${pkgdir}${_prefix}/share/licenses/${pkgname}"
|
|
|
|
for licensef in LICENSE.GPL copying.txt; do
|
|
|
|
mv "${pkgdir}${_prefix}/share/doc/xbmc/${licensef}" "${pkgdir}${_prefix}/share/licenses/${pkgname}"
|
|
|
|
done
|
|
|
|
|
2013-02-02 23:01:39 +00:00
|
|
|
# systemd stuff
|
|
|
|
install -Dm0644 $srcdir/xbmc.service $pkgdir/usr/lib/systemd/system/xbmc.service
|
|
|
|
|
2012-09-20 14:27:56 +00:00
|
|
|
}
|