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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Apr 18 20:02:32 2007 UTC (12 years, 8 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.2.4)

1 # Copyright 1999-2007 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-r3.ebuild,v 1.8 2007/02/26 12:39:36 armin76 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}_unixsrc.tar.bz2"
12 HOMEPAGE="http://www.tightvnc.com/"
13
14 KEYWORDS="alpha amd64 ppc sparc x86"
15 LICENSE="GPL-2"
16 SLOT="0"
17
18 DEPEND="x11-libs/libX11
19 x11-libs/libXaw
20 x11-libs/libXmu
21 x11-libs/libXp
22 x11-libs/libXt
23 x11-proto/xextproto
24 x11-proto/xproto
25 server? (
26 x11-proto/inputproto
27 x11-proto/kbproto
28 x11-proto/printproto
29 )
30 >=x11-misc/imake-1
31 x11-misc/gccmakedep
32 ~media-libs/jpeg-6b
33 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
34 !net-misc/vnc"
35
36 RDEPEND="${DEPEND}
37 server? (
38 media-fonts/font-misc-misc
39 media-fonts/font-cursor-misc
40 x11-apps/rgb
41 x11-apps/xauth
42 x11-apps/xsetroot
43 )
44 java? ( || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) )"
45
46 src_unpack() {
47
48 if ! use server;
49 then
50 echo
51 einfo "The 'server' USE flag will build tightvnc's server."
52 einfo "If '-server' is chosen only the client is built to save space."
53 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
54 ebeep
55 epause 5
56 fi
57
58 unpack ${A} && cd ${S}
59 epatch "${FILESDIR}/${P}-gentoo.security.patch"
60 epatch "${FILESDIR}/${P}-imake-tmpdir.patch"
61 [[ "$(gcc-version)" == "3.4" ]] || [[ "$(gcc-major-version)" == "4" ]] && epatch ${FILESDIR}/${P}-gcc34.patch
62 epatch "${FILESDIR}/x86.patch"
63 epatch "${FILESDIR}/${P}-amd64.patch"
64 epatch "${FILESDIR}/${PN}-ppcsparc-server.patch"
65 epatch "${FILESDIR}/${P}-pathfixes.patch" # fixes bug 78385 and 146099
66 }
67
68 src_compile() {
69 xmkmf -a || die "xmkmf failed"
70
71 make CDEBUGFLAGS="${CFLAGS}" World || die
72
73 if use server; then
74 cd Xvnc && ./configure || die "Configure failed."
75 if use tcpd; then
76 local myextra="-lwrap"
77 use userland_Darwin || myextra="${myextra} -lnss_nis"
78 make EXTRA_LIBRARIES="${myextra}" \
79 CDEBUGFLAGS="${CFLAGS}" \
80 EXTRA_DEFINES="-DUSE_LIBWRAP=1" || die
81 else
82 make CDEBUGFLAGS="${CFLAGS}" || die
83 fi
84 fi
85
86 }
87
88 src_install() {
89 # the web based interface and the java viewer need the java class files
90 if use java; then
91 insinto /usr/share/tightvnc/classes
92 doins classes/*
93 fi
94
95 dodir /usr/share/man/man1 /usr/bin
96 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die "vncinstall failed"
97
98 if ! use server; then
99 rm -f ${D}/usr/bin/vncserver
100 rm -f ${D}/usr/share/man/man1/{Xvnc,vncserver}*
101 fi
102
103 doicon ${FILESDIR}/vncviewer.png
104 make_desktop_entry vncviewer vncviewer vncviewer.png Network
105
106
107 dodoc ChangeLog README WhatsNew
108 use java && dodoc ${FILESDIR}/README.JavaViewer
109 newdoc vncviewer/README README.vncviewer
110 }

  ViewVC Help
Powered by ViewVC 1.1.20