wok-next view vlc/receipt @ rev 5087
phpldapadmin: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 15 14:58:37 2010 +0100 (2010-03-15) |
parents | 248448d3560d |
children | d5cc0560589c |
line source
1 # SliTaz package receipt.
3 PACKAGE="vlc"
4 VERSION="0.9.9a"
5 CATEGORY="multimedia"
6 SHORT_DESC="MPEG, VCD/DVD, and DivX player"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="libvlc libmad libxml2 ffmpeg libdvdread libcddb libproxy taglib \
9 libQtCore libQtGui alsa-lib hal dbus \
10 fribidi speex libraw1394 libmodplug flac \
11 libmpeg2 libnotify libsdl-image libvorbis libgl libglu sysfsutils xorg-libXv"
12 BUILD_DEPENDS="libmad-dev libxml2-dev ffmpeg-dev libdvdread-dev libcddb-dev taglib-dev libproxy-dev Qt4-dev \
13 hal-dev dbus-dev alsa-lib-dev libgcrypt-dev libproxy expat-dev xorg-dev-proto zlib-dev \
14 taglib fribidi fribidi-dev speex speex-dev libraw1394 libraw1394-dev libmodplug libmodplug-dev flac flac-dev \
15 libmpeg2 libmpeg2-dev libogg-dev"
16 TARBALL="$PACKAGE-$VERSION.tar.bz2"
17 WEB_SITE="http://www.videolan.org/vlc/"
18 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
19 TAGS="audio video multimedia movie player"
21 # Rules to configure and make the package.
22 # Use --enable-ffmpeg to build against shared ffmpeg
23 compile_rules()
24 {
25 cd $src
26 sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
27 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
28 ./configure --prefix=/usr --enable-hal --enable-dbus \
29 --enable-dbus-control --disable-rpath --enable-release \
30 --enable-shared \
31 --enable-dvdread \
32 --enable-qt4 \
33 --enable-alsa --enable-taglib --enable-ogg \
34 --disable-lua --disable-live555 --disable-shout \
35 --disable-dvdnav --disable-fluidsynth --disable-a52 \
36 --disable-smb --disable-gnomevfs --disable-glx \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$PWD/_pkg install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/pixmaps
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
48 #Remove extra icons
49 rm $fs/usr/share/$PACKAGE/*.png
50 rm $fs/usr/share/$PACKAGE/*.xpm
51 rm $fs/usr/share/$PACKAGE/*.ico
52 #copy vlc icon
53 cp -a $_pkg/usr/share/$PACKAGE/vlc16x16.png $fs/usr/share/pixmaps
54 mv $fs/usr/share/pixmaps/vlc16x16.png $fs/usr/share/pixmaps/vlc.png
55 #Remove unnecessary fonts
56 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
58 }