wok-next annotate tightvnc/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | d1b6fe8c8301 |
children | f99935f1778a |
rev | line source |
---|---|
pascal@20152 | 1 # SliTaz package receipt v2. |
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@14850 | 8 LICENSE="GPL2" |
pascal@3631 | 9 TARBALL="$PACKAGE-${VERSION}_unixsrc.tar.bz2" |
pascal@3631 | 10 WEB_SITE="http://www.tightvnc.com/" |
pascal@3631 | 11 WGET_URL="$SF_MIRROR/vnc-tight/$TARBALL" |
pascal@20152 | 12 |
pascal@4191 | 13 BUILD_DEPENDS="xorg-imake xorg-gccmakedep xorg-cf-files xorg-libXp \ |
pascal@4191 | 14 xorg-libXaw-dev xorg-libXt-dev xorg-xproto xorg-libXau-dev xorg-libXdmcp-dev \ |
pascal@4191 | 15 xorg-libXmu-dev xorg-xextproto xorg-printproto xorg-kbproto xorg-inputproto \ |
pascal@12657 | 16 xorg-scrnsaverproto xorg-xauth jpeg-dev zlib-dev xorg-libXrandr-dev" |
pascal@20152 | 17 SPLIT="tightvnc tightvnc-extra tightvnc-java tightvnc-viewer" |
pascal@3631 | 18 |
pascal@3631 | 19 # Rules to configure and make the package. |
pascal@3631 | 20 compile_rules() |
pascal@3631 | 21 { |
pascal@3631 | 22 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src |
pascal@3631 | 23 cd $src |
pascal@12658 | 24 sed -i -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \ |
pascal@12658 | 25 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \ |
pascal@12658 | 26 Xvnc/config/cf/X11.tmpl |
pascal@3631 | 27 xmkmf && |
slaxemulator@8383 | 28 make -j1 World && |
pascal@3631 | 29 cd Xvnc && |
pascal@3631 | 30 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1 |
slaxemulator@8383 | 31 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \ |
slaxemulator@8383 | 32 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1 |
pascal@3631 | 33 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g' |
slaxemulator@8383 | 34 make -j1 && |
pascal@12656 | 35 make -j1 DESTDIR=$DESTDIR install |
pascal@3631 | 36 cd .. && |
pascal@12656 | 37 make -j1 DESTDIR=$DESTDIR install |
pascal@3631 | 38 } |
pascal@3631 | 39 |
pascal@3631 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3631 | 41 genpkg_rules() |
pascal@3631 | 42 { |
pascal@20152 | 43 case $PACKAGE in |
pascal@20152 | 44 tightvnc) |
pascal@20152 | 45 TAGS="remote-desktop vnc" |
pascal@20152 | 46 DEPENDS="xorg-base-fonts jpeg zlib" |
pascal@20152 | 47 mkdir -p $fs/usr/bin |
pascal@20152 | 48 cp -a $install/usr/bin/Xvnc $fs/usr/bin |
pascal@20152 | 49 cp $src/vncpasswd/vncpasswd $fs/usr/bin |
pascal@20152 | 50 cat > $fs/usr/bin/startvnc <<EOM |
pascal@12656 | 51 #!/bin/sh |
pascal@12656 | 52 |
pascal@12656 | 53 case "\$1" in |
pascal@12656 | 54 ''|:*) ;; |
pascal@12656 | 55 *) cat <<EOT |
pascal@12656 | 56 Usage: \$0 [display] [geometry] [depth] |
pascal@12656 | 57 Default: \$0 :1 1920x1024 24 |
pascal@12656 | 58 EOT |
pascal@12656 | 59 exit 1 |
pascal@12656 | 60 esac |
pascal@12656 | 61 |
pascal@12656 | 62 . \$HOME/.config/slitaz/applications.conf |
pascal@12656 | 63 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} & |
pascal@12656 | 64 export DISPLAY=:\${1:-1} |
pascal@12656 | 65 exec \$WINDOW_MANAGER |
pascal@12656 | 66 EOM |
pascal@20152 | 67 chmod +x $fs/usr/bin/startvnc |
pascal@20152 | 68 ;; |
pascal@20152 | 69 tightvnc-extra) |
pascal@20152 | 70 CAT="x-window|VNC extra tools." |
pascal@20152 | 71 TAGS="vnc" |
pascal@20152 | 72 DEPENDS="perl jpeg zlib xorg-libXdmcp xorg-libXau xorg-libX11 \ |
pascal@20152 | 73 xorg-libXext" |
pascal@20152 | 74 mkdir -p $fs/usr/bin $fs/etc |
pascal@20152 | 75 cp $src/vncconnect/vncconnect $src/vncserver $fs/usr/bin |
pascal@20152 | 76 cp $src/tightvncserver.conf $fs/etc |
pascal@20152 | 77 cat >> $fs/etc/tightvncserver.conf << 'EOF' |
pascal@20152 | 78 $vncClasses = "/usr/share/vnc/classes"; |
pascal@20152 | 79 $fontPath = "/usr/share/fonts/X11/misc/"; |
pascal@20152 | 80 EOF |
pascal@20152 | 81 ;; |
pascal@20152 | 82 tightvnc-java) |
pascal@20152 | 83 CAT="x-window|VNC Java client." |
pascal@20152 | 84 DEPENDS="tightvnc" |
pascal@20152 | 85 mkdir -p $fs/usr/share/vnc |
pascal@20152 | 86 cp -pa $src/classes $fs/usr/share/vnc |
pascal@20152 | 87 ;; |
pascal@20152 | 88 tightvnc-viewer) |
pascal@20152 | 89 CAT="x-window|VNC client for X." |
pascal@20152 | 90 TAGS="vnc remote-desktop" |
pascal@20152 | 91 DEPENDS="jpeg zlib xorg-libXdmcp xorg-libXau xorg-libX11 \ |
pascal@20152 | 92 xorg-libXext xorg-libXp xorg-libXpm xorg-libICE \ |
pascal@20152 | 93 xorg-libSM xorg-libXt xorg-libXmu xorg-libXaw" |
pascal@20152 | 94 mkdir -p $fs/usr/bin |
pascal@20152 | 95 cp -a $install/usr/bin/vncviewer $fs/usr/bin |
pascal@20152 | 96 ;; |
pascal@20152 | 97 esac |
pascal@3631 | 98 } |