aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xbmc/APKBUILD
blob: dd639106d087d3e4174a303903b75837e1438cbd (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=xbmc
pkgver=12_beta1
pkgrel=4
pkgdesc="A software media player and entertainment hub for digital media"
url="http://xbmc.org"
arch="x86_64"
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
	libusb-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"
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="https://github.com/xbmc/xbmc/archive/Frodo_beta1.tar.gz
	xbmc-uclibc.patch"

_pvr_addons="git://github.com/opdenkamp/xbmc-pvr-addons.git"

_builddir="$srcdir/xbmc-Frodo_beta1"

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
	#git clone $_pvr_addons pvr-addons || 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 \
		--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="1d1d81073320cd8a270e1465b8f65a59  Frodo_beta1.tar.gz
a089ae512a3e990ec85a78a4e79a29f5  xbmc-uclibc.patch"