wok view vlc/receipt @ rev 6498
Up: libv4l, libv4l-dev to 0.8.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 01 04:09:43 2010 +0000 (2010-10-01) |
parents | d6d029f9e97f |
children | 2d4f5d74c752 |
line source
1 # SliTaz package receipt.
3 PACKAGE="vlc"
4 VERSION="1.1.4"
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 libavc1394 libupnp \
11 libmpeg2 libnotify libsdl-image libvorbis libgl libglu sysfsutils xorg-libXv faad2 glibc-locale"
12 BUILD_DEPENDS="libmad libmad-dev libxml2 libxml2-dev ffmpeg-dev libavc1394 libavc1394-dev libdvdread libdvdread-dev libcddb libcddb-dev taglib taglib-dev libproxy-dev Qt4-dev \
13 hal-dev dbus-dev alsa-lib-dev libgcrypt-dev libupnp libupnp-dev libproxy expat expat-dev xorg-dev-proto zlib zlib-dev \
14 fribidi fribidi-dev speex speex-dev libraw1394 libraw1394-dev libmodplug libmodplug-dev flac flac-dev \
15 libmpeg2 libmpeg2-dev libogg libogg-dev faad2 faad2-dev glibc-locale util-linux-ng-uuid-dev libsdl-image libsdl-image-dev xorg-libXv-dev pkg-config libxcb-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"
19 TAGS="audio video multimedia movie player"
21 # Rules to configure and make the package.
22 # Use --enable-ffmpeg to build against shared ffmpeg
23 compile_rules()
24 {
25 cd $src
26 # Be busybox comptible...
27 sed -i 's/wc -m/wc -c/' configure*
28 sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
29 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
30 grep -qs 'define u8' src/interface/intf_eject.c ||
31 sed -i 's|# *include <scsi/scsi.h>|#define u8 __u8\n&|' \
32 src/interface/intf_eject.c
33 ./configure --prefix=/usr --enable-hal --enable-dbus \
34 --enable-dbus-control --disable-rpath --enable-release \
35 --enable-shared \
36 --enable-dvdread \
37 --enable-qt4 \
38 --enable-alsa --enable-taglib --enable-ogg --enable-faad \
39 --disable-lua --disable-live555 --disable-shout \
40 --disable-dvdnav --disable-fluidsynth --disable-a52 \
41 --disable-smb --disable-gnomevfs --disable-glx \
42 $CONFIGURE_ARGS &&
43 make &&
44 make DESTDIR=$PWD/_pkg install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/pixmaps
51 cp -a $_pkg/usr/bin $fs/usr
52 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
53 #Remove extra icons
54 #rm $fs/usr/share/$PACKAGE/*.png
55 #rm $fs/usr/share/$PACKAGE/*.xpm
56 rm $fs/usr/share/$PACKAGE/*.ico
57 #copy vlc icon
58 cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
59 #Remove unnecessary fonts
60 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
62 }