aboutsummaryrefslogtreecommitdiffstats
path: root/community/kodi/APKBUILD
blob: fe5a9735daf58d88d0c959c3afb12b757074921c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kodi
pkgver=16.1
_realname=Jarvis
pkgrel=1
pkgdesc="A software media player and entertainment hub for digital media"
url="http://kodi.tv"
arch="x86 x86_64"
license="GPL"
depends="python hicolor-icon-theme xdpyinfo unrar mesa-demos curl py-pillow
	py-bluez py-simplejson"
depends_dev="gettext-dev boost-dev mesa-dev glew-dev glu-dev mariadb-dev
	libass-dev libogg-dev libvorbis-dev libmodplug-dev curl-dev flac-dev
	libgcrypt-dev bzip2-dev tiff-dev lzo-dev yajl-dev bluez-dev tinyxml-dev
	fribidi-dev sqlite-dev libpng-dev libcdio-dev pcre-dev freetype-dev
	taglib-dev jasper-dev alsa-lib-dev dbus-dev sdl-dev sdl_image-dev
	lame-dev libmicrohttpd-dev libbluray-dev avahi-dev libxrandr-dev
	libxt-dev libxmu-dev samba-dev gawk libssh-dev libva-dev libnfs-dev
	yasm-dev libmpeg2-dev libmad-dev libsamplerate-dev rtmpdump-dev
	libjpeg-turbo-dev eudev-dev libcap-dev udisks2-dev faac-dev gnutls-dev
	libxslt-dev libplist-dev libshairport-dev ffmpeg2.8-dev afpfs-ng-dev
	libcec-dev x264-dev bsd-compat-headers curl-dev python2-dev dcadec-dev"
makedepends="$depends_dev automake autoconf m4 libtool swig findutils
	openjdk8-jre-base boost-thread zip gperf cmake coreutils nasm tar
	git"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
install=""
replaces="xbmc"
options="ldpath-recursive"
source="https://github.com/xbmc/xbmc/archive/$pkgver-$_realname.tar.gz
	fix-musl.patch
	fix-fileemu.patch
	fortify-source-fix.patch
	remove-filewrap.patch
	add-missing-includes.patch
	set-default-stacksize.patch
	"

builddir="$srcdir/xbmc-$pkgver-$_realname"

prepare() {
	local i
	cd "$builddir"
	for i in $source; do
		case $i in
			*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	MAKEFLAGS="-j1" ./bootstrap || return 1
	mkdir -p crossguid
	make -j1 -C tools/depends/target/crossguid PREFIX="$PWD"/crossguid
}

build() {
	cd "$builddir"
	LDFLAGS="$LDFLAGS -L$PWD/crossguid/lib" \
	CXXFLAGS="$CXXFLAGS -I$PWD/crossguid/include" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-non-free \
		--disable-debug \
		--with-ffmpeg=shared \
		--enable-static=no \
		--enable-libbluray \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="79358ad5f77f42c5498a9412d5a78dd5  16.1-Jarvis.tar.gz
95651684aaabac248e30203980b6acf2  fix-musl.patch
69049c53ffc4a403ccff3bba77e47793  fix-fileemu.patch
a769a0018f58cb4f5ea865dcabbe2bed  fortify-source-fix.patch
cb116c5b55438222db308d4b6b7bc6ff  remove-filewrap.patch
ed12b2515c259c87ea622e04df78dfe5  add-missing-includes.patch
deff09ba18d3bc4674d1c195a40ea399  set-default-stacksize.patch"
sha256sums="7d82c8aff2715c83deecdf10c566e26105bec0473af530a1356d4c747ebdfd10  16.1-Jarvis.tar.gz
c2da00fd415eb4b3d1146c3534aa4f36f68a21bd0efae41b2a36e717efec8ae8  fix-musl.patch
cd566ae87c0ecc3e7cbeee9d80b042ae937d4f243413293616bd31f24efffec7  fix-fileemu.patch
b5b6636e77dc11bd3a78d811e60cd98b6929e018b8f32ae2ee100a00e5535bea  fortify-source-fix.patch
11f537c6d5a2089053c80600b4dc1d6530faaee2141eba1a7eb0b941385ba9f1  remove-filewrap.patch
0ea70141b3b80ac586e941c97806f819b562f1d5166d0fe045e28dff0b62d739  add-missing-includes.patch
212cb3d9861b2b57d9929c2046917c5789d4bacf7849ec3f7c5a4740693349b2  set-default-stacksize.patch"
sha512sums="fe7012ea899906d418faa19af5066e5976d092745e91030106ea4f75399ad67a4bb4e4f384605ab7b2d9e24174aab2e243531f31d79ff5ae33564361b25eb073  16.1-Jarvis.tar.gz
3f3c5183f1b3181e60867d3749633e5e2bb435daf6dfd89c365ed40eea9d8f6d0af8e0d0599553a23a235b889eb3d8882872b38159edcfdfa40aa93d9f6b3fd6  fix-musl.patch
d2c284a7156a842e23a1089053cb28af1a825fddbeb5b5e8d4a8f2d8b37a7861a7082529e603cfe56eb2c7fd35c4ce1aa7e9f224690ab42689c9886d60dafbc7  fix-fileemu.patch
5e972e6f6ad13f5dc8ac5e9d593171988e0cc93879178aa7621af44d41b89b5b86429af4d0c2e6516b626d042f247bcf0b1f957f647138a03ce73c5c7b3311b9  fortify-source-fix.patch
cdac558134441633a83a346c2d5f5d69a1dea10276d5a46d18433d5c94937528610a662749db0909685e6bf42277e1318726409b572390f3b8ebea61209ee5c9  remove-filewrap.patch
378a0e8fd9676dd76cfb30d62085b953625dd0185e2673de2331fc7ae0802dae4f56d0b74e878e4d313942fda8831e9669bff284dbe974db5ad16fe07af884d6  add-missing-includes.patch
3fd97e9fa22e59b3cd30fdad19474e177a9d062598765fa8ba4955f1da4e10581ff1463dd0794d3ee3cefebf753007a4d445b2bc47a257574d3927c1408b8876  set-default-stacksize.patch"