wok annotate tightvnc/receipt @ rev 14199

libkeybinder: needs autoreconf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 13 18:51:10 2013 +0100 (2013-03-13)
parents 40007b1e72ca
children 2b0a8ad0b650
rev   line source
pascal@3631 1 # SliTaz package receipt.
pascal@3631 2
pascal@3631 3 PACKAGE="tightvnc"
pascal@3631 4 VERSION="1.3.10"
pascal@3631 5 CATEGORY="x-window"
pascal@3631 6 SHORT_DESC="VNC server (graphical remote control)."
pascal@3631 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@3631 8 TARBALL="$PACKAGE-${VERSION}_unixsrc.tar.bz2"
pascal@3631 9 WEB_SITE="http://www.tightvnc.com/"
pascal@3631 10 WGET_URL="$SF_MIRROR/vnc-tight/$TARBALL"
slaxemulator@8535 11 DEPENDS="xorg-base-fonts jpeg zlib"
pascal@4191 12 BUILD_DEPENDS="xorg-imake xorg-gccmakedep xorg-cf-files xorg-libXp \
pascal@4191 13 xorg-libXaw-dev xorg-libXt-dev xorg-xproto xorg-libXau-dev xorg-libXdmcp-dev \
pascal@4191 14 xorg-libXmu-dev xorg-xextproto xorg-printproto xorg-kbproto xorg-inputproto \
pascal@12657 15 xorg-scrnsaverproto xorg-xauth jpeg-dev zlib-dev xorg-libXrandr-dev"
pascal@13034 16 TAGS="remote-desktop vnc"
pascal@3631 17
pascal@3631 18 # Rules to configure and make the package.
pascal@3631 19 compile_rules()
pascal@3631 20 {
pascal@3631 21 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src
pascal@3631 22 cd $src
pascal@12658 23 sed -i -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \
pascal@12658 24 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \
pascal@12658 25 Xvnc/config/cf/X11.tmpl
pascal@3631 26 xmkmf &&
slaxemulator@8383 27 make -j1 World &&
pascal@3631 28 cd Xvnc &&
pascal@3631 29 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1
slaxemulator@8383 30 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
slaxemulator@8383 31 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1
pascal@3631 32 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g'
slaxemulator@8383 33 make -j1 &&
pascal@12656 34 make -j1 DESTDIR=$DESTDIR install
pascal@3631 35 cd .. &&
pascal@12656 36 make -j1 DESTDIR=$DESTDIR install
pascal@3631 37 }
pascal@3631 38
pascal@3631 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3631 40 genpkg_rules()
pascal@3631 41 {
pascal@3631 42 mkdir -p $fs/usr/bin
pascal@3631 43 cp -a $_pkg/usr/bin/Xvnc $fs/usr/bin
pascal@3632 44 cp $src/vncpasswd/vncpasswd $fs/usr/bin
pascal@12656 45 cat > $fs/usr/bin/startvnc <<EOM
pascal@12656 46 #!/bin/sh
pascal@12656 47
pascal@12656 48 case "\$1" in
pascal@12656 49 ''|:*) ;;
pascal@12656 50 *) cat <<EOT
pascal@12656 51 Usage: \$0 [display] [geometry] [depth]
pascal@12656 52 Default: \$0 :1 1920x1024 24
pascal@12656 53 EOT
pascal@12656 54 exit 1
pascal@12656 55 esac
pascal@12656 56
pascal@12656 57 . \$HOME/.config/slitaz/applications.conf
pascal@12656 58 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} &
pascal@12656 59 export DISPLAY=:\${1:-1}
pascal@12656 60 exec \$WINDOW_MANAGER
pascal@12656 61 EOM
pascal@12656 62 chmod +x $fs/usr/bin/startvnc
pascal@3631 63 }