wok-next view vlc/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | 466bca9334ef |
children | 7eb047d2b438 |
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 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 CAT="development|MPEG, VCD/DVD, and DivX library"
62 DEPENDS="libvlc pkg-config"
63 mkdir -p $fs/usr/lib $fs/usr/include $fs/usr/bin
64 #cp $src/vlc-config $fs/usr/bin
65 cp -a $install/usr/lib/*a $fs/usr/lib/
66 cp -a $install/usr/lib/pkgconfig $fs/usr/lib/
67 cp -a $install/usr/include/vlc $fs/usr/include
68 cp -a $install/usr/lib/vlc $fs/usr/lib/
69 rm $fs/usr/lib/vlc/plugins/*/*.so
70 ;;
71 libvlc)
72 CAT="multimedia|MPEG, VCD/DVD, and DivX library"
73 DEPENDS="alsa-lib dbus ffmpeg libmad lua5.1 tar x264 x265 xcb-util zvbi nettle"
74 mkdir -p $fs/usr/lib
75 cp -a $install/usr/lib/*so* $fs/usr/lib/
76 cp -a $install/usr/lib/vlc $fs/usr/lib/
77 # Remove libtool archives
78 rm $fs/usr/lib/vlc/plugins/*/*.la
79 ;;
80 vlc-locale)
81 CAT="multimedia|Locale files for vlc"
82 SUGGESTED="vlc"
83 for i in de el en:en_GB es fa fr pl pt_BR ru sv zh_CN zh_TW ; do
84 install -D -m 644 -o root -g root $src/po/${i#*:}.gmo \
85 $fs/usr/share/locale/${i%:*}/LC_MESSAGES/vlc.mo
86 done
87 ;;
88 esac
89 }