wok-stable annotate vlc/receipt @ rev 9436

Fixed e3.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Mar 31 17:55:18 2011 +0000 (2011-03-31)
parents c62fa1520fa8
children d153d7ee72f2
rev   line source
jozee@2944 1 # SliTaz package receipt.
jozee@2944 2
jozee@2944 3 PACKAGE="vlc"
slaxemulator@9406 4 VERSION="1.1.8"
jozee@2944 5 CATEGORY="multimedia"
jozee@2944 6 SHORT_DESC="MPEG, VCD/DVD, and DivX player"
jozee@2944 7 MAINTAINER="jozee@slitaz.org"
slaxemulator@6343 8 DEPENDS="libvlc libmad libxml2 ffmpeg libdvdread libcddb libproxy taglib \
pascal@8937 9 libQtCore libQtGui alsa hal dbus \
pascal@8937 10 fribidi speex libraw1394 libmodplug flac libavc1394 \
pascal@8937 11 libmpeg2 libnotify libsdl-image libvorbis mesa libglu-mesa sysfsutils zvbi \
pascal@8937 12 libass xorg-libXv faad2 glibc-locale"
pascal@8937 13 BUILD_DEPENDS="libmtp-dev librsvg-dev Qt4-dev \
pascal@8937 14 libgcrypt-dev expat expat-dev xorg-dev-proto zlib zlib-dev \
pascal@8937 15 libogg libogg-dev util-linux-ng-uuid-dev pkg-config libxcb-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@4975 19 TAGS="audio video multimedia movie player"
jozee@2944 20
jozee@2944 21 # Rules to configure and make the package.
jozee@2946 22 # Use --enable-ffmpeg to build against shared ffmpeg
jozee@2944 23 compile_rules()
jozee@2944 24 {
jozee@2944 25 cd $src
pascal@8968 26 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
pascal@5151 27 # Be busybox comptible...
pascal@5151 28 sed -i 's/wc -m/wc -c/' configure*
pascal@4617 29 sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c
pascal@4617 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
pascal@6141 31 grep -qs 'define u8' src/interface/intf_eject.c ||
pascal@6141 32 sed -i 's|# *include <scsi/scsi.h>|#define u8 __u8\n&|' \
pascal@6141 33 src/interface/intf_eject.c
pascal@4617 34 ./configure --prefix=/usr --enable-hal --enable-dbus \
pascal@4617 35 --enable-dbus-control --disable-rpath --enable-release \
pascal@4617 36 --enable-shared \
pascal@4617 37 --enable-dvdread \
pascal@4617 38 --enable-qt4 \
jozee@5306 39 --enable-alsa --enable-taglib --enable-ogg --enable-faad \
pascal@4617 40 --disable-lua --disable-live555 --disable-shout \
pascal@4617 41 --disable-dvdnav --disable-fluidsynth --disable-a52 \
slaxemulator@7194 42 --disable-smb --disable-gnomevfs --disable-glx --disable-upnp \
pascal@4617 43 $CONFIGURE_ARGS &&
jozee@2944 44 make &&
jozee@2944 45 make DESTDIR=$PWD/_pkg install
jozee@2944 46 }
jozee@2944 47
jozee@2944 48 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2944 49 genpkg_rules()
jozee@2944 50 {
pascal@4617 51 mkdir -p $fs/usr/share/pixmaps
jozee@2944 52 cp -a $_pkg/usr/bin $fs/usr
jozee@2944 53 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
jozee@2944 54 #Remove extra icons
slaxemulator@6343 55 #rm $fs/usr/share/$PACKAGE/*.png
slaxemulator@6343 56 #rm $fs/usr/share/$PACKAGE/*.xpm
jozee@2944 57 rm $fs/usr/share/$PACKAGE/*.ico
jozee@2944 58 #copy vlc icon
slaxemulator@6343 59 cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
jozee@2944 60 #Remove unnecessary fonts
jozee@2944 61 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
jozee@2944 62
jozee@2944 63 }