aboutsummaryrefslogtreecommitdiffstats
path: root/main/xbmc/APKBUILD
blob: 3038c9682aab611707cd69afb623c4bba220e404 (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
82
83
84
85
86
87
88
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xbmc
pkgver=12.3
pkgrel=1
pkgdesc="A software media player and entertainment hub for digital media"
url="http://xbmc.org"
arch="x86 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
	yasm-dev libmpeg2-dev libmad-dev libsamplerate-dev rtmpdump-dev
	libjpeg-turbo-dev libcrystalhd-dev udev-dev libcap-dev udisks-dev faac-dev
	libshairport-dev ffmpeg1-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
	samba4.patch
	xbmc-uclibc.patch"

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

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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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="7ae385ebf8e5cfcb917393235e6efbdb  xbmc-12.3.tar.gz
5ad388f29ab8f4ca6bc9e2b73bf946ef  no-snesapu.patch
32d11612e948622b195950b93371027c  samba4.patch
31ab49159268b20ecec0b73eeefbe15b  xbmc-uclibc.patch"
sha256sums="3e15c960d034efdea5f92a7b74716cb48094842d077b076025fd8640754ede73  xbmc-12.3.tar.gz
3c04c2cd6909cfb587b194e6c5a3025f1a3f03a0c5178ad70541ff7e69915935  no-snesapu.patch
de0c56f7ff84bc891d758dba6b3a68d20443e34357cd5dc89e0d4675bfee312c  samba4.patch
1af5b669f901108a48a007b6e657820ebe7375f7876bf63a9a29229e9e67b423  xbmc-uclibc.patch"
sha512sums="abe5333f940460a2d40b04a4821f932b44c7605e0d4954e48781317aa25ee04e102b051165842094c5804024c637ca30506773dc3319aba7ab6dbfbe1973ccaa  xbmc-12.3.tar.gz
8b2b3159b536719bad7c00f2eb51c4778f8e6c049cfe07e2555a530ad8587ca7b83623e1b5f40220d2e490e38442f893f87496620aa94da27d37a8bddc72f434  no-snesapu.patch
c84cefc90450bc55710ff2f5d12e13b9cdfaf6342647db9acb4c285b63f9d5712956a34c4725f36f39751f2f17c2561f8b5f7c409cd53358567e5915f7bef6bd  samba4.patch
cba529e5c5f4395fa3858a24259df0688d1a94dbfd5dc4ee5603b72b9e039611cd8a5bf2ccc5f7a4e78dbfb3e557f5fbc6c93e9630c69186e94044e755f39310  xbmc-uclibc.patch"