wok view vlc/receipt @ rev 22434

Add sshrc (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 21 12:20:01 2019 +0100 (2019-12-21)
parents ad69433c853a
children 5e9bcb010ae6
line source
1 # SliTaz package receipt.
3 PACKAGE="vlc"
4 VERSION="3.0.8"
5 CATEGORY="multimedia"
6 TAGS="audio video multimedia movie player"
7 SHORT_DESC="MPEG, VCD/DVD, and DivX player."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.videolan.org/vlc/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
15 COOKOPTS="!fixdesktops"
16 DEPENDS="gcc83-lib-base libQtCore libQtGui libvlc"
17 BUILD_DEPENDS="alsa-lib-dev dbus-dev expat-dev ffmpeg-dev flac-dev fribidi-dev
18 gcc83 gcc83-lib-base gettext gmp-dev gnutls-dev libgnutls libmad-dev
19 libegl-mesa libsamplerate-dev libupnp-dev libxml2-dev lua5.1-dev
20 ncurses-dev opus-dev Qt4-dev taglib-dev tar util-linux-uuid-dev
21 x264-dev x265-dev xcb-util-dev yasm zvbi-dev"
23 compile_rules()
24 {
25 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
26 [ -e /usr/bin/luac ] || ln -s luac5.1 /usr/bin/luac
27 # export ncurses paths
28 export NCURSES_CFLAGS="-I/usr/include"
29 export NCURSES_LIBS="-L/lib -lncurses -ltinfo"
30 export CC=gcc-83 CXX=g++-83 BUILDCC=gcc-83
32 ./configure \
33 --prefix=/usr \
34 --disable-pulse \
35 --disable-a52 \
36 --disable-sout \
37 --disable-libgcrypt \
38 --enable-ncurses \
39 --enable-run-as-root \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install
43 [ -L /usr/bin/luac ] && rm -f /usr/bin/luac
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/pixmaps
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/share/$PACKAGE $fs/usr/share
54 #Remove extra icons
55 rm $fs/usr/share/$PACKAGE/*.ico
57 #copy vlc icon
58 cp -a $install/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
60 #Remove unnecessary fonts
61 rm $fs/usr/share/$PACKAGE/skins2/fonts/* 2> /dev/null || true
62 }