wok-6.x view vlc/receipt @ rev 10255

Add rake.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 21 04:00:00 2011 +0000 (2011-05-21)
parents d8583c9f36c4
children 71f47827e1ad
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"
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 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
27 # Be busybox comptible...
28 sed -i 's/wc -m/wc -c/' configure*
29 sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
30 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
31 grep -qs 'define u8' src/interface/intf_eject.c ||
32 sed -i 's|# *include <scsi/scsi.h>|#define u8 __u8\n&|' \
33 src/interface/intf_eject.c
34 ./configure --prefix=/usr --enable-hal --enable-dbus \
35 --enable-dbus-control --disable-rpath --enable-release \
36 --enable-shared \
37 --enable-dvdread \
38 --enable-qt4 \
39 --enable-alsa --enable-taglib --enable-ogg --enable-faad \
40 --disable-lua --disable-live555 --disable-shout \
41 --disable-dvdnav --disable-fluidsynth --disable-a52 \
42 --disable-smb --disable-gnomevfs --disable-glx --disable-upnp \
43 $CONFIGURE_ARGS &&
44 make &&
45 make install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share/pixmaps
52 cp -a $_pkg/usr/bin $fs/usr
53 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
54 #Remove extra icons
55 #rm $fs/usr/share/$PACKAGE/*.png
56 #rm $fs/usr/share/$PACKAGE/*.xpm
57 rm $fs/usr/share/$PACKAGE/*.ico
58 #copy vlc icon
59 cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
60 #Remove unnecessary fonts
61 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
63 }