summaryrefslogtreecommitdiff
blob: de98eb82fdefccbea0705dea8efcc15b59f503eb (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit multilib eutils

DESCRIPTION="A special version of the X11 libraries supporting NX compression technology"
HOMEPAGE="http://www.nomachine.com/"

SRC_URI="http://svn.gnqs.org/svn/gentoo-nx-overlay/downloads/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
IUSE="rdesktop vnc"

DEPEND="x86? ( ~net-misc/nxcomp-1.5.0 )
	amd64? (
		>=app-emulation/emul-linux-x86-baselibs-2.1.4
		>=app-emulation/emul-linux-x86-xlibs-2.2.1
	)
	!net-misc/nx-x11"

RDEPEND="${DEPEND}"

pkg_setup() {
	# This is a binary x86 package => ABI=x86
	has_multilib_profile && ABI="x86"
}

src_install() {
	into /usr/NX

	dobin nxagent
	dobin nxauth

	if use vnc ; then
		dobin nxviewer
		dobin nxpasswd
	fi

	if use rdesktop ; then
		dobin nxdesktop
	fi

	use x86 || dolib.so libXcomp.so*

	dolib.so libXcompext.so*

	dolib.so libX11.so*

	dolib.so libXext.so*

	dolib.so libXrender.so*
}