wok-6.x annotate vlc/receipt @ rev 12306
Add linux64-btrfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 17 12:15:25 2012 +0200 (2012-04-17) |
parents | 56f0d1891b57 |
children | 73641efed1cc |
rev | line source |
---|---|
jozee@2944 | 1 # SliTaz package receipt. |
jozee@2944 | 2 |
jozee@2944 | 3 PACKAGE="vlc" |
slaxemulator@11519 | 4 VERSION="1.1.13" |
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 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
jozee@2944 | 9 WEB_SITE="http://www.videolan.org/vlc/" |
jozee@2944 | 10 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL" |
jozee@4975 | 11 TAGS="audio video multimedia movie player" |
jozee@2944 | 12 |
pankso@9625 | 13 DEPENDS="libvlc libmad libxml2 ffmpeg libdvdread libcddb libproxy taglib \ |
pankso@9625 | 14 libQtCore libQtGui alsa-lib hal dbus fribidi speex libraw1394 libmodplug \ |
pankso@9625 | 15 flac libavc1394 libmpeg2 libnotify libsdl-image libvorbis mesa \ |
slaxemulator@11519 | 16 libglu-mesa sysfsutils zvbi libass xorg-libXv faad2 glibc-locale \ |
slaxemulator@11519 | 17 jack-audio-connection-kit" |
pankso@9625 | 18 BUILD_DEPENDS="libmtp-dev librsvg-dev Qt4-dev libgcrypt-dev expat \ |
pankso@9625 | 19 expat-dev xorg-dev-proto zlib zlib-dev libogg libogg-dev \ |
pascal@10600 | 20 util-linux-ng-uuid-dev pkg-config libxcb-dev dbus-dev \ |
pascal@10604 | 21 libdvdread-dev libmad-dev ffmpeg-dev faad2-dev fribidi-dev portaudio-dev \ |
pascal@12131 | 22 alsa-lib-dev libcroco-dev jack-audio-connection-kit-dev tar pango-dev \ |
pascal@12131 | 23 libxml2-dev" |
pankso@9625 | 24 |
jozee@2944 | 25 # Rules to configure and make the package. |
jozee@2946 | 26 # Use --enable-ffmpeg to build against shared ffmpeg |
jozee@2944 | 27 compile_rules() |
jozee@2944 | 28 { |
jozee@2944 | 29 cd $src |
pascal@8968 | 30 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id |
pascal@5151 | 31 # Be busybox comptible... |
pascal@5151 | 32 sed -i 's/wc -m/wc -c/' configure* |
pascal@10602 | 33 #sed -i 's/ImgReSampleContext/void/' modules/video_filter/imgresample.c |
pascal@4617 | 34 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 | 35 grep -qs 'define u8' src/interface/intf_eject.c || |
pascal@6141 | 36 sed -i 's|# *include <scsi/scsi.h>|#define u8 __u8\n&|' \ |
pascal@6141 | 37 src/interface/intf_eject.c |
pascal@4617 | 38 ./configure --prefix=/usr --enable-hal --enable-dbus \ |
pascal@4617 | 39 --enable-dbus-control --disable-rpath --enable-release \ |
pascal@4617 | 40 --enable-shared \ |
pascal@4617 | 41 --enable-dvdread \ |
pascal@4617 | 42 --enable-qt4 \ |
jozee@5306 | 43 --enable-alsa --enable-taglib --enable-ogg --enable-faad \ |
pascal@4617 | 44 --disable-lua --disable-live555 --disable-shout \ |
pascal@4617 | 45 --disable-dvdnav --disable-fluidsynth --disable-a52 \ |
slaxemulator@10101 | 46 --disable-smb --disable-gnomevfs --disable-glx --disable-upnp \ |
slaxemulator@10101 | 47 $CONFIGURE_ARGS && |
jozee@2944 | 48 make && |
slaxemulator@9842 | 49 make install |
jozee@2944 | 50 } |
jozee@2944 | 51 |
jozee@2944 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2944 | 53 genpkg_rules() |
jozee@2944 | 54 { |
pascal@4617 | 55 mkdir -p $fs/usr/share/pixmaps |
jozee@2944 | 56 cp -a $_pkg/usr/bin $fs/usr |
jozee@2944 | 57 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share |
jozee@2944 | 58 #Remove extra icons |
slaxemulator@6343 | 59 #rm $fs/usr/share/$PACKAGE/*.png |
slaxemulator@6343 | 60 #rm $fs/usr/share/$PACKAGE/*.xpm |
jozee@2944 | 61 rm $fs/usr/share/$PACKAGE/*.ico |
jozee@2944 | 62 #copy vlc icon |
slaxemulator@6343 | 63 cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps |
jozee@2944 | 64 #Remove unnecessary fonts |
jozee@2944 | 65 rm $fs/usr/share/$PACKAGE/skins2/fonts/* |
jozee@2944 | 66 |
jozee@2944 | 67 } |