wok-next view vlc/receipt @ rev 10603

vlc: update bdeps (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 26 16:08:53 2011 +0200 (2011-05-26)
parents 003d3f3b2ce4
children 2b1deabaae77
line source
1 # SliTaz package receipt.
3 PACKAGE="vlc"
4 VERSION="1.1.9"
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-devi ffmpeg-dev faad2-dev fribidi-dev portaudio-dev \
21 alsa-lib 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 }