wok-next view vlc/receipt @ rev 21626

updated encodings (1.0.4 -> 1.0.5)
author Hans-G?nter Theisgen
date Thu Jun 25 16:03:31 2020 +0100 (2020-06-25)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="vlc"
4 VERSION="2.2.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="MPEG, VCD/DVD, and DivX player"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.videolan.org/vlc/"
11 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
13 BUILD_DEPENDS="Qt4-dev alsa-lib-dev dbus-dev ffmpeg-dev gettext-dev \
14 libmad-dev lua5.1-dev tar xcb-util-dev yasm expat-dev libxml2-dev \
15 util-linux-uuid-dev x264-dev flac-dev taglib-dev gnutls-dev libupnp-dev \
16 libsamplerate-dev fribidi-dev zvbi-dev opus-dev gmp-dev ncurses-dev x265-dev"
17 SPLIT="libvlc-dev libvlc $PACKAGE-locale"
19 compile_rules() {
20 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen >/var/lib/dbus/machine-id
22 [ -e /usr/bin/luac ] || ln -s luac5.1 /usr/bin/luac
24 sed -i 's/ERROR_zip_cannot/error_zip_cannot/' modules/access/zip/zipstream.c
25 # export ncurses paths
26 export NCURSES_CFLAGS="-I/usr/include"
27 export NCURSES_LIBS="-L/lib -lncurses"
28 ./configure \
29 --prefix=/usr \
30 --disable-pulse \
31 --disable-a52 \
32 --disable-glx \
33 --disable-sout \
34 --disable-httpd \
35 --disable-libgcrypt \
36 --enable-ncurses \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install
40 [ -L /usr/bin/luac ] && rm -f /usr/bin/luac
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 vlc)
46 mkdir -p $fs/usr/share/pixmaps
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/share/$PACKAGE $fs/usr/share
49 #Remove extra icons
50 rm $fs/usr/share/$PACKAGE/*.ico
51 #copy vlc icon
52 cp -a $install/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
53 #Remove unnecessary fonts
54 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
55 DEPENDS="libQtCore libQtGui libvlc"
56 TAGS="audio video multimedia movie player"
57 ;;
58 libvlc-dev)
59 mkdir -p $fs/usr/lib $fs/usr/include $fs/usr/bin
60 #cp $src/vlc-config $fs/usr/bin
61 cp -a $install/usr/lib/*a $fs/usr/lib/
62 cp -a $install/usr/lib/pkgconfig $fs/usr/lib/
63 cp -a $install/usr/include/vlc $fs/usr/include
64 cp -a $install/usr/lib/vlc $fs/usr/lib/
65 rm $fs/usr/lib/vlc/plugins/*/*.so
66 ;;
67 libvlc)
68 mkdir -p $fs/usr/lib
69 cp -a $install/usr/lib/*so* $fs/usr/lib/
70 cp -a $install/usr/lib/vlc $fs/usr/lib/
71 # Remove libtool archives
72 rm $fs/usr/lib/vlc/plugins/*/*.la
73 DEPENDS="alsa-lib dbus ffmpeg libmad lua5.1 tar x264 x265 \
74 xcb-util zvbi nettle"
75 CAT="multimedia|MPEG, VCD/DVD, and DivX library"
76 ;;
77 vlc-locale)
78 for i in de el en:en_GB es fa fr pl pt_BR ru sv zh_CN zh_TW; do
79 install -Dm644 -o root -g root $src/po/${i#*:}.gmo \
80 $fs/usr/share/locale/${i%:*}/LC_MESSAGES/vlc.mo
81 done
82 CAT="multimedia|locale files"
83 SUGGESTED="vlc"
84 ;;
85 esac
86 }