wok-next annotate vlc/receipt @ rev 21605

dropbear: add ed25519 key
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 25 08:01:52 2020 +0000 (2020-06-25)
parents d5aab818505e
children
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"
al@21020 7 MAINTAINER="devel@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
al@21020 13 BUILD_DEPENDS="Qt4-dev alsa-lib-dev dbus-dev ffmpeg-dev gettext-dev \
al@21078 14 libmad-dev lua5.1-dev tar 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"
al@21020 17 SPLIT="libvlc-dev libvlc $PACKAGE-locale"
jozee@2944 18
al@21020 19 compile_rules() {
al@21020 20 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen >/var/lib/dbus/machine-id
al@21020 21
pascal@13863 22 [ -e /usr/bin/luac ] || ln -s luac5.1 /usr/bin/luac
al@21020 23
pascal@17395 24 sed -i 's/ERROR_zip_cannot/error_zip_cannot/' modules/access/zip/zipstream.c
al@21020 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
al@21020 43 genpkg_rules() {
pascal@20142 44 case $PACKAGE in
al@21020 45 vlc)
al@21020 46 mkdir -p $fs/usr/share/pixmaps
al@21020 47 cp -a $install/usr/bin $fs/usr
al@21020 48 cp -a $install/usr/share/$PACKAGE $fs/usr/share
al@21020 49 #Remove extra icons
al@21020 50 rm $fs/usr/share/$PACKAGE/*.ico
al@21020 51 #copy vlc icon
al@21020 52 cp -a $install/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
al@21020 53 #Remove unnecessary fonts
al@21020 54 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
al@21020 55 DEPENDS="libQtCore libQtGui libvlc"
al@21020 56 TAGS="audio video multimedia movie player"
al@21020 57 ;;
al@21020 58 libvlc-dev)
al@21020 59 mkdir -p $fs/usr/lib $fs/usr/include $fs/usr/bin
al@21020 60 #cp $src/vlc-config $fs/usr/bin
al@21020 61 cp -a $install/usr/lib/*a $fs/usr/lib/
al@21020 62 cp -a $install/usr/lib/pkgconfig $fs/usr/lib/
al@21020 63 cp -a $install/usr/include/vlc $fs/usr/include
al@21020 64 cp -a $install/usr/lib/vlc $fs/usr/lib/
al@21020 65 rm $fs/usr/lib/vlc/plugins/*/*.so
al@21020 66 ;;
al@21020 67 libvlc)
al@21020 68 mkdir -p $fs/usr/lib
al@21020 69 cp -a $install/usr/lib/*so* $fs/usr/lib/
al@21020 70 cp -a $install/usr/lib/vlc $fs/usr/lib/
al@21020 71 # Remove libtool archives
al@21020 72 rm $fs/usr/lib/vlc/plugins/*/*.la
al@21020 73 DEPENDS="alsa-lib dbus ffmpeg libmad lua5.1 tar x264 x265 \
al@21078 74 xcb-util zvbi nettle"
al@21020 75 CAT="multimedia|MPEG, VCD/DVD, and DivX library"
al@21020 76 ;;
al@21020 77 vlc-locale)
al@21020 78 for i in de el en:en_GB es fa fr pl pt_BR ru sv zh_CN zh_TW; do
al@21020 79 install -Dm644 -o root -g root $src/po/${i#*:}.gmo \
al@21020 80 $fs/usr/share/locale/${i%:*}/LC_MESSAGES/vlc.mo
al@21020 81 done
al@21020 82 CAT="multimedia|locale files"
al@21020 83 SUGGESTED="vlc"
al@21020 84 ;;
pascal@20142 85 esac
jozee@2944 86 }