summaryrefslogtreecommitdiff
blob: 480f5231a301aa0725bf287826f61b2823df2884 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/rfb/rfb-0.6.1.ebuild,v 1.2 2002/12/09 04:33:19 manson Exp $

DESCRIPTION="comprehensive collection of rfb enabled tools and applications"
HOMEPAGE="http://forums.hexonet.com/"
SRC_URI="http://download.hexonet.com/software/rfb/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc  ~alpha"
IUSE=""

DEPEND="x11-libs/xclass"

S="${WORKDIR}/${P}"

# todo: make this guy use zlib rather than the build in zlib functions ?

src_compile() {
	cd ${S}
	patch -p0<${FILESDIR}/gcc3.x-rfb-0.6.1.patch

	make depend || die "make depend failed"
	make CXXFLAGS="-DUSE_ZLIB_WARREN -I../include ${CXXFLAGS}" || die "make failed"
}

src_install() {
#	dolib lib/librfb.a	#does anything other than rfb use this ?

	dobin rfbcat/rfbcat x0rfbserver/x0rfbserver \
		xrfbviewer/{xplayfbs,xrfbviewer} 
	for f in rfbcat x0rfbserver xvncconnect xrfbviewer ; do
		dobin ${f}/${f}
	done

	doman man/man1/*

	dodoc README
	dohtml rfm_fbs.1.0.html
}