wok view tightvnc/receipt @ rev 24033

updated dialog-dev (1.3_20190211 -> 1.3_20210324)
author Hans-G?nter Theisgen
date Wed Apr 07 15:56:56 2021 +0100 (2021-04-07)
parents 2b0a8ad0b650
children 5f6c5106b1f5
line source
1 # SliTaz package receipt.
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"
12 DEPENDS="xorg-base-fonts jpeg zlib"
13 BUILD_DEPENDS="xorg-imake xorg-gccmakedep xorg-cf-files xorg-libXp \
14 xorg-libXaw-dev xorg-libXt-dev xorg-xproto xorg-libXau-dev xorg-libXdmcp-dev \
15 xorg-libXmu-dev xorg-xextproto xorg-printproto xorg-kbproto xorg-inputproto \
16 xorg-scrnsaverproto xorg-xauth jpeg-dev zlib-dev xorg-libXrandr-dev"
17 TAGS="remote-desktop vnc"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src
23 cd $src
24 sed -i -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \
25 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \
26 Xvnc/config/cf/X11.tmpl
27 xmkmf &&
28 make -j1 World &&
29 cd Xvnc &&
30 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1
31 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
32 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1
33 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g'
34 make -j1 &&
35 make -j1 DESTDIR=$DESTDIR install
36 cd .. &&
37 make -j1 DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
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 }