wok-6.x view vlc/receipt @ rev 4733
Add: libmagic, libmagic-dev from File package.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Jan 07 11:59:35 2010 +0100 (2010-01-07) |
parents | 9fc3ddc15b30 |
children | f917e0dfdfbd |
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"
20 # Rules to configure and make the package.
21 # Use --enable-ffmpeg to build against shared ffmpeg
22 compile_rules()
23 {
24 cd $src
25 sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
26 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
27 ./configure --prefix=/usr --enable-hal --enable-dbus \
28 --enable-dbus-control --disable-rpath --enable-release \
29 --enable-shared \
30 --enable-dvdread \
31 --enable-qt4 \
32 --enable-alsa --enable-taglib --enable-ogg \
33 --disable-lua --disable-live555 --disable-shout \
34 --disable-dvdnav --disable-fluidsynth --disable-a52 \
35 --disable-smb --disable-gnomevfs --disable-glx \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$PWD/_pkg install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/pixmaps
45 cp -a $_pkg/usr/bin $fs/usr
46 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
47 #Remove extra icons
48 rm $fs/usr/share/$PACKAGE/*.png
49 rm $fs/usr/share/$PACKAGE/*.xpm
50 rm $fs/usr/share/$PACKAGE/*.ico
51 #copy vlc icon
52 cp -a $_pkg/usr/share/$PACKAGE/vlc16x16.png $fs/usr/share/pixmaps
53 mv $fs/usr/share/pixmaps/vlc16x16.png $fs/usr/share/pixmaps/vlc.png
54 #Remove unnecessary fonts
55 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
57 }