summaryrefslogtreecommitdiffstats
path: root/xine-lib/Pkgfile
blob: a4bb2b50b693aaf2526872a35d61e3c8a4b22dd6 (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
# Description: Contient la librairie xine 
# URL: http://xinehq.de/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: mesa3d, xorg-libxvmc, xorg-libxcb, faad2, libcaca, speex, libmng, esound, libvorbis, flac, libtheora, sdl, ffmpeg, vcdimager, wavpack, samba3, librsvg, imagemagick, libtool
# Run on: mesa3d,xorg-libxvmc,xorg-libxcb,faad2,libcaca,speex,libmng,esound,libvorbis,flac,libtheora,sdl,ffmpeg,vcdimager,wavpack,samba3,librsvg,imagemagick

name=xine-lib
version=1.1.19
release=3
source=(http://downloads.sourceforge.net/xine/$name-$version.tar.bz2
 	http://downloads.sourceforge.net/sourceforge/xine/compat.c
	xine-lib-1.1.1-configure-no-mcpu-march.patch
	xine-lib-1.1.19-include.patch
	xine-lib-1.1.19-ffmpeg.patch)

build() {
	cd $name-$version

	cp ../compat.c src/dxr3/compat.c
	patch -p0 < ../xine-lib-1.1.1-configure-no-mcpu-march.patch 
	patch -p0 < ../xine-lib-1.1.19-include.patch
	patch -p0 < ../xine-lib-1.1.19-ffmpeg.patch

	libtoolize --force --copy
	aclocal -I m4
	autoconf
	automake --add-missing

	./configure  --prefix=/usr \
		--with-w32-path=/usr/lib/codecs \
		--with-xv-path=/usr/lib \
		--with-xxmc-path=/usr/lib \
		--with-xvmc-path=/usr/lib \
		--with-libflac \
		--with-wavpack \
		--with-xcb \
		--without-arts \
		--without-speex \
		--disable-gnomevfs \
		--without-pulseaudio \
		--disable-aalib \
		--disable-modplug \
		--with-external-ffmpeg \
		--without-jack
	make
	make DESTDIR=$PKG install
}