wok view vlc/receipt @ rev 12592
gob2: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 28 22:29:08 2012 +0200 (2012-04-28) |
parents | dd4c3fd79c58 |
children | 8862a09ab766 |
line source
1 # SliTaz package receipt.
3 PACKAGE="vlc"
4 VERSION="1.1.13"
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 jack-audio-connection-kit"
18 BUILD_DEPENDS="libmtp-dev librsvg-dev Qt4-dev libgcrypt-dev expat \
19 expat-dev xorg-dev-proto zlib zlib-dev libogg libogg-dev \
20 util-linux-uuid-dev pkg-config libxcb-dev dbus-dev \
21 libdvdread-dev libmad-dev ffmpeg-dev faad2-dev fribidi-dev portaudio-dev \
22 alsa-lib-dev libcroco-dev jack-audio-connection-kit-dev tar pango-dev \
23 libxml2-dev"
25 # Rules to configure and make the package.
26 # Use --enable-ffmpeg to build against shared ffmpeg
27 compile_rules()
28 {
29 cd $src
30 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
31 # Be busybox comptible...
32 sed -i 's/wc -m/wc -c/' configure*
33 #sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
34 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
35 grep -qs 'define u8' src/interface/intf_eject.c ||
36 sed -i 's|# *include <scsi/scsi.h>|#define u8 __u8\n&|' \
37 src/interface/intf_eject.c
38 ./configure --prefix=/usr --enable-hal --enable-dbus \
39 --enable-dbus-control --disable-rpath --enable-release \
40 --enable-shared \
41 --enable-dvdread \
42 --enable-qt4 \
43 --enable-alsa --enable-taglib --enable-ogg --enable-faad \
44 --disable-lua --disable-live555 --disable-shout \
45 --disable-dvdnav --disable-fluidsynth --disable-a52 \
46 --disable-smb --disable-gnomevfs --disable-glx --disable-upnp \
47 $CONFIGURE_ARGS &&
48 make &&
49 make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/share/pixmaps
56 cp -a $_pkg/usr/bin $fs/usr
57 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
58 #Remove extra icons
59 #rm $fs/usr/share/$PACKAGE/*.png
60 #rm $fs/usr/share/$PACKAGE/*.xpm
61 rm $fs/usr/share/$PACKAGE/*.ico
62 #copy vlc icon
63 cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
64 #Remove unnecessary fonts
65 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
67 }