wok-current view vlc/receipt @ rev 11393
Fix: polkit needs intltool to be compiled
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Dec 10 05:13:50 2011 +0100 (2011-12-10) |
parents | 73d885baa027 |
children | 283602d7e701 |
line source
1 # SliTaz package receipt.
3 PACKAGE="vlc"
4 VERSION="1.1.10"
5 CATEGORY="multimedia"
6 SHORT_DESC="MPEG, VCD/DVD, and DivX player"
7 MAINTAINER="jozee@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.videolan.org/vlc/"
10 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
11 TAGS="audio video multimedia movie player"
13 DEPENDS="libvlc libmad libxml2 ffmpeg libdvdread libcddb libproxy taglib \
14 libQtCore libQtGui alsa-lib hal dbus fribidi speex libraw1394 libmodplug \
15 flac libavc1394 libmpeg2 libnotify libsdl-image libvorbis mesa \
16 libglu-mesa sysfsutils zvbi libass xorg-libXv faad2 glibc-locale"
17 BUILD_DEPENDS="libmtp-dev librsvg-dev Qt4-dev libgcrypt-dev expat \
18 expat-dev xorg-dev-proto zlib zlib-dev libogg libogg-dev \
19 util-linux-ng-uuid-dev pkg-config libxcb-dev dbus-dev \
20 libdvdread-dev libmad-dev ffmpeg-dev faad2-dev fribidi-dev portaudio-dev \
21 alsa-lib-dev libcroco-dev"
23 # Rules to configure and make the package.
24 # Use --enable-ffmpeg to build against shared ffmpeg
25 compile_rules()
26 {
27 cd $src
28 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
29 # Be busybox comptible...
30 sed -i 's/wc -m/wc -c/' configure*
31 #sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
32 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
33 grep -qs 'define u8' src/interface/intf_eject.c ||
34 sed -i 's|# *include <scsi/scsi.h>|#define u8 __u8\n&|' \
35 src/interface/intf_eject.c
36 ./configure --prefix=/usr --enable-hal --enable-dbus \
37 --enable-dbus-control --disable-rpath --enable-release \
38 --enable-shared \
39 --enable-dvdread \
40 --enable-qt4 \
41 --enable-alsa --enable-taglib --enable-ogg --enable-faad \
42 --disable-lua --disable-live555 --disable-shout \
43 --disable-dvdnav --disable-fluidsynth --disable-a52 \
44 --disable-smb --disable-gnomevfs --disable-glx --disable-upnp \
45 $CONFIGURE_ARGS &&
46 make &&
47 make install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/share/pixmaps
54 cp -a $_pkg/usr/bin $fs/usr
55 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
56 #Remove extra icons
57 #rm $fs/usr/share/$PACKAGE/*.png
58 #rm $fs/usr/share/$PACKAGE/*.xpm
59 rm $fs/usr/share/$PACKAGE/*.ico
60 #copy vlc icon
61 cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
62 #Remove unnecessary fonts
63 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
65 }