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>
|
2013-02-02 08:59:56 +00:00
|
|
|
pkgname=xbmc-rbp
|
2014-03-04 02:34:09 +00:00
|
|
|
pkgver=12.3
|
|
|
|
pkgrel=1
|
2013-02-02 08:59: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')
|
2014-01-09 21:49:32 +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-libs' 'tinyxml' 'raspberrypi-firmware' 'libcec' 'libplist' 'swig' 'taglib')
|
2013-02-02 08:59:56 +00:00
|
|
|
|
2013-06-08 18:06:37 +00:00
|
|
|
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'git' 'autoconf' 'jdk7-openjdk')
|
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'
|
2013-02-02 08:59:56 +00:00
|
|
|
'unrar: access compressed files without unpacking them'
|
|
|
|
)
|
|
|
|
provides=("xbmc")
|
|
|
|
conflicts=("xbmc")
|
2013-02-03 09:55:23 +00:00
|
|
|
install="xbmc.install"
|
2014-01-05 13:44:17 +00:00
|
|
|
source=("http://mirrors.xbmc.org/releases/source/xbmc-${pkgver}.tar.gz"
|
|
|
|
"xbmc-ae04d99-321-texturepacker-hostflags-and-rework.patch"
|
|
|
|
"polkit.rules"
|
|
|
|
"xbmc.service")
|
2013-02-02 08:59:56 +00:00
|
|
|
|
2014-03-04 02:34:09 +00:00
|
|
|
md5sums=('7ae385ebf8e5cfcb917393235e6efbdb'
|
2013-02-02 23:01:39 +00:00
|
|
|
'fc6a925a09ba1b13d84daf1121b42ab9'
|
2014-01-28 10:45:38 +00:00
|
|
|
'02f7951824ee13103344f36009c0ef2a'
|
2014-01-05 13:44:17 +00:00
|
|
|
'4e28664d3e0df08e08dba5b09a855ced')
|
2013-02-02 08:59:56 +00:00
|
|
|
_prefix=/usr
|
|
|
|
|
2013-04-27 09:21:50 +00:00
|
|
|
prepare() {
|
2014-03-04 02:34:09 +00:00
|
|
|
# Fix source directory name.
|
|
|
|
mv "${srcdir}/xbmc-${pkgver}-Frodo" "${srcdir}/xbmc-${pkgver}"
|
2013-02-02 08:59:56 +00:00
|
|
|
cd "${srcdir}/xbmc-${pkgver}"
|
|
|
|
|
|
|
|
# fix lsb_release dependency
|
|
|
|
sed -i -e 's:/usr/bin/lsb_release -d:cat /etc/arch-release:' xbmc/utils/SystemInfo.cpp
|
|
|
|
|
2013-04-27 09:21:50 +00:00
|
|
|
# Patch to fix TexturePacker build.
|
|
|
|
patch -i ${srcdir}/xbmc-ae04d99-321-texturepacker-hostflags-and-rework.patch -p1
|
|
|
|
|
|
|
|
# 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() {
|
|
|
|
cd "${srcdir}/xbmc-${pkgver}"
|
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
|
|
|
|
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"
|
|
|
|
export LDFLAGS="$LDFLAGS -L/opt/vc/lib"
|
|
|
|
# export MAKEFLAGS="-j1"
|
2014-01-05 13:44:17 +00:00
|
|
|
|
|
|
|
./configure --prefix=$_prefix --exec-prefix=$_prefix \
|
|
|
|
--disable-gl \
|
|
|
|
--enable-gles \
|
2014-01-05 13:48:19 +00:00
|
|
|
--disable-sdl \
|
2014-01-05 13:44:17 +00:00
|
|
|
--disable-x11 \
|
|
|
|
--disable-xrandr \
|
|
|
|
--disable-openmax \
|
|
|
|
--disable-joystick \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-crystalhd \
|
|
|
|
--disable-vtbdecoder \
|
|
|
|
--disable-vaapi \
|
|
|
|
--disable-vdpau \
|
|
|
|
--disable-pulse \
|
|
|
|
--disable-projectm \
|
|
|
|
--with-platform=raspberry-pi \
|
|
|
|
--enable-optimizations \
|
|
|
|
--enable-libcec \
|
|
|
|
--enable-dvdcss \
|
|
|
|
--enable-optical-drive \
|
|
|
|
--enable-libbluray \
|
|
|
|
--enable-player=omxplayer
|
2013-02-02 08:59:56 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-02-02 23:01:39 +00:00
|
|
|
cd "${srcdir}/xbmc-${pkgver}"
|
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
|
|
|
|
|
|
|
|
# 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
|
2013-02-05 22:06:11 +00:00
|
|
|
install -D -m 0755 "${srcdir}/xbmc-${pkgver}/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
|
|
|
}
|