wok view tightvnc/receipt @ rev 12656

tightvnc: fix font path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 30 16:54:20 2012 +0200 (2012-04-30)
parents 5faf18d0e3fc
children 6b844a12b1c3
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 TARBALL="$PACKAGE-${VERSION}_unixsrc.tar.bz2"
9 WEB_SITE="http://www.tightvnc.com/"
10 WGET_URL="$SF_MIRROR/vnc-tight/$TARBALL"
11 DEPENDS="xorg-base-fonts jpeg zlib"
12 BUILD_DEPENDS="xorg-imake xorg-gccmakedep xorg-cf-files xorg-libXp \
13 xorg-libXaw-dev xorg-libXt-dev xorg-xproto xorg-libXau-dev xorg-libXdmcp-dev \
14 xorg-libXmu-dev xorg-xextproto xorg-printproto xorg-kbproto xorg-inputproto \
15 xorg-scrnsaverproto xorg-xauth jpeg-dev zlib-dev"
16 TAGS="remote-desktop"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src
22 cd $src
23 sed -i "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" Xvnc/config/cf/X11.tmpl
24 xmkmf &&
25 make -j1 World &&
26 cd Xvnc &&
27 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1
28 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
29 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1
30 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g'
31 make -j1 &&
32 make -j1 DESTDIR=$DESTDIR install
33 cd .. &&
34 make -j1 DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin
41 cp -a $_pkg/usr/bin/Xvnc $fs/usr/bin
42 cp $src/vncpasswd/vncpasswd $fs/usr/bin
43 cat > $fs/usr/bin/startvnc <<EOM
44 #!/bin/sh
46 case "\$1" in
47 ''|:*) ;;
48 *) cat <<EOT
49 Usage: \$0 [display] [geometry] [depth]
50 Default: \$0 :1 1920x1024 24
51 EOT
52 exit 1
53 esac
55 . \$HOME/.config/slitaz/applications.conf
56 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} &
57 export DISPLAY=:\${1:-1}
58 exec \$WINDOW_MANAGER
59 EOM
60 chmod +x $fs/usr/bin/startvnc
61 }