/[gentoo-x86]/net-misc/tightvnc/tightvnc-1.3_alpha5.ebuild
Gentoo

Contents of /net-misc/tightvnc/tightvnc-1.3_alpha5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Sat Feb 11 22:01:23 2006 UTC (13 years, 7 months ago) by morfic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -1 lines
FILE REMOVED
Applying patch to fix Xvnc crash as reported in Bug#82583
(Portage version: 2.0.53_rc7)

1 # Copyright 1999-2005 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.3_alpha5.ebuild,v 1.16 2005/07/27 07:38:15 eradicator 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/_alpha/dev}_unixsrc.tar.bz2"
12 HOMEPAGE="http://www.tightvnc.com/"
13
14 KEYWORDS="x86 ppc sparc ~amd64 alpha"
15 LICENSE="GPL-2"
16 SLOT="0"
17
18 DEPEND="virtual/x11
19 ~media-libs/jpeg-6b
20 sys-libs/zlib
21 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
22 !net-misc/vnc"
23
24 RDEPEND="${DEPEND}
25 dev-lang/perl
26 java? ( || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) )"
27
28 src_unpack() {
29 unpack ${A} && cd ${S}
30 epatch ${FILESDIR}/${P}-gentoo.diff
31 epatch ${FILESDIR}/${P}-gentoo.security.patch
32 epatch ${FILESDIR}/${P}-imake-tmpdir.patch
33 epatch ${FILESDIR}/x86.patch
34
35 [ "$(gcc-version)" == "3.4" ] && epatch ${FILESDIR}/${P}-gcc34.patch
36 }
37
38 src_compile() {
39 local CDEBUGFLAGS="${CFLAGS}"
40
41 xmkmf -a || die "xmkmf failed"
42
43 make CDEBUGFLAGS="${CDEBUGFLAGS}" World || die "make World failed"
44 cd Xvnc && ./configure || die "Configure failed."
45
46 if use tcpd; then
47 make EXTRA_LIBRARIES="-lwrap -lnss_nis" CDEBUGFLAGS="${CDEBUGFLAGS}" EXTRA_DEFINES="-DUSE_LIBWRAP=1" CC="$(tc-getCC)" || die
48 else
49 make CDEBUGFLAGS="${CDEBUGFLAGS}" CC="$(tc-getCC)" || die
50 fi
51 }
52
53 src_install() {
54 # the web based interface and the java viewer need the java class files
55 insinto /usr/share/tightvnc/classes ; doins classes/*
56
57 dodir /usr/share/man/man1 /usr/bin
58 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die "vncinstall failed"
59
60 dodoc ChangeLog README WhatsNew
61 use java && dodoc ${FILESDIR}/README.JavaViewer
62 newdoc vncviewer/README README.vncviewer
63 }

  ViewVC Help
Powered by ViewVC 1.1.20