wok-next view 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 |
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="jozee@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 \
14 libmad-dev lua5.1-dev tar xorg-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="vlc libvlc-dev libvlc vlc-locale"
19 compile_rules()
20 {
21 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
22 cd $src
23 [ -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 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 case $PACKAGE in
47 vlc)
48 TAGS="audio video multimedia movie player"
49 DEPENDS="libQtCore libQtGui libvlc"
50 mkdir -p $fs/usr/share/pixmaps
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/share/$PACKAGE $fs/usr/share
53 #Remove extra icons
54 rm $fs/usr/share/$PACKAGE/*.ico
55 #copy vlc icon
56 cp -a $install/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
57 #Remove unnecessary fonts
58 rm $fs/usr/share/$PACKAGE/skins2/fonts/*
59 ;;
60 libvlc-dev)
61 mkdir -p $fs/usr/lib $fs/usr/include $fs/usr/bin
62 #cp $src/vlc-config $fs/usr/bin
63 cp -a $install/usr/lib/*a $fs/usr/lib/
64 cp -a $install/usr/lib/pkgconfig $fs/usr/lib/
65 cp -a $install/usr/include/vlc $fs/usr/include
66 cp -a $install/usr/lib/vlc $fs/usr/lib/
67 rm $fs/usr/lib/vlc/plugins/*/*.so
68 ;;
69 libvlc)
70 CAT="multimedia|MPEG, VCD/DVD, and DivX library"
71 DEPENDS="alsa-lib dbus ffmpeg libmad lua5.1 tar x264 x265 xorg-xcb-util zvbi nettle"
72 mkdir -p $fs/usr/lib
73 cp -a $install/usr/lib/*so* $fs/usr/lib/
74 cp -a $install/usr/lib/vlc $fs/usr/lib/
75 # Remove libtool archives
76 rm $fs/usr/lib/vlc/plugins/*/*.la
77 ;;
78 vlc-locale)
79 CAT="multimedia|Locale files for vlc"
80 SUGGESTED="vlc"
81 for i in de el en:en_GB es fa fr pl pt_BR ru sv zh_CN zh_TW ; do
82 install -D -m 644 -o root -g root $src/po/${i#*:}.gmo \
83 $fs/usr/share/locale/${i%:*}/LC_MESSAGES/vlc.mo
84 done
85 ;;
86 esac
87 }