blob: 8782a032cec1a766b2d1f2e380ee19d7b35764f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/vnc/vnc-4.0-r1.ebuild,v 1.19 2006/02/19 21:38:17 kumba Exp $
inherit eutils toolchain-funcs multilib
X_VERSION="6.8.1"
MY_P="${P}-unixsrc"
DESCRIPTION="Remote desktop viewer display system"
HOMEPAGE="http://www.realvnc.com/"
SRC_URI="http://www.realvnc.com/dist/${MY_P}.tar.gz
server? (
http://xorg.freedesktop.org/X11R${X_VERSION}/src/X11R${X_VERSION}-src1.tar.gz
http://xorg.freedesktop.org/X11R${X_VERSION}/src/X11R${X_VERSION}-src2.tar.gz
http://xorg.freedesktop.org/X11R${X_VERSION}/src/X11R${X_VERSION}-src3.tar.gz
)"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ~mips ppc ppc64 sparc x86"
IUSE="server"
RDEPEND="sys-libs/zlib
media-libs/freetype
|| ( ( x11-libs/libSM
x11-libs/libXtst
)
virtual/x11
)
server? ( || ( ( x11-libs/libXi
x11-libs/libXmu
x11-libs/libXrender
)
virtual/x11
)
)
!net-misc/tightvnc"
DEPEND="${RDEPEND}
|| ( ( x11-proto/xextproto
)
virtual/x11
)"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${MY_P}.tar.gz ; cd ${S}
epatch ${FILESDIR}/${P}/vnc-gcc34.patch
epatch ${FILESDIR}/${P}/vnc-cookie.patch
epatch ${FILESDIR}/${P}/vnc-fPIC.patch
epatch ${FILESDIR}/${P}/vnc-idle.patch
epatch ${FILESDIR}/${P}/vnc-restart.patch
epatch ${FILESDIR}/${P}/vnc-via.patch
if use server; then
unpack X11R${X_VERSION}-src1.tar.gz
unpack X11R${X_VERSION}-src2.tar.gz
unpack X11R${X_VERSION}-src3.tar.gz
# patches from Redhat
epatch ${FILESDIR}/${P}/vnc-sparc.patch
epatch ${FILESDIR}/${P}/vnc-xorg-x11-fixes.patch
epatch ${FILESDIR}/${P}/vnc-def.patch
epatch ${FILESDIR}/${P}/vnc-xclients.patch
epatch ${FILESDIR}/${P}/vnc-xorg.patch
epatch ${FILESDIR}/${P}/imake-tmpdir.patch
epatch ${FILESDIR}/xc.patch-cfbglblt8.patch
epatch ${FILESDIR}/xc.patch-eieio.patch
epatch xc.patch
HOSTCONF="${S}/xc/config/cf/vnc.def"
echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF}
echo "#define FontDir /usr/share/fonts" >> ${HOSTCONF}
echo "#define LibDir /usr/$(get_libdir)/X11" >> ${HOSTCONF}
echo "#define UsrLibDir /usr/$(get_libdir)" >> ${HOSTCONF}
fi
}
src_compile() {
econf --with-installed-zlib || die
emake || die
if use server; then
cd ${S}/xc
make CDEBUGFLAGS="${CFLAGS}" CXXDEBUGFLAGS="${CXXFLAGS}" World FAST=1 || die
fi
}
src_install() {
dodir /usr/bin /usr/share/man/man1
use server && dodir /usr/$(get_libdir)/modules/extensions
./vncinstall ${D}/usr/bin ${D}/usr/share/man ${D}/usr/$(get_libdir)/modules/extensions || die
dodoc LICENCE.TXT README
use server || (
rm ${D}/usr/bin/vncserver
rm ${D}/usr/bin/x0vncserver
rm ${D}/usr/share/man/man1/vncpasswd.1.gz
rm ${D}/usr/bin/vncpasswd
rm ${D}/usr/share/man/man1/vncconfig.1.gz
rm ${D}/usr/bin/vncconfig
rm ${D}/usr/share/man/man1/vncserver.1.gz
rm ${D}/usr/share/man/man1/x0vncserver.1.gz
)
ewarn "Note that the free VNC release is not designed for use on untrusted networks"
}
|