summaryrefslogtreecommitdiffstats
path: root/vlc/Pkgfile
blob: 5296df72680d282ec6a5beaf8b7c868b0a1dec57 (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
# Description: Lecteur multimédia VLC
# URL: http://www.videolan.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libshout, lua, ffmpeg, flac, freetype, fribidi, lame, libcdio, libdvbpsi, libdvdcss, libdvdread, libdvdnav, libebml, libiconv, libid3tag, libmad, libmatroska, libogg, libpng, speex, libtheora, libvorbis, libxml2, libmpeg2, openslp, portaudio, vcdimager, x264, aalib, libcaca, libmpeg2, libopendaap, libmp4v2, live, libdca, qt, libnotify, libmpcdec, librsvg, libraw1394, libavc1394, samba3, taglib, gnutls, pulseaudio, gnome-vfs, vdpau-video, sdl_image
# Run on: libshout,lua,ffmpeg,flac,freetype,fribidi,lame,libcdio,libdvbpsi,libdvdcss,libdvdread,libdvdnav,libebml,libiconv,libid3tag,libmad,libmatroska,libogg,libpng,speex,libtheora,libvorbis,libxml2,libmpeg2,openslp,portaudio,lame,vcdimager,x264,aalib,libcaca,libmpeg2,libopendaap,libmp4v2,live,libdca,sdl_image,qt,libnotify,libmpcdec,librsvg,libraw1394,libavc1394,samba3,taglib,gnutls,pulseaudio,gnome-vfs,vdpau-video,sdl_image

name=vlc
version=2.1.0
release=20120808-0013-1
#source=(http://download.videolan.org/pub/videolan/vlc/$version/vlc-$version.tar.xz)
source=(http://nightlies.videolan.org/build/source/vlc-$version-${release%-*}.tar.xz)

build() {
	cd vlc-$version-git

	sed -i -e 's|truetype/freefont/FreeSerifBold.ttf|TTF/DejaVuSerif-Bold.ttf|' modules/text_renderer/freetype.c

	case `uname -m` in
		x86_64)
			export EXTRAFEATURES="--enable-fast-install"
			export CFLAGS="${CFLAGS} -fPIC";;
		i?86)
			export EXTRAFEATURES="--enable-loader";;
	esac

	./configure --prefix=/usr \
		--disable-rpath \
		--enable-gnomevfs \
		--enable-libass \
		--enable-dvdread \
		--enable-dvdnav \
		--enable-qt \
		--enable-faad \
		--enable-alsa \
		--enable-skins2 \
		--enable-theora \
		--enable-flac \
		--enable-dbus \
		--enable-ogg \
		--enable-dbus-control \
		--enable-shared \
		--enable-nls \
		--enable-lirc \
		--enable-shout \
		--enable-pvr \
		--enable-vlc \
		--enable-x264 \
		--enable-libva \
		--enable-gnutls \
		--enable-pulse \
		--enable-bonjour \
		--enable-aa \
		--enable-vcdx \
		--enable-realrtsp \
		--enable-live555 \
		--enable-media-library \
		--with-kde-solid=/usr/share/kde4/apps/solid/actions/ \
		--program-suffix= \
		${EXTRAFEATURES}

	./compile V=0
	./compile V=0 DESTDIR=$PKG install

	for res in 16 32 48 128; do
		install -D -m644 share/icons/${res}x${res}/vlc.png $PKG/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png
	done
}