wok-stable annotate vlc/receipt @ rev 4617

vlc: ImgReSampleContext is deprecated
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 17 17:28:06 2009 +0100 (2009-12-17)
parents 9fc3ddc15b30
children f917e0dfdfbd
rev   line source
jozee@2944 1 # SliTaz package receipt.
jozee@2944 2
jozee@2944 3 PACKAGE="vlc"
jozee@2944 4 VERSION="0.9.9a"
jozee@2944 5 CATEGORY="multimedia"
jozee@2944 6 SHORT_DESC="MPEG, VCD/DVD, and DivX player"
jozee@2944 7 MAINTAINER="jozee@slitaz.org"
pascal@4604 8 DEPENDS="libvlc libmad libxml2 ffmpeg libdvdread libcddb libproxy taglib \
pascal@2964 9 libQtCore libQtGui alsa-lib hal dbus \
erjo@3518 10 fribidi speex libraw1394 libmodplug flac \
pascal@2964 11 libmpeg2 libnotify libsdl-image libvorbis libgl libglu sysfsutils xorg-libXv"
jozee@2944 12 BUILD_DEPENDS="libmad-dev libxml2-dev ffmpeg-dev libdvdread-dev libcddb-dev taglib-dev libproxy-dev Qt4-dev \
erjo@3519 13 hal-dev dbus-dev alsa-lib-dev libgcrypt-dev libproxy expat-dev xorg-dev-proto zlib-dev \
jozee@2944 14 taglib fribidi fribidi-dev speex speex-dev libraw1394 libraw1394-dev libmodplug libmodplug-dev flac flac-dev \
jozee@2944 15 libmpeg2 libmpeg2-dev libogg-dev"
jozee@2944 16 TARBALL="$PACKAGE-$VERSION.tar.bz2"
jozee@2944 17 WEB_SITE="http://www.videolan.org/vlc/"
jozee@2944 18 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
jozee@2944 19
jozee@2944 20 # Rules to configure and make the package.
jozee@2946 21 # Use --enable-ffmpeg to build against shared ffmpeg
jozee@2944 22 compile_rules()
jozee@2944 23 {
jozee@2944 24 cd $src
pascal@4617 25 sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
pascal@4617 26 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
pascal@4617 27 ./configure --prefix=/usr --enable-hal --enable-dbus \
pascal@4617 28 --enable-dbus-control --disable-rpath --enable-release \
pascal@4617 29 --enable-shared \
pascal@4617 30 --enable-dvdread \
pascal@4617 31 --enable-qt4 \
pascal@4617 32 --enable-alsa --enable-taglib --enable-ogg \
pascal@4617 33 --disable-lua --disable-live555 --disable-shout \
pascal@4617 34 --disable-dvdnav --disable-fluidsynth --disable-a52 \
pascal@4617 35 --disable-smb --disable-gnomevfs --disable-glx \
pascal@4617 36 $CONFIGURE_ARGS &&
jozee@2944 37 make &&
jozee@2944 38 make DESTDIR=$PWD/_pkg install
jozee@2944 39 }
jozee@2944 40
jozee@2944 41 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2944 42 genpkg_rules()
jozee@2944 43 {
pascal@4617 44 mkdir -p $fs/usr/share/pixmaps
jozee@2944 45 cp -a $_pkg/usr/bin $fs/usr
jozee@2944 46 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
jozee@2944 47 #Remove extra icons
jozee@2944 48 rm $fs/usr/share/$PACKAGE/*.png
jozee@2944 49 rm $fs/usr/share/$PACKAGE/*.xpm
jozee@2944 50 rm $fs/usr/share/$PACKAGE/*.ico
jozee@2944 51 #copy vlc icon
jozee@2944 52 cp -a $_pkg/usr/share/$PACKAGE/vlc16x16.png $fs/usr/share/pixmaps
jozee@2944 53 mv $fs/usr/share/pixmaps/vlc16x16.png $fs/usr/share/pixmaps/vlc.png
jozee@2944 54 #Remove unnecessary fonts
jozee@2944 55 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
jozee@2944 56
jozee@2944 57 }