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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Feb 6 14:07:22 2007 UTC (12 years, 11 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
drop old
(Portage version: 2.1.2-r8)

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.3_alpha7.ebuild,v 1.9 2006/06/06 18:19:55 gmsoft Exp $
4
5 inherit eutils toolchain-funcs
6
7 IUSE="java tcpd server"
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="~alpha ~amd64 hppa ~ppc ~ppc-macos ~sparc ~x86"
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 server? ( x11-libs/libXp
24 x11-proto/inputproto
25 x11-proto/kbproto
26 x11-proto/printproto
27 x11-proto/scrnsaverproto
28 )
29 )
30 virtual/x11
31 )
32 ~media-libs/jpeg-6b
33 sys-libs/zlib
34 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
35 !net-misc/vnc"
36
37 RDEPEND="${DEPEND}
38 dev-lang/perl
39 java? ( || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) )"
40
41 src_unpack() {
42
43 if ! use server;
44 then
45 echo
46 einfo "The 'server' USE flag will build tightvnc's server."
47 einfo "If '-server' is chosen only the client is built to save space."
48 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
49 ebeep
50 epause 5
51 fi
52
53 unpack ${A} && cd ${S}
54 epatch "${FILESDIR}/${P}-gentoo.diff"
55 epatch "${FILESDIR}/${P}-gentoo.security.patch"
56 epatch "${FILESDIR}/${P}-imake-tmpdir.patch"
57 epatch "${FILESDIR}/x86.patch"
58 epatch "${FILESDIR}/${P}-darwin.patch"
59 epatch "${FILESDIR}/vncserver-1.3.patch"
60 use amd64 && epatch "${FILESDIR}/${P}-amd64.patch"
61 }
62
63 src_compile() {
64 xmkmf -a || die "xmkmf failed"
65
66 make CDEBUGFLAGS="${CFLAGS}" World || die
67
68 if use server; then
69 cd Xvnc && ./configure || die "Configure failed."
70 if use tcpd; then
71 local myextra="-lwrap"
72 use userland_Darwin || myextra="${myextra} -lnss_nis"
73 make EXTRA_LIBRARIES="${myextra}" \
74 CDEBUGFLAGS="${CFLAGS}" \
75 EXTRA_DEFINES="-DUSE_LIBWRAP=1" || die
76 else
77 make CDEBUGFLAGS="${CFLAGS}" || die
78 fi
79 fi
80
81 }
82
83 src_install() {
84 # the web based interface and the java viewer need the java class files
85 if use java; then
86 insinto /usr/share/tightvnc/classes
87 doins classes/*
88 fi
89
90 dodir /usr/share/man/man1 /usr/bin
91 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die "vncinstall failed"
92
93 if ! use server; then
94 rm -f ${D}/usr/bin/vncserver
95 rm -f ${D}/usr/share/man/man1/{Xvnc,vncserver}*
96 fi
97
98 dodoc ChangeLog README WhatsNew
99 use java && dodoc ${FILESDIR}/README.JavaViewer
100 newdoc vncviewer/README README.vncviewer
101 }

  ViewVC Help
Powered by ViewVC 1.1.20