2013-02-02 08:59:56 +00:00
|
|
|
# Contributor tomasgroth at yahoo.dk
|
|
|
|
# Contributor WarheadsSE <max@warheads.net>
|
2014-03-04 02:34:09 +00:00
|
|
|
# Contributor Romzetron <asromzek@gmail.com>
|
2014-05-22 10:34:19 +00:00
|
|
|
# Contributor Holzhaus <holthuis.jan@googlemail.com>
|
|
|
|
|
2013-02-02 08:59:56 +00:00
|
|
|
buildarch=16
|
|
|
|
|
2014-05-22 10:34:19 +00:00
|
|
|
pkgname=xbmc-rbp
|
2014-09-01 06:19:07 +00:00
|
|
|
pkgver=13.2
|
2014-06-07 18:23:30 +00:00
|
|
|
_codename=Gotham
|
2014-11-19 01:02:50 +00:00
|
|
|
pkgrel=4
|
2013-02-02 08:59:56 +00:00
|
|
|
pkgdesc="A software media player and entertainment hub for digital media for the Raspberry Pi"
|
|
|
|
arch=('armv6h')
|
|
|
|
url="http://xbmc.org"
|
|
|
|
license=('GPL' 'custom')
|
2014-07-15 10:34:33 +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' 'avahi' 'bluez-libs' 'tinyxml' 'raspberrypi-firmware' 'libcec' 'libplist' 'swig' 'taglib' 'libxslt' 'shairplay-git')
|
2014-05-22 10:34:19 +00:00
|
|
|
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'git' 'autoconf' 'java-environment')
|
2013-02-02 08:59:56 +00:00
|
|
|
optdepends=(
|
|
|
|
'lirc: remote controller support'
|
|
|
|
'udisks: automount external drives'
|
2014-01-28 10:45:38 +00:00
|
|
|
'upower: used to trigger power management functionality'
|
2014-05-22 10:34:19 +00:00
|
|
|
'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"
|
2014-06-07 18:23:30 +00:00
|
|
|
source=("https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz"
|
2014-11-19 01:02:50 +00:00
|
|
|
'0001-CEC-fixed-don-t-try-to-stick-a-value-255-in-a-byte.patch'
|
|
|
|
'0002-CEC-bump-libCEC-to-2.2.0.patch'
|
|
|
|
'0003-CEC-prevent-bus-rescan-on-a-Pi-since-the-adapter-can.patch'
|
|
|
|
'0004-CEC-fixed-don-t-return-garbage-from-CEC-related-app-.patch'
|
|
|
|
'0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch'
|
|
|
|
'0006-CEC-fixed-don-t-use-CEC_CLIENT_VERSION_CURRENT-for-t.patch'
|
2014-05-22 10:34:19 +00:00
|
|
|
'xbmc.service'
|
|
|
|
'polkit.rules'
|
2014-08-01 07:34:08 +00:00
|
|
|
'panasonicCEC.patch')
|
2014-05-22 10:34:19 +00:00
|
|
|
|
2014-09-01 06:19:07 +00:00
|
|
|
sha256sums=('acbf5dffa3034a3406240ee3cf81e721386cd383d23d056ddde1f769e050e585'
|
2014-11-19 01:02:50 +00:00
|
|
|
'f4b436a64e32af6728fc9a584292b56de356d9090f0db0af30798a43aaa077f3'
|
|
|
|
'9d9ccbd140a71b90d43a22b7722804b9cb509b4e1e1fec02c0e2bceaed3b3958'
|
|
|
|
'0f0401189cc8481f05d7b68c50d66e18144c7d261be783e32c5b269f4b356ad7'
|
|
|
|
'33d6bd2b0da3d8563bfdf6059ad59ca10d9fe617e51990220ceb40d6fb3129d3'
|
|
|
|
'd98f86ceefb039b43a66332658aeee4aff25370248955ece10d04ae21f33d2a9'
|
|
|
|
'd829a5267f0b8042308b291366915253b3104d85a780a03cdaff6bec82493b95'
|
2014-05-24 15:28:51 +00:00
|
|
|
'189804742290946424a401163e351f5158bfd1b71e5b86b864589254b13f9571'
|
2014-05-22 10:34:19 +00:00
|
|
|
'4ea78374a08e13a64dcf6a424b111b8bfc11de03ed5829744fc6d9b5fc1ec96e'
|
2014-08-01 07:34:08 +00:00
|
|
|
'554140506063a85000d7072a961bb02514969e58b38a466aa120e9fb668a1863')
|
2014-05-22 10:34:19 +00:00
|
|
|
|
2013-02-02 08:59:56 +00:00
|
|
|
_prefix=/usr
|
|
|
|
|
2013-04-27 09:21:50 +00:00
|
|
|
prepare() {
|
2014-05-22 10:34:19 +00:00
|
|
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
2013-02-02 08:59:56 +00:00
|
|
|
|
2014-11-19 01:02:50 +00:00
|
|
|
patch -Np1 -i "$srcdir/0001-CEC-fixed-don-t-try-to-stick-a-value-255-in-a-byte.patch"
|
|
|
|
patch -Np1 -i "$srcdir/0002-CEC-bump-libCEC-to-2.2.0.patch"
|
|
|
|
patch -Np1 -i "$srcdir/0003-CEC-prevent-bus-rescan-on-a-Pi-since-the-adapter-can.patch"
|
|
|
|
patch -Np1 -i "$srcdir/0004-CEC-fixed-don-t-return-garbage-from-CEC-related-app-.patch"
|
|
|
|
patch -Np1 -i "$srcdir/0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch"
|
|
|
|
patch -Np1 -i "$srcdir/0006-CEC-fixed-don-t-use-CEC_CLIENT_VERSION_CURRENT-for-t.patch"
|
|
|
|
|
2013-02-02 08:59:56 +00:00
|
|
|
# fix lsb_release dependency
|
|
|
|
sed -i -e 's:/usr/bin/lsb_release -d:cat /etc/arch-release:' xbmc/utils/SystemInfo.cpp
|
2014-05-22 10:34:19 +00:00
|
|
|
|
|
|
|
# Suppress double keys within 250ms for some Panasonic TVs
|
|
|
|
# https://github.com/chbmuc/xbmc/commit/6e5822d4fe648abbd575cf77ced943a1461e9ae5
|
|
|
|
# http://archlinuxarm.org/forum/viewtopic.php?f=31&t=6376&start=10
|
|
|
|
patch -Np1 -i ${srcdir}/panasonicCEC.patch
|
2014-07-15 10:39:40 +00:00
|
|
|
|
2013-04-27 09:21:50 +00:00
|
|
|
# fix samba4 libsmbclient.h location
|
|
|
|
sed -e 's/\(#include \)<libsmbclient\.h>/\1<samba-4.0\/libsmbclient\.h>/g' \
|
|
|
|
-i xbmc/filesystem/SmbFile.cpp \
|
|
|
|
-i xbmc/filesystem/SMBDirectory.cpp
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2014-05-22 10:34:19 +00:00
|
|
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
2013-02-02 08:59: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
|
2014-05-22 10:34:19 +00:00
|
|
|
export CFLAGS="-Ofast -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -fexcess-precision=fast -mfloat-abi=hard \
|
|
|
|
-mfpu=vfp -mabi=aapcs-linux -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=1 \
|
|
|
|
-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="-Ofast -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -fexcess-precision=fast -mfloat-abi=hard -mfpu=vfp \
|
|
|
|
-mabi=aapcs-linux -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=1 \
|
|
|
|
-I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
|
2013-02-02 08:59:56 +00:00
|
|
|
export LDFLAGS="$LDFLAGS -L/opt/vc/lib"
|
2014-09-22 04:34:44 +00:00
|
|
|
|
|
|
|
#If build fails try uncommenting the line below first
|
|
|
|
#export MAKEFLAGS="-j1"
|
2014-05-22 10:34:19 +00:00
|
|
|
|
|
|
|
./configure --prefix=$_prefix --exec-prefix=$_prefix \
|
|
|
|
--with-platform=raspberry-pi \
|
2014-01-05 13:44:17 +00:00
|
|
|
--disable-gl \
|
|
|
|
--enable-gles \
|
|
|
|
--disable-x11 \
|
2014-05-22 10:34:19 +00:00
|
|
|
--disable-sdl \
|
|
|
|
--enable-optimizations \
|
|
|
|
--disable-external-libraries \
|
|
|
|
--disable-goom \
|
|
|
|
--disable-hal \
|
|
|
|
--disable-pulse \
|
2014-01-05 13:44:17 +00:00
|
|
|
--disable-vaapi \
|
|
|
|
--disable-vdpau \
|
2014-05-22 10:34:19 +00:00
|
|
|
--disable-xrandr \
|
|
|
|
--enable-airplay \
|
|
|
|
--enable-airtunes \
|
|
|
|
--disable-alsa \
|
|
|
|
--enable-avahi \
|
|
|
|
--enable-libbluray \
|
2014-01-05 13:44:17 +00:00
|
|
|
--enable-dvdcss \
|
2014-05-22 10:34:19 +00:00
|
|
|
--disable-debug \
|
|
|
|
--disable-joystick \
|
|
|
|
--disable-mid \
|
|
|
|
--enable-nfs \
|
|
|
|
--disable-profiling \
|
|
|
|
--disable-projectm \
|
|
|
|
--enable-rsxs \
|
|
|
|
--enable-rtmp \
|
|
|
|
--disable-vaapi \
|
|
|
|
--disable-vdadecoder \
|
|
|
|
--disable-external-ffmpeg \
|
2014-01-05 13:44:17 +00:00
|
|
|
--enable-optical-drive \
|
|
|
|
--enable-player=omxplayer
|
2013-02-02 08:59:56 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-05-22 10:34:19 +00:00
|
|
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
2013-02-02 08:59:56 +00:00
|
|
|
# Running make install
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# run feh with python2
|
|
|
|
sed -i -e 's/python/python2/g' ${pkgdir}${_prefix}/bin/xbmc
|
|
|
|
|
2014-05-22 10:34:19 +00:00
|
|
|
# Remove checks that don't apply to the raspberry pi
|
2013-02-02 08:59:56 +00:00
|
|
|
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
|
2014-05-24 15:28:51 +00:00
|
|
|
install -D -m 0755 "${srcdir}/xbmc-${pkgver}-${_codename}/tools/TexturePacker/TexturePacker" "${pkgdir}${_prefix}/share/xbmc/"
|
2013-02-02 08:59:56 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
install -Dm0644 $srcdir/xbmc.service $pkgdir/usr/lib/systemd/system/xbmc.service
|
2014-01-28 10:45:38 +00:00
|
|
|
install -Dm0644 $srcdir/polkit.rules $pkgdir/usr/share/polkit-1/rules.d/10-xbmc.rules
|
|
|
|
chmod 0700 $pkgdir/usr/share/polkit-1/rules.d/
|
2013-02-02 08:59:56 +00:00
|
|
|
}
|