wok-current view vlc/receipt @ rev 5151

vlc, wesnoth: compile_rules should be busybox compatible
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 24 08:50:23 2010 +0100 (2010-03-24)
parents f917e0dfdfbd
children 30f4e3eb73ed
line source
1 # SliTaz package receipt.
3 PACKAGE="vlc"
4 VERSION="0.9.9a"
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 \
11 libmpeg2 libnotify libsdl-image libvorbis libgl libglu sysfsutils xorg-libXv"
12 BUILD_DEPENDS="libmad-dev libxml2-dev ffmpeg-dev libdvdread-dev libcddb-dev taglib-dev libproxy-dev Qt4-dev \
13 hal-dev dbus-dev alsa-lib-dev libgcrypt-dev libproxy expat-dev xorg-dev-proto zlib-dev \
14 taglib fribidi fribidi-dev speex speex-dev libraw1394 libraw1394-dev libmodplug libmodplug-dev flac flac-dev \
15 libmpeg2 libmpeg2-dev libogg-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 ./configure --prefix=/usr --enable-hal --enable-dbus \
31 --enable-dbus-control --disable-rpath --enable-release \
32 --enable-shared \
33 --enable-dvdread \
34 --enable-qt4 \
35 --enable-alsa --enable-taglib --enable-ogg \
36 --disable-lua --disable-live555 --disable-shout \
37 --disable-dvdnav --disable-fluidsynth --disable-a52 \
38 --disable-smb --disable-gnomevfs --disable-glx \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$PWD/_pkg install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share/pixmaps
48 cp -a $_pkg/usr/bin $fs/usr
49 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
50 #Remove extra icons
51 rm $fs/usr/share/$PACKAGE/*.png
52 rm $fs/usr/share/$PACKAGE/*.xpm
53 rm $fs/usr/share/$PACKAGE/*.ico
54 #copy vlc icon
55 cp -a $_pkg/usr/share/$PACKAGE/vlc16x16.png $fs/usr/share/pixmaps
56 mv $fs/usr/share/pixmaps/vlc16x16.png $fs/usr/share/pixmaps/vlc.png
57 #Remove unnecessary fonts
58 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
60 }