blob: adbb03637d46d6afb61f57bdce348fda9d784a0c (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/nx/nx-3.0.0.ebuild,v 1.1 2007/09/18 09:06:49 voyageur Exp $
inherit autotools eutils multilib
DESCRIPTION="NX compression technology core libraries"
HOMEPAGE="http://www.nomachine.com/developers.php"
URI_BASE="http://web04.nomachine.com/download/${PV}/sources"
SRC_NX_X11="nx-X11-$PV-37.tar.gz"
SRC_NXAGENT="nxagent-$PV-85.tar.gz"
SRC_NXAUTH="nxauth-$PV-6.tar.gz"
SRC_NXCOMP="nxcomp-$PV-43.tar.gz"
SRC_NXCOMPEXT="nxcompext-$PV-18.tar.gz"
SRC_NXCOMPSHAD="nxcompshad-$PV-19.tar.gz"
SRC_NXPROXY="nxproxy-$PV-4.tar.gz"
SRC_URI="$URI_BASE/$SRC_NX_X11 $URI_BASE/$SRC_NXAGENT $URI_BASE/$SRC_NXPROXY $URI_BASE/$SRC_NXAUTH $URI_BASE/$SRC_NXCOMPEXT $URI_BASE/$SRC_NXCOMPSHAD $URI_BASE/$SRC_NXCOMP"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="rdesktop vnc"
RDEPEND="x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXpm
>=media-libs/jpeg-6b-r4
>=media-libs/libpng-1.2.8
>=sys-libs/zlib-1.2.3
rdesktop? ( net-misc/rdesktop )
vnc? ( || ( net-misc/vnc net-misc/tightvnc ) )"
DEPEND="${RDEPEND}
x11-misc/gccmakedep
x11-misc/imake"
S=${WORKDIR}/${PN}-X11
pkg_setup() {
if use vnc; then
if has_version net-misc/vnc && ! built_with_use net-misc/vnc server;
then
die "net-misc/vnc needs to be built with USE=\"server\" for VNC support"
fi
if has_version net-misc/tightvnc && ! built_with_use net-misc/tightvnc server;
then
die "net-misc/tightvnc needs to be built with USE=\"server\" for VNC support"
fi
fi
}
src_unpack() {
unpack ${A}
cd ${WORKDIR}
epatch ${FILESDIR}/1.5.0/nx-x11-1.5.0-tmp-exec.patch
epatch ${FILESDIR}/1.5.0/nxcomp-1.5.0-pic.patch
cd ${WORKDIR}/nxcomp
epatch ${FILESDIR}/${PN}-2.1.0-deprecated-headers.patch
epatch ${FILESDIR}/${PN}-2.1.0-invalid-options.patch
eautoreconf
}
src_compile() {
cd ${WORKDIR}/nxcomp || die
econf || die
emake || die
cd ${WORKDIR}/nxcompshad || die
econf || die
emake || die
cd ${WORKDIR}/nxproxy || die
econf || die
emake || die
cd ${WORKDIR}/nx-X11 || die
emake World || die
cd ${WORKDIR}/nxcompext || die
econf || die
emake || die
}
src_install() {
NX_ROOT=/usr/$(get_libdir)/NX
for x in nxagent nxauth nxproxy; do
make_wrapper $x ./$x ${NX_ROOT}/bin ${NX_ROOT}/$(get_libdir) ||die
done
into ${NX_ROOT}
dobin ${WORKDIR}/nx-X11/programs/Xserver/nxagent
dobin ${WORKDIR}/nx-X11/programs/nxauth/nxauth
dobin ${WORKDIR}/nxproxy/nxproxy
dolib.so ${WORKDIR}/nx-X11/lib/X11/libX11.so*
dolib.so ${WORKDIR}/nx-X11/lib/Xext/libXext.so*
dolib.so ${WORKDIR}/nx-X11/lib/Xrender/libXrender.so*
dolib.so ${WORKDIR}/nxcomp/libXcomp.so*
dolib.so ${WORKDIR}/nxcompext/libXcompext.so*
dolib.so ${WORKDIR}/nxcompshad/libXcompshad.so*
}
|