wok annotate vlc/receipt @ rev 20599

nss: remove USE_64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 16 20:01:00 2018 +0100 (2018-12-16)
parents 58dcfd512b46
children d9392a530592
rev   line source
jozee@2944 1 # SliTaz package receipt.
jozee@2944 2
jozee@2944 3 PACKAGE="vlc"
pascal@19101 4 VERSION="2.2.3"
jozee@2944 5 CATEGORY="multimedia"
jozee@2944 6 SHORT_DESC="MPEG, VCD/DVD, and DivX player"
jozee@2944 7 MAINTAINER="jozee@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
domcox@12849 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
domcox@12849 10 WEB_SITE="http://www.videolan.org/vlc/"
jozee@2944 11 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
jozee@4975 12 TAGS="audio video multimedia movie player"
pascal@15000 13
domcox@12849 14 DEPENDS="libQtCore libQtGui libvlc"
domcox@12849 15 BUILD_DEPENDS="Qt4-dev alsa-lib-dev dbus-dev ffmpeg-dev gettext \
pascal@19772 16 libmad-dev lua5.1-dev tar xcb-util-dev yasm expat-dev libxml2-dev libegl-mesa \
pascal@17392 17 util-linux-uuid-dev x264-dev flac-dev taglib-dev gnutls-dev libupnp-dev \
pascal@20592 18 libsamplerate-dev fribidi-dev zvbi-dev opus-dev gmp-dev ncurses-dev x265-dev \
pascal@20592 19 libgnutls"
jozee@2944 20
jozee@2944 21 compile_rules()
jozee@2944 22 {
domcox@12849 23 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
jozee@2944 24 cd $src
pascal@13863 25 [ -e /usr/bin/luac ] || ln -s luac5.1 /usr/bin/luac
pascal@17395 26 sed -i 's/ERROR_zip_cannot/error_zip_cannot/' modules/access/zip/zipstream.c
paul@19119 27 # export ncurses paths
paul@19119 28 export NCURSES_CFLAGS="-I/usr/include"
paul@19119 29 export NCURSES_LIBS="-L/lib -lncurses -ltinfo"
domcox@12849 30 ./configure \
domcox@12849 31 --prefix=/usr \
domcox@12849 32 --disable-pulse \
domcox@12849 33 --disable-a52 \
domcox@12849 34 --disable-glx \
domcox@12849 35 --disable-sout \
domcox@12849 36 --disable-httpd \
domcox@12849 37 --disable-libgcrypt \
paul@19108 38 --enable-ncurses \
slaxemulator@10101 39 $CONFIGURE_ARGS &&
jozee@2944 40 make &&
slaxemulator@9842 41 make install
pascal@13862 42 [ -L /usr/bin/luac ] && rm -f /usr/bin/luac
jozee@2944 43 }
jozee@2944 44
jozee@2944 45 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2944 46 genpkg_rules()
jozee@2944 47 {
pascal@4617 48 mkdir -p $fs/usr/share/pixmaps
pascal@13862 49 cp -a $install/usr/bin $fs/usr
pascal@13862 50 cp -a $install/usr/share/$PACKAGE $fs/usr/share
domcox@12849 51 #Remove extra icons
jozee@2944 52 rm $fs/usr/share/$PACKAGE/*.ico
jozee@2944 53 #copy vlc icon
pascal@13862 54 cp -a $install/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
jozee@2944 55 #Remove unnecessary fonts
pascal@19582 56 rm $fs/usr/share/$PACKAGE/skins2/fonts/* 2> /dev/null || true
jozee@2944 57 }