/[gentoo-x86]/net-misc/tightvnc/tightvnc-1.2.9-r1.ebuild
Gentoo

Contents of /net-misc/tightvnc/tightvnc-1.2.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (show annotations) (download)
Sat Nov 11 15:52:41 2006 UTC (12 years, 10 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.2_rc1-r5)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tightvnc/tightvnc-1.2.9-r1.ebuild,v 1.18 2006/04/23 22:09:10 morfic Exp $
4
5 inherit eutils toolchain-funcs
6
7 IUSE="java tcpd"
8
9 S="${WORKDIR}/vnc_unixsrc"
10 DESCRIPTION="A great client/server software package allowing remote network access to graphical desktops."
11 SRC_URI="mirror://sourceforge/vnc-tight/${P}_unixsrc.tar.bz2"
12 HOMEPAGE="http://www.tightvnc.com/"
13
14 KEYWORDS="x86 ppc sparc alpha amd64"
15 LICENSE="GPL-2"
16 SLOT="0"
17
18 DEPEND="|| ( ( x11-libs/libXaw
19 x11-proto/xextproto
20 >=x11-misc/imake-1
21 x11-misc/gccmakedep
22 app-text/rman
23 x11-libs/libXp
24 x11-proto/inputproto
25 x11-proto/kbproto
26 x11-proto/printproto
27 x11-proto/scrnsaverproto
28 )
29 virtual/x11
30 )
31 ~media-libs/jpeg-6b
32 sys-libs/zlib
33 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
34 !net-misc/vnc"
35
36 RDEPEND="${DEPEND}
37 dev-lang/perl
38 java? ( || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) )"
39
40 src_unpack() {
41 unpack ${A} && cd ${S}
42 epatch ${FILESDIR}/${P}-gentoo.diff
43 epatch ${FILESDIR}/${P}-gentoo.security.patch
44 epatch ${FILESDIR}/${P}-imake-tmpdir.patch
45 [[ "$(gcc-version)" == "3.4" ]] || [[ "$(gcc-major-version)" == "4" ]] && epatch ${FILESDIR}/${P}-gcc34.patch
46 epatch ${FILESDIR}/x86.patch
47 epatch ${FILESDIR}/${P}-amd64.patch
48 }
49
50 src_compile() {
51 local CDEBUGFLAGS="${CFLAGS}"
52
53 xmkmf -a || die "xmkmf failed"
54
55 make CDEBUGFLAGS="${CDEBUGFLAGS}" World || die "make World failed"
56 cd Xvnc && ./configure || die "Configure failed."
57
58 if use tcpd; then
59 make EXTRA_LIBRARIES="-lwrap -lnss_nis" CDEBUGFLAGS="${CDEBUGFLAGS}" EXTRA_DEFINES="-DUSE_LIBWRAP=1"
60 else
61 make CDEBUGFLAGS="${CDEBUGFLAGS}"
62 fi
63 }
64
65 src_install() {
66 # the web based interface and the java viewer need the java class files
67 insinto /usr/share/tightvnc/classes ; doins classes/*
68
69 dodir /usr/share/man/man1 /usr/bin
70 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die "vncinstall failed"
71
72 dodoc ChangeLog README WhatsNew
73 use java && dodoc ${FILESDIR}/README.JavaViewer
74 newdoc vncviewer/README README.vncviewer
75 }

  ViewVC Help
Powered by ViewVC 1.1.20