wok-6.x view vlc/receipt @ rev 11616
Up mc (4.7.5.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 23 12:24:32 2012 +0100 (2012-01-23) |
parents | c2353f85a1d4 |
children | 16b97ec782a4 |
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-ng-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"
24 # Rules to configure and make the package.
25 # Use --enable-ffmpeg to build against shared ffmpeg
26 compile_rules()
27 {
28 cd $src
29 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
30 # Be busybox comptible...
31 sed -i 's/wc -m/wc -c/' configure*
32 #sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
33 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
34 grep -qs 'define u8' src/interface/intf_eject.c ||
35 sed -i 's|# *include <scsi/scsi.h>|#define u8 __u8\n&|' \
36 src/interface/intf_eject.c
37 ./configure --prefix=/usr --enable-hal --enable-dbus \
38 --enable-dbus-control --disable-rpath --enable-release \
39 --enable-shared \
40 --enable-dvdread \
41 --enable-qt4 \
42 --enable-alsa --enable-taglib --enable-ogg --enable-faad \
43 --disable-lua --disable-live555 --disable-shout \
44 --disable-dvdnav --disable-fluidsynth --disable-a52 \
45 --disable-smb --disable-gnomevfs --disable-glx --disable-upnp \
46 $CONFIGURE_ARGS &&
47 make &&
48 make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share/pixmaps
55 cp -a $_pkg/usr/bin $fs/usr
56 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
57 #Remove extra icons
58 #rm $fs/usr/share/$PACKAGE/*.png
59 #rm $fs/usr/share/$PACKAGE/*.xpm
60 rm $fs/usr/share/$PACKAGE/*.ico
61 #copy vlc icon
62 cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
63 #Remove unnecessary fonts
64 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
66 }