wok-next annotate vlc/receipt @ rev 20904

libgdata: update bdeps
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 30 23:44:42 2018 +0300 (2018-07-30)
parents 7eb047d2b438
children d5aab818505e
rev   line source
pascal@20142 1 # SliTaz package receipt v2.
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"
pascal@15000 12
domcox@12849 13 BUILD_DEPENDS="Qt4-dev alsa-lib-dev dbus-dev ffmpeg-dev gettext \
al@20450 14 libmad-dev lua5.1-dev tar xorg-xcb-util-dev yasm expat-dev libxml2-dev \
pascal@17392 15 util-linux-uuid-dev x264-dev flac-dev taglib-dev gnutls-dev libupnp-dev \
pascal@19139 16 libsamplerate-dev fribidi-dev zvbi-dev opus-dev gmp-dev ncurses-dev x265-dev"
pascal@20142 17 SPLIT="vlc libvlc-dev libvlc vlc-locale"
jozee@2944 18
jozee@2944 19 compile_rules()
jozee@2944 20 {
domcox@12849 21 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
jozee@2944 22 cd $src
pascal@13863 23 [ -e /usr/bin/luac ] || ln -s luac5.1 /usr/bin/luac
pascal@17395 24 sed -i 's/ERROR_zip_cannot/error_zip_cannot/' modules/access/zip/zipstream.c
paul@19119 25 # export ncurses paths
paul@19119 26 export NCURSES_CFLAGS="-I/usr/include"
pascal@19960 27 export NCURSES_LIBS="-L/lib -lncurses"
domcox@12849 28 ./configure \
domcox@12849 29 --prefix=/usr \
domcox@12849 30 --disable-pulse \
domcox@12849 31 --disable-a52 \
domcox@12849 32 --disable-glx \
domcox@12849 33 --disable-sout \
domcox@12849 34 --disable-httpd \
domcox@12849 35 --disable-libgcrypt \
paul@19108 36 --enable-ncurses \
slaxemulator@10101 37 $CONFIGURE_ARGS &&
jozee@2944 38 make &&
slaxemulator@9842 39 make install
pascal@13862 40 [ -L /usr/bin/luac ] && rm -f /usr/bin/luac
jozee@2944 41 }
jozee@2944 42
jozee@2944 43 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2944 44 genpkg_rules()
jozee@2944 45 {
pascal@20142 46 case $PACKAGE in
pascal@20142 47 vlc)
pascal@20142 48 TAGS="audio video multimedia movie player"
pascal@20142 49 DEPENDS="libQtCore libQtGui libvlc"
pascal@20142 50 mkdir -p $fs/usr/share/pixmaps
pascal@20142 51 cp -a $install/usr/bin $fs/usr
pascal@20142 52 cp -a $install/usr/share/$PACKAGE $fs/usr/share
pascal@20142 53 #Remove extra icons
pascal@20142 54 rm $fs/usr/share/$PACKAGE/*.ico
pascal@20142 55 #copy vlc icon
pascal@20142 56 cp -a $install/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
pascal@20142 57 #Remove unnecessary fonts
pascal@20142 58 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
pascal@20142 59 ;;
pascal@20142 60 libvlc-dev)
pascal@20142 61 mkdir -p $fs/usr/lib $fs/usr/include $fs/usr/bin
pascal@20142 62 #cp $src/vlc-config $fs/usr/bin
pascal@20142 63 cp -a $install/usr/lib/*a $fs/usr/lib/
pascal@20142 64 cp -a $install/usr/lib/pkgconfig $fs/usr/lib/
pascal@20142 65 cp -a $install/usr/include/vlc $fs/usr/include
pascal@20142 66 cp -a $install/usr/lib/vlc $fs/usr/lib/
pascal@20142 67 rm $fs/usr/lib/vlc/plugins/*/*.so
pascal@20142 68 ;;
pascal@20142 69 libvlc)
pascal@20142 70 CAT="multimedia|MPEG, VCD/DVD, and DivX library"
al@20450 71 DEPENDS="alsa-lib dbus ffmpeg libmad lua5.1 tar x264 x265 xorg-xcb-util zvbi nettle"
pascal@20142 72 mkdir -p $fs/usr/lib
pascal@20142 73 cp -a $install/usr/lib/*so* $fs/usr/lib/
pascal@20142 74 cp -a $install/usr/lib/vlc $fs/usr/lib/
pascal@20142 75 # Remove libtool archives
pascal@20142 76 rm $fs/usr/lib/vlc/plugins/*/*.la
pascal@20142 77 ;;
pascal@20142 78 vlc-locale)
pascal@20142 79 CAT="multimedia|Locale files for vlc"
pascal@20142 80 SUGGESTED="vlc"
pascal@20142 81 for i in de el en:en_GB es fa fr pl pt_BR ru sv zh_CN zh_TW ; do
pascal@20142 82 install -D -m 644 -o root -g root $src/po/${i#*:}.gmo \
pascal@20142 83 $fs/usr/share/locale/${i%:*}/LC_MESSAGES/vlc.mo
pascal@20142 84 done
pascal@20142 85 ;;
pascal@20142 86 esac
jozee@2944 87 }