wok-current annotate vlc/receipt @ rev 2944

Add: vlc media player
author Rohit Joshi <jozee@slitaz.org>
date Thu May 07 22:19:59 2009 +0000 (2009-05-07)
parents
children d24854ec2ce1
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"
jozee@2944 8 DEPENDS="libmad libxml2 ffmpeg libdvdread libcddb libproxy taglib libQtCore libQtGui alsa-lib hal dbus \
jozee@2944 9 taglib fribidi speex libraw1394 libmodplug flac"
jozee@2944 10 BUILD_DEPENDS="libmad-dev libxml2-dev ffmpeg-dev libdvdread-dev libcddb-dev taglib-dev libproxy-dev Qt4-dev \
jozee@2944 11 libiconv-dev libiconv hal-dev dbus-dev alsa-lib-dev libgcrypt-dev libproxy expat-dev xorg-dev-proto zlib-dev \
jozee@2944 12 taglib fribidi fribidi-dev speex speex-dev libraw1394 libraw1394-dev libmodplug libmodplug-dev flac flac-dev \
jozee@2944 13 libmpeg2 libmpeg2-dev libogg-dev"
jozee@2944 14 TARBALL="$PACKAGE-$VERSION.tar.bz2"
jozee@2944 15 WEB_SITE="http://www.videolan.org/vlc/"
jozee@2944 16 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
jozee@2944 17
jozee@2944 18 # Rules to configure and make the package.
jozee@2944 19 compile_rules()
jozee@2944 20 {
jozee@2944 21 cd $src
jozee@2944 22 sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:' modules/misc/freetype.c
jozee@2944 23 ./configure --prefix=/usr --enable-hal --enable-dbus --enable-dbus-control --disable-rpath --enable-release \
jozee@2944 24 --enable-shared \
jozee@2944 25 --enable-dvdread \
jozee@2944 26 --enable-qt4 \
jozee@2944 27 --enable-alsa --enable-taglib --enable-ogg --enable-ffmpeg \
jozee@2944 28 --disable-lua --disable-live555 --disable-shout \
jozee@2944 29 --disable-dvdnav --disable-fluidsynth --disable-a52 \
jozee@2944 30 --disable-smb --disable-gnomevfs --disable-glx \
jozee@2944 31 $CONFIGURE_ARGS &&
jozee@2944 32 make &&
jozee@2944 33 make DESTDIR=$PWD/_pkg install
jozee@2944 34
jozee@2944 35 }
jozee@2944 36
jozee@2944 37 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2944 38 genpkg_rules()
jozee@2944 39 {
jozee@2944 40 mkdir -p $fs/usr/lib $fs/usr/share $fs/usr/share/pixmaps
jozee@2944 41 cp -a $_pkg/usr/bin $fs/usr
jozee@2944 42 cp -a $_pkg/usr/lib/*so* $fs/usr/lib/
jozee@2944 43 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib/
jozee@2944 44 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
jozee@2944 45 #Remove extra icons
jozee@2944 46 rm $fs/usr/share/$PACKAGE/*.png
jozee@2944 47 rm $fs/usr/share/$PACKAGE/*.xpm
jozee@2944 48 rm $fs/usr/share/$PACKAGE/*.ico
jozee@2944 49 #copy vlc icon
jozee@2944 50 cp -a $_pkg/usr/share/$PACKAGE/vlc16x16.png $fs/usr/share/pixmaps
jozee@2944 51 mv $fs/usr/share/pixmaps/vlc16x16.png $fs/usr/share/pixmaps/vlc.png
jozee@2944 52 # Remove libtool archives
jozee@2944 53 rm $fs/usr/lib/$PACKAGE/*/*.la
jozee@2944 54 #Remove unnecessary fonts
jozee@2944 55 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
jozee@2944 56
jozee@2944 57 }