Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 100 lines (79 sloc) 4.082 kb
d7736c5 WarheadsSE aur/xmbc-rbp-git (v6h only)
WarheadsSE authored
1 # Contributor tomasgroth at yahoo.dk
2 # Contributor WarheadsSE <max@warheads.net>
3 pkgname=xbmc-rbp-git
6ecd901 tgc-dk Fix configure options.
tgc-dk authored
4 pkgver=20121006
f2782c8 Kevin Mihelich xbmc-rpb-git to 20120923-1
kmihelich authored
5 pkgrel=1
d7736c5 WarheadsSE aur/xmbc-rbp-git (v6h only)
WarheadsSE authored
6 buildarch=16
7
8 pkgdesc="A software media player and entertainment hub for digital media for the Raspberry Pi"
9 arch=('armv6h')
10 url="http://xbmc.org"
11 license=('GPL' 'custom')
6ecd901 tgc-dk Fix configure options.
tgc-dk authored
12 depends=('hicolor-icon-theme' 'fribidi' 'lzo2' 'smbclient' 'libtiff' 'libpng' 'libcdio' 'yajl' 'libmysqlclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'rtmpdump' 'unzip' 'xorg-xdpyinfo' 'libbluray' 'libnfs' 'afpfs-ng' 'libshairport' 'avahi' 'bluez' 'jasper' 'tinyxml' 'raspberrypi-firmware' 'sdl_image' 'libcec-rpi' 'libplist' 'swig')
13 makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'bluez' 'git' 'autoconf' 'openjdk6')
d7736c5 WarheadsSE aur/xmbc-rbp-git (v6h only)
WarheadsSE authored
14 optdepends=(
15 'lirc: remote controller support'
16 'udisks: automount external drives'
17 'upower: used to trigger suspend functionality'
18 'unrar: access compressed files without unpacking them'
19 )
20 source=()
21
22 sha256sums=()
23
24 _gitroot="git://github.com/xbmc"
427a565 WarheadsSE aur/xbmc-rbp-git to match AUR
WarheadsSE authored
25 _gitname="xbmc"
d7736c5 WarheadsSE aur/xmbc-rbp-git (v6h only)
WarheadsSE authored
26
27 _prefix=/usr
28
29 build() {
30 cd "${srcdir}"
31
32 msg2 "Connecting to GIT server..."
33 if [[ -d "${_gitname}" ]]; then
34 cd "${_gitname}" && git pull origin
35 msg2 "The local files are updated."
36 else
60054c0 Kevin Mihelich aur/xbmc-rpb-git --depth 1
kmihelich authored
37 git clone --depth 1 "${_gitroot}/${_gitname}"
d7736c5 WarheadsSE aur/xmbc-rbp-git (v6h only)
WarheadsSE authored
38 fi
39 msg2 "GIT checkout done or server timeout."
40
41 cd "${srcdir}/${_gitname}"
42
43 # fix lsb_release dependency
44 sed -i -e 's:/usr/bin/lsb_release -d:cat /etc/arch-release:' xbmc/utils/SystemInfo.cpp
45
46 # fix sse2 compiler flags
47 sed -i -e 's/-DSQUISH_USE_SSE=2 -msse2//g' lib/libsquish/Makefile.in
48
49 # Bootstrapping XBMC
50 ./bootstrap
51
52 # Configuring XBMC
53 export PYTHON_VERSION=2 # external python v2
54 # we need to compile for armv6 instead of armv5 to avoid problems compiling assembler code
55 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"
56 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"
57 export LDFLAGS="$LDFLAGS -L/opt/vc/lib"
58 # export MAKEFLAGS="-j1"
59 ./configure --prefix=$_prefix --exec-prefix=$_prefix \
60 --enable-gles --disable-sdl --disable-x11 --disable-xrandr --disable-openmax \
61 --disable-optical-drive --disable-dvdcss --disable-joystick --disable-debug \
62 --disable-crystalhd --disable-vtbdecoder --disable-vaapi --disable-vdpau \
6ecd901 tgc-dk Fix configure options.
tgc-dk authored
63 --disable-pulse --disable-projectm --with-platform=raspberry-pi --enable-optimizations \
64 --enable-libcec --enable-player=omxplayer
d7736c5 WarheadsSE aur/xmbc-rbp-git (v6h only)
WarheadsSE authored
65
66 make
67 }
68
69 package() {
70 cd "${srcdir}/${_gitname}"
71 # Running make install
72 make DESTDIR="${pkgdir}" install
73
74 # run feh with python2
75 sed -i -e 's/python/python2/g' ${pkgdir}${_prefix}/bin/xbmc
76
77 # Remove checks that doesn't apply to the raspberry pi
78 head -n 171 "${pkgdir}${_prefix}/share/xbmc/FEH.py" > "${pkgdir}${_prefix}/share/xbmc/FEH.py.new"
79 mv "${pkgdir}${_prefix}/share/xbmc/FEH.py.new" "${pkgdir}${_prefix}/share/xbmc/FEH.py"
80
81 # lsb_release fix
82 sed -i -e 's/which lsb_release > \/dev\/null/\[ -f \/etc\/arch-release ]/g' "${pkgdir}${_prefix}/bin/xbmc"
83 sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/cat \/etc\/arch-release/g" "${pkgdir}${_prefix}/bin/xbmc"
84
85 # Tools
86 install -D -m 0755 "${srcdir}/${_gitname}/tools/TexturePacker/TexturePacker" "${pkgdir}${_prefix}/share/xbmc/"
87
88 # Licenses
89 install -d -m 0755 "${pkgdir}${_prefix}/share/licenses/${pkgname}"
90 for licensef in LICENSE.GPL copying.txt; do
91 mv "${pkgdir}${_prefix}/share/doc/xbmc/${licensef}" "${pkgdir}${_prefix}/share/licenses/${pkgname}"
92 done
93
94 # Create lib links
95 mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
96
97 # ensure we can load libs
98 echo "/opt/vc/lib/" > "${pkgdir}"/etc/ld.so.conf.d/xbmc-rbp-git.conf
99 }
Something went wrong with that request. Please try again.