aboutsummaryrefslogtreecommitdiffstats
path: root/unstable/xbmc/APKBUILD
blob: 8edcf46e9ca75e665f7a92d1a073bec58fda5f46 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=xbmc
pkgver=10.1
pkgrel=0
pkgdesc="A cross-platform Media Center"
url="http://xbmc.org"
arch="all"
license="Custom GPL"
depends=
depends_dev="alsa-lib-dev autoconf automake boost-dev bzip2-dev cmake curl-dev 
	dbus-dev enca-dev faac-dev faad2-dev flac-dev fontconfig-dev fribidi-dev 
	glew-dev jasper-dev jpeg-dev libcdio-dev libiconv-dev libogg-dev 
	libmad-dev libmms-dev libmodplug-dev libmpeg2-dev libpng-dev 
	libsamplerate-dev libssh-dev libvdpau libvorbis-dev libxinerama-dev 
	libxmu-dev libxrandr-dev libxt-dev libxtst-dev lzo-dev mesa-dev mysql-dev 
	pcre-dev samba-dev sdl-dev sdl_image-dev sdl_mixer-dev sqlite-dev 
	tiff-dev wavpack-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://mirrors.xbmc.org/releases/source/$pkgname-$pkgver.tar.gz
	xbmc-10.1-gcc-4.6.patch
	xbmc-10.0-python-2.7.patch
	"


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

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	find xbmc/cores/dvdplayer/Codecs -name Makefile.in \
	  -exec sed -i 's: --soname,: -Wl,--soname,:' {} \; || return 1
}

build() {
	cd "$_builddir"
	unset LDFLAGS; LDFLAGS="-Wl,--hash-style=gnu"
	./bootstrap
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-vdpau \
		--disable-openmax \
		--disable-joystick \
		--disable-hal \
		--disable-avahi \
		--enable-external-libraries \
		--disable-external-liba52 \
		--disable-external-libdts \
		--disable-external-ffmpeg \
		--enable-external-python \
		--disable-non-free \
		--disable-webserver \
		--disable-debug

	make || return 1
	make -C lib/addons/script.module.pil || return 1
	make -C lib/addons/script.module.pysqlite || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="391398126cb86a4f6fbd0b7037997d84  xbmc-10.1.tar.gz
d88b854d6f356a74d7658cd1f74a4695  xbmc-10.1-gcc-4.6.patch
62d46c8b44e4e5313a10922209cb14f8  xbmc-10.0-python-2.7.patch"