2015-04-04 02:31:12 +00:00
|
|
|
# vim:set ts=2 sw=2 et:
|
|
|
|
# $Id$
|
|
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Maintainer: BlackIkeEagle < ike DOT devolder AT gmail DOT com >
|
|
|
|
# Contributor: Brad Fanella <bradfanella@archlinux.us>
|
|
|
|
# Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com>
|
|
|
|
# Contributor: Zeqadious <zeqadious.at.gmail.dot.com>
|
|
|
|
# Contributor: BlackIkeEagle < ike DOT devolder AT gmail DOT com >
|
|
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
|
|
# Contributor: Maxime Gauduin <alucryd@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - i.MX6 changes
|
2015-01-14 07:42:24 +00:00
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
2015-04-04 02:31:12 +00:00
|
|
|
_prefix=/usr
|
|
|
|
|
|
|
|
pkgbase=kodi
|
|
|
|
pkgname=('kodi-imx' 'kodi-imx-eventclients')
|
|
|
|
pkgver=14.2
|
2015-01-14 07:42:24 +00:00
|
|
|
_codename=Helix
|
2015-04-04 21:20:57 +00:00
|
|
|
pkgrel=3
|
2015-04-04 02:31:12 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2015-01-14 07:42:24 +00:00
|
|
|
url="http://kodi.tv"
|
2015-04-04 02:31:12 +00:00
|
|
|
license=('GPL2')
|
2015-01-14 07:42:24 +00:00
|
|
|
makedepends=(
|
2015-04-04 02:31:12 +00:00
|
|
|
'afpfs-ng' 'bluez-libs' 'boost' 'cmake' 'curl' 'cwiid' 'doxygen' 'git' 'glew'
|
|
|
|
'gperf' 'hicolor-icon-theme' 'jasper' 'java-runtime' 'libaacs' 'libass'
|
|
|
|
'libbluray' 'libcdio' 'libmariadbclient' 'libmicrohttpd'
|
|
|
|
'libmodplug' 'libmpeg2' 'libnfs' 'libplist' 'libpulse' 'libssh' 'libva'
|
|
|
|
'libxrandr' 'libxslt' 'lzo' 'nasm' 'nss-mdns' 'python2-pillow'
|
|
|
|
'python2-pybluez' 'python2-simplejson' 'rtmpdump' 'sdl2' 'sdl_image'
|
|
|
|
'shairplay' 'smbclient' 'swig' 'taglib' 'tinyxml' 'unzip' 'upower' 'yajl' 'zip'
|
|
|
|
'libfslvpuwrap' 'gpu-viv-bin-mx6q-fb' 'libcec-imx6' 'firmware-imx'
|
|
|
|
)
|
|
|
|
source=(
|
|
|
|
"$pkgname-$pkgver-$_codename.tar.gz::https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz"
|
|
|
|
'imx-hdmi-soc.conf'
|
|
|
|
'imx-spdif.conf'
|
|
|
|
'kodi.service'
|
|
|
|
'polkit.rules'
|
2015-04-04 03:04:26 +00:00
|
|
|
'kodi.conf'
|
2015-04-04 02:31:12 +00:00
|
|
|
)
|
|
|
|
sha256sums=('d9cb8590430a925fb789a5beb4da2695cdcd2d2500dd31126f3b77b31aa267f4'
|
|
|
|
'6d9822d97b9e1268c04078f6c9b6316eb013f95f96f90034b51fa7473b9752ff'
|
2015-01-14 07:42:24 +00:00
|
|
|
'0e16e4d2ec0c0e1810fe1ad6a7c4dee99d6fc0f49502f0e836210f5dd537d92d'
|
2015-04-04 20:38:00 +00:00
|
|
|
'39bed05cf8fa63b871232e1f53146ce5aa755c99dbe161a3e88040bb45894fd9'
|
2015-04-04 03:04:26 +00:00
|
|
|
'9ea592205023ba861603d74b63cdb73126c56372a366dc4cb7beb379073cbb96'
|
|
|
|
'db6372248015fa4e663bf789e4f7121b5a9ade323f361994bbd6f135ce169123')
|
2015-01-14 07:42:24 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
2015-04-04 02:31:12 +00:00
|
|
|
|
2015-01-14 07:42:24 +00:00
|
|
|
find -type f -name *.py -exec sed 's|^#!.*python$|#!/usr/bin/python2|' -i "{}" +
|
|
|
|
sed 's|^#!.*python$|#!/usr/bin/python2|' -i tools/depends/native/rpl-native/rpl
|
|
|
|
sed 's/python/python2/' -i tools/Linux/kodi.sh.in
|
2015-04-04 02:31:12 +00:00
|
|
|
sed 's/shell python/shell python2/' -i tools/EventClients/Makefile.in
|
|
|
|
# disable wiiremote due to incompatibility with bluez-5.29
|
|
|
|
sed '/WiiRemote/d' -i tools/EventClients/Makefile.in
|
|
|
|
sed '/mkdir -p $(DESTDIR)$(bindir)/i \
|
|
|
|
install:' -i tools/EventClients/Makefile.in
|
2015-01-14 07:42:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
|
|
|
|
2015-04-04 02:31:12 +00:00
|
|
|
# Bootstrapping
|
2015-01-14 07:42:24 +00:00
|
|
|
MAKEFLAGS=-j1 ./bootstrap
|
|
|
|
|
2015-04-04 02:31:12 +00:00
|
|
|
#./configure --help
|
|
|
|
#return 1
|
|
|
|
|
|
|
|
# Configuring XBMC
|
2015-01-14 07:42:24 +00:00
|
|
|
export PYTHON_VERSION=2 # external python v2
|
2015-04-04 02:31:12 +00:00
|
|
|
CFLAGS="-Ofast -mfloat-abi=hard -mfpu=neon -mtls-dialect=gnu -march=armv7-a -mtune=cortex-a9 -pipe -fstack-protector --param=ssp-buffer-size=4 -I/opt/fsl/include"
|
|
|
|
CXXFLAGS="${CFLAGS}"
|
|
|
|
CPPFLAGS+=" -I/opt/fsl/include"
|
|
|
|
LDFLAGS+=" -Wl,-rpath,/opt/fsl/lib -L/opt/fsl/lib"
|
|
|
|
./configure --prefix=$_prefix --exec-prefix=$_prefix \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-gl \
|
|
|
|
--enable-gles \
|
|
|
|
--disable-x11 \
|
|
|
|
--disable-sdl \
|
|
|
|
--enable-optimizations \
|
|
|
|
--disable-goom \
|
|
|
|
--disable-pulse \
|
|
|
|
--enable-libbluray \
|
|
|
|
--enable-external-libraries \
|
|
|
|
--with-lirc-device=/run/lirc/lircd \
|
|
|
|
--disable-vaapi \
|
2015-01-14 09:40:03 +00:00
|
|
|
--disable-openmax \
|
2015-04-04 02:31:12 +00:00
|
|
|
--enable-codec=imxvpu \
|
|
|
|
--enable-libcec \
|
|
|
|
ac_cv_lib_bluetooth_hci_devid=no
|
|
|
|
|
|
|
|
# Now (finally) build
|
2015-01-14 07:42:24 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2015-04-04 02:31:12 +00:00
|
|
|
package_kodi-imx() {
|
|
|
|
pkgdesc="A software media player and entertainment hub for digital media (Freescale i.MX6)"
|
|
|
|
|
|
|
|
# depends expected for kodi plugins:
|
|
|
|
# 'python2-pillow' 'python2-pybluez' 'python2-simplejson'
|
|
|
|
# depends expeced in FEH.py
|
|
|
|
# 'mesa-demos' 'xorg-xdpyinfo'
|
|
|
|
depends=(
|
|
|
|
'python2-pillow' 'python2-pybluez' 'python2-simplejson' 'xorg-xdpyinfo'
|
|
|
|
'bluez-libs' 'fribidi' 'glew' 'hicolor-icon-theme' 'libcdio'
|
|
|
|
'libjpeg-turbo' 'libmariadbclient' 'libmicrohttpd' 'libpulse' 'libssh'
|
|
|
|
'libva' 'libxrandr' 'libxslt' 'lzo' 'sdl2' 'smbclient' 'taglib' 'tinyxml'
|
|
|
|
'yajl' 'libfslvpuwrap' 'gpu-viv-bin-mx6q-fb' 'libcec-imx6' 'firmware-imx'
|
|
|
|
)
|
|
|
|
optdepends=(
|
|
|
|
'afpfs-ng: Apple shares support'
|
|
|
|
'bluez: Blutooth support'
|
|
|
|
'libnfs: NFS shares support'
|
|
|
|
'libplist: AirPlay support'
|
|
|
|
'lirc: Remote controller support'
|
|
|
|
'polkit: permissions for automounting external drives and power management functionality'
|
|
|
|
'pulseaudio: PulseAudio support'
|
|
|
|
'shairplay: AirPlay support'
|
|
|
|
'udisks: Automount external drives'
|
|
|
|
'unrar: Archives support'
|
|
|
|
'unzip: Archives support'
|
|
|
|
'upower: Display battery level'
|
|
|
|
'lsb-release: log distro information in crashlog'
|
|
|
|
)
|
|
|
|
install="kodi.install"
|
|
|
|
provides=('xbmc' 'kodi')
|
|
|
|
conflicts=('xbmc' 'kodi' 'shairplay-git')
|
|
|
|
replaces=('xbmc')
|
|
|
|
|
2015-01-14 07:42:24 +00:00
|
|
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
|
|
|
# Running make install
|
2015-04-04 02:31:12 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
# We will no longer support the xbmc name
|
|
|
|
rm "$pkgdir/usr/share/xsessions/xbmc.desktop"
|
|
|
|
rm "$pkgdir/usr/bin/"xbmc{,-standalone}
|
|
|
|
# we will leave /usr/{include,lib,share}/xbmc for now
|
2015-01-14 07:42:24 +00:00
|
|
|
|
|
|
|
# Licenses
|
2015-04-04 02:31:12 +00:00
|
|
|
install -dm755 ${pkgdir}${_prefix}/share/licenses/${pkgname}
|
2015-01-14 07:42:24 +00:00
|
|
|
for licensef in LICENSE.GPL copying.txt; do
|
|
|
|
mv ${pkgdir}${_prefix}/share/doc/kodi/${licensef} \
|
|
|
|
${pkgdir}${_prefix}/share/licenses/${pkgname}
|
|
|
|
done
|
|
|
|
|
2015-04-04 02:31:12 +00:00
|
|
|
# imx6-specific alsa conf
|
|
|
|
install -Dm0644 $srcdir/imx-spdif.conf $pkgdir/usr/share/alsa/cards/imx-spdif.conf
|
|
|
|
install -Dm0644 $srcdir/imx-hdmi-soc.conf $pkgdir/usr/share/alsa/cards/imx-hdmi-soc.conf
|
|
|
|
|
2015-01-14 07:42:24 +00:00
|
|
|
install -Dm0644 $srcdir/kodi.service $pkgdir/usr/lib/systemd/system/kodi.service
|
|
|
|
install -Dm0644 $srcdir/kodi.conf $pkgdir/etc/tmpfiles.d/kodi.conf
|
|
|
|
install -Dm0644 $srcdir/polkit.rules $pkgdir/usr/share/polkit-1/rules.d/10-kodi.rules
|
|
|
|
chmod 0700 $pkgdir/usr/share/polkit-1/rules.d/
|
2015-04-04 02:31:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_kodi-imx-eventclients() {
|
|
|
|
pkgdesc="Kodi Event Clients (Freescale i.MX6)"
|
|
|
|
provides=('kodi-eventclients')
|
|
|
|
conflicts=('kodi-eventclients')
|
|
|
|
depends=('cwiid')
|
|
|
|
|
|
|
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" eventclients WII_EXTRA_OPTS=-DCWIID_OLD
|
2015-01-14 07:42:24 +00:00
|
|
|
}
|