wok view tightvnc/receipt @ rev 12879

tazpkg: fix ARM build
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 25 19:40:12 2012 +0200 (2012-05-25)
parents 6b844a12b1c3
children e53e5e4b0f9e
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 xorg-libXrandr-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 -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \
24 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \
25 Xvnc/config/cf/X11.tmpl
26 xmkmf &&
27 make -j1 World &&
28 cd Xvnc &&
29 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1
30 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
31 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1
32 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g'
33 make -j1 &&
34 make -j1 DESTDIR=$DESTDIR install
35 cd .. &&
36 make -j1 DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
43 cp -a $_pkg/usr/bin/Xvnc $fs/usr/bin
44 cp $src/vncpasswd/vncpasswd $fs/usr/bin
45 cat > $fs/usr/bin/startvnc <<EOM
46 #!/bin/sh
48 case "\$1" in
49 ''|:*) ;;
50 *) cat <<EOT
51 Usage: \$0 [display] [geometry] [depth]
52 Default: \$0 :1 1920x1024 24
53 EOT
54 exit 1
55 esac
57 . \$HOME/.config/slitaz/applications.conf
58 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} &
59 export DISPLAY=:\${1:-1}
60 exec \$WINDOW_MANAGER
61 EOM
62 chmod +x $fs/usr/bin/startvnc
63 }