aboutsummaryrefslogtreecommitdiffstats
path: root/main/xbmc/APKBUILD
blob: 9901867b00a0fbf221870ee5ebf13ef5efd39e81 (plain)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=xbmc
pkgver=12.2
pkgrel=0
pkgdesc="A software media player and entertainment hub for digital media"
url="http://xbmc.org"
arch="x86_64 x86"
license="GPL"
depends="python hicolor-icon-theme xdpyinfo libcrystalhd unrar mesa-demos curl"
depends_dev="gettext-dev boost-dev mesa-dev glew-dev glu-dev mysql-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 crystalhd-git-grsec-dev udev-dev libcap-dev udisks-dev faac-dev
	libshairport-dev ffmpeg-dev afpfs-ng-dev libcec-dev"
makedepends="$depends_dev automake autoconf m4 libtool swig findutils openjdk6-jre-base
	boost-thread zip gperf cmake coreutils nasm"
subpackages="$pkgname-dev $pkgname-doc"
install=""
options="ldpath-recursive"
source="http://mirrors.xbmc.org/releases/source/$pkgname-$pkgver.tar.gz
	no-snesapu.patch
	xbmc-uclibc.patch"

_builddir="$srcdir/$pkgname-$pkgver"

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
	# fix autotools
	sed -i -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADER/" \
		lib/libdvd/libdvdcss/configure.ac || return 1
}

build() {
	cd "$_builddir"
	./bootstrap || return 1
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-debug \
		--disable-ccache \
		--enable-crystalhd \
		--enable-vaapi \
		--enable-ffmpeg-libvorbis \
		--enable-external-ffmpeg \
		--enable-rtmp \
		--enable-joystick \
		--enable-xrandr \
		--enable-optical-drive \
		--enable-external-libraries \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="489f3877decae4e265ece54f9eaef0ba  xbmc-12.2.tar.gz
5ad388f29ab8f4ca6bc9e2b73bf946ef  no-snesapu.patch
a089ae512a3e990ec85a78a4e79a29f5  xbmc-uclibc.patch"
sha256sums="b2330634fc513d27a44b131bbbe4ca6b61d60a1fe6c7ca27a7dc749df0bcea1c  xbmc-12.2.tar.gz
3c04c2cd6909cfb587b194e6c5a3025f1a3f03a0c5178ad70541ff7e69915935  no-snesapu.patch
dac0eae8a9db72c6f5934f6c51b24839a50caba61bbf851ed088f88b7799a6f7  xbmc-uclibc.patch"
sha512sums="d6812886b4d1a5c28c8150b164d714f8855ccb1ac4e74811c9eb03d09e12a6f05bedd3c034132ae79e0bff66efd54ced9c2c1140da6b4ad7b82dbb90fa3d1c39  xbmc-12.2.tar.gz
8b2b3159b536719bad7c00f2eb51c4778f8e6c049cfe07e2555a530ad8587ca7b83623e1b5f40220d2e490e38442f893f87496620aa94da27d37a8bddc72f434  no-snesapu.patch
2a37b6c7855071d36204df340fdd3cdfd5c4784a00740799d57dd8a705826ce658b944e021f399e98bf9449387909ee5b1f9f3db96c55490af5d996255ac3554  xbmc-uclibc.patch"