blob: 1801d0b75c74a3c448d83d4a99f376a24d8ae4e2 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ssvnc/ssvnc-1.0.23.ebuild,v 1.1 2009/06/21 21:59:54 vapier Exp $
inherit eutils multilib
DESCRIPTION="VNC viewer that adds encryption security to VNC connections"
HOMEPAGE="http://www.karlrunge.com/x11vnc/ssvnc.html"
SRC_URI="mirror://sourceforge/ssvnc/${P}.src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="java"
RDEPEND="sys-libs/zlib
media-libs/jpeg
dev-libs/openssl
dev-lang/tk
java? ( virtual/jre )
x11-libs/libICE
x11-libs/libSM
x11-libs/libXaw
x11-libs/libX11
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXp
x11-libs/libXpm
x11-libs/libXt"
DEPEND="${RDEPEND}
java? ( virtual/jdk )
x11-misc/imake"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.0.22-build.patch
epatch "${FILESDIR}"/${PN}-1.0.22-optional-java.patch
sed -i \
-e '/CXXDEBUGFLAGS =/s:-O2:$(CXXFLAGS):' \
-e '/CDEBUGFLAGS =/s:-O2:$(CFLAGS):' \
vnc_unixsrc/vncviewer/Makefile
sed -i \
-e "/^LIB/s:lib/:$(get_libdir)/:" \
-e $(use java || echo '/^JSRC/s:=.*:=:') \
Makefile
}
src_compile() {
emake || die
emake all || die
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc README
}
|