wok-next view tightvnc/receipt @ rev 21078

Update png and Xorg in dependencies.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 22 04:52:35 2018 +0200 (2018-12-22)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tightvnc"
4 VERSION="1.3.10"
5 CATEGORY="x-window"
6 SHORT_DESC="VNC server (graphical remote control)"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-${VERSION}_unixsrc.tar.bz2"
10 WEB_SITE="http://www.tightvnc.com/"
11 WGET_URL="$SF_MIRROR/vnc-tight/$TARBALL"
13 BUILD_DEPENDS="imake gccmakedep xorg-cf-files libxp \
14 libxaw-dev libxt-dev libxau-dev libxdmcp-dev \
15 libxmu-dev xorgproto \
16 xauth jpeg-dev zlib-dev libxrandr-dev"
17 SPLIT="$PACKAGE-extra $PACKAGE-java $PACKAGE-viewer"
19 compile_rules() {
20 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src
21 cd $src
22 sed -i -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \
23 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \
24 Xvnc/config/cf/X11.tmpl
25 xmkmf &&
26 make -j1 World &&
27 cd Xvnc &&
28 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1
29 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
30 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1
31 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g'
32 make -j1 &&
33 make -j1 DESTDIR=$install install
34 cd .. &&
35 make -j1 DESTDIR=$install install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 tightvnc)
41 TAGS="remote-desktop vnc"
42 DEPENDS="font-misc-misc-base jpeg zlib"
43 mkdir -p $fs/usr/bin
44 cp -a $install/usr/bin/Xvnc $fs/usr/bin
45 cp $src/vncpasswd/vncpasswd $fs/usr/bin
46 cat > $fs/usr/bin/startvnc <<EOM
47 #!/bin/sh
49 case "\$1" in
50 ''|:*) ;;
51 *) cat <<EOT
52 Usage: \$0 [display] [geometry] [depth]
53 Default: \$0 :1 1920x1024 24
54 EOT
55 exit 1
56 esac
58 . \$HOME/.config/slitaz/applications.conf
59 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} &
60 export DISPLAY=:\${1:-1}
61 exec \$WINDOW_MANAGER
62 EOM
63 chmod +x $fs/usr/bin/startvnc
64 ;;
65 tightvnc-extra)
66 CAT="x-window|extra tools"
67 TAGS="vnc"
68 DEPENDS="perl jpeg zlib libxdmcp libxau libx11 \
69 libxext"
70 mkdir -p $fs/usr/bin $fs/etc
71 cp $src/vncconnect/vncconnect $src/vncserver $fs/usr/bin
72 cp $src/tightvncserver.conf $fs/etc
73 cat >> $fs/etc/tightvncserver.conf << 'EOF'
74 $vncClasses = "/usr/share/vnc/classes";
75 $fontPath = "/usr/share/fonts/X11/misc/";
76 EOF
77 ;;
78 tightvnc-java)
79 CAT="x-window|Java client"
80 DEPENDS="tightvnc"
81 mkdir -p $fs/usr/share/vnc
82 cp -pa $src/classes $fs/usr/share/vnc
83 ;;
84 tightvnc-viewer)
85 CAT="x-window|X client"
86 TAGS="vnc remote-desktop"
87 DEPENDS="jpeg zlib libxdmcp libxau libx11 \
88 libxext libxp libxpm libice \
89 libsm libxt libxmu libxaw"
90 mkdir -p $fs/usr/bin
91 cp -a $install/usr/bin/vncviewer $fs/usr/bin
92 ;;
93 esac
94 }