summaryrefslogtreecommitdiffstats
path: root/vlc-plugin/Pkgfile
blob: 555682cb814678e4707a8ef8bdb164a03cb2e3ee (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
# Description: Plugin vlc pour firefox
# URL: http://www.videolan.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libshout, xulrunner, 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

# Run on: libshout,lua,xulrunner,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

name=vlc-plugin
version=1.1.9
release=2

source=(http://download.videolan.org/pub/videolan/vlc/$version/vlc-$version.tar.bz2 )

build() {
	cd vlc-$version

	sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/TTF/DejaVuSerif-Bold.ttf:' modules/misc/freetype.c
  	[ "${CARCH}" = "i686" ] && EXTRAFEATURES="--enable-loader --enable-live555 --with-live555-tree=/usr/lib/live-media"
  	[ "${CARCH}" = "x86_64" ] && EXTRAFEATURES="--enable-fast-install --enable-live555 --with-live555-tree=/usr/lib/live-media"

	./configure --prefix=/usr \
              --enable-libass \
              --enable-dvdread \
              --enable-dvdnav \
              --disable-rpath \
	      --disable-zvbi \
              --enable-qt4 \
              --enable-faad \
              --enable-alsa \
              --enable-skins2 \
              --enable-dvb \
              --enable-v4l \
              --enable-theora \
              --enable-flac \
              --enable-snapshot \
              --enable-hal \
              --enable-dbus \
              --enable-ogg \
              --enable-dbus-control \
              --enable-shared \
              --enable-nls \
              --enable-lirc \
              --enable-shout \
              --enable-pvr \
              --enable-release \
              --enable-mozilla \
              --enable-vlc \
	      --program-suffix= \
	      --enable-realrtsp ${EXTRAFEATURES}
	CFLAGS="-fPIC"

	make
	make -C src DESTDIR=$PKG install-libLTLIBRARIES
	make -C projects/mozilla DESTDIR=$PKG/ install

#	make DESTDIR=$PKG install
	rm -r $PKG/usr
 	mkdir -p $PKG/usr/lib/firefox/plugins/
  	install -m755 projects/mozilla/.libs/libvlcplugin.so $PKG/usr/lib/firefox/plugins/libvlcplugin.so
}