/[gentoo-x86]/net-misc/nx/nx-1.5.0.ebuild
Gentoo

Contents of /net-misc/nx/nx-1.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Aug 10 18:17:14 2007 UTC (12 years, 3 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Removing old NX 1.5 version
(Portage version: 2.1.3.3)

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/nx/nx-1.5.0.ebuild,v 1.3 2007/07/22 08:01:53 dberkholz Exp $
4
5 inherit eutils
6
7 DESCRIPTION="A special version of the X11 libraries supporting NX compression technology"
8 HOMEPAGE="http://www.nomachine.com/developers.php"
9
10 URI_BASE="http://web04.nomachine.com/download/1.5.0/sources"
11 SRC_NX_X11="nx-X11-$PV-21.tar.gz"
12 SRC_NXAGENT="nxagent-$PV-112.tar.gz"
13 SRC_NXAUTH="nxauth-$PV-1.tar.gz"
14 SRC_NXCOMP="nxcomp-$PV-80.tar.gz"
15 SRC_NXCOMPEXT="nxcompext-$PV-20.tar.gz"
16 SRC_NXDESKTOP="nxdesktop-$PV-78.tar.gz"
17 SRC_NXVIEWER="nxviewer-$PV-15.tar.gz"
18 SRC_NXPROXY="nxproxy-$PV-9.tar.gz"
19
20 SRC_URI="$URI_BASE/$SRC_NX_X11 $URI_BASE/$SRC_NXAGENT $URI_BASE/$SRC_NXPROXY
21 $URI_BASE/$SRC_NXAUTH $URI_BASE/$SRC_NXCOMPEXT $URI_BASE/$SRC_NXCOMP
22 rdesktop? ( $URI_BASE/$SRC_NXDESKTOP )
23 vnc? ( $URI_BASE/$SRC_NXVIEWER )"
24
25 LICENSE="GPL-2"
26 SLOT="0"
27 KEYWORDS="~x86"
28 IUSE="rdesktop vnc"
29
30 RDEPEND="x11-libs/libX11
31 x11-libs/libFS
32 x11-libs/libXvMC
33 x11-libs/libICE
34 x11-libs/libXmu
35 x11-libs/libXdmcp
36 x11-libs/libSM
37 x11-libs/libXt
38 x11-libs/libXau
39 x11-libs/libXaw
40 x11-libs/libXp
41 x11-libs/libXpm
42 x11-libs/libXext
43 dev-libs/openssl
44 media-libs/mesa
45 >=media-libs/jpeg-6b-r4
46 >=media-libs/libpng-1.2.8
47 >=sys-libs/zlib-1.2.3
48 virtual/libc"
49
50 DEPEND="${RDEPEND}
51 x11-proto/xproto
52 x11-proto/xf86vidmodeproto
53 x11-proto/glproto
54 x11-proto/videoproto
55 x11-proto/xextproto
56 x11-proto/fontsproto
57 x11-misc/gccmakedep
58 x11-misc/imake
59 app-text/rman
60 "
61 S=${WORKDIR}/${PN//x11/X11}
62
63 src_unpack() {
64 # we can't use ${A} because of bug #61977
65 unpack ${SRC_NX_X11}
66 unpack ${SRC_NXAGENT}
67 unpack ${SRC_NXAUTH}
68 unpack ${SRC_NXCOMPEXT}
69 unpack ${SRC_NXCOMP}
70 unpack ${SRC_NXPROXY}
71 use rdesktop && unpack ${SRC_NXDESKTOP}
72 use vnc && unpack ${SRC_NXVIEWER}
73
74 cd ${S}
75 epatch ${FILESDIR}/1.5.0/nx-x11-windows-linux-resume.patch
76 epatch ${FILESDIR}/1.5.0/nx-x11-1.5.0-plastik-render-fix.patch
77 epatch ${FILESDIR}/1.5.0/nx-x11-1.5.0-xorg7-font-fix.patch
78 epatch ${FILESDIR}/1.5.0/nx-x11-1.5.0-tmp-exec.patch
79 epatch ${FILESDIR}/1.5.0/nx-x11-1.5.0-amd64.patch
80
81 cd ${WORKDIR}/nxcomp
82 epatch ${FILESDIR}/1.5.0/nxcomp-1.5.0-pic.patch
83 epatch ${FILESDIR}/1.5.0/nxcomp-1.5.0-gcc4.patch
84 }
85
86 src_compile() {
87 cd ${WORKDIR}/nxcomp || die
88 ./configure || die
89 emake || die
90
91 cd ${WORKDIR}/nxproxy || die
92 ./configure || die
93 emake || die
94
95 cd ${WORKDIR}/nx-X11 || die
96 emake World || die
97
98 cd ${WORKDIR}/nxcompext || die
99 ./configure || die
100 emake || die
101
102 if use vnc ; then
103 cd ${WORKDIR}/nxviewer || die
104 xmkmf -a || die
105 emake World || die
106 fi
107
108 if use rdesktop ; then
109 cd ${WORKDIR}/nxdesktop || die
110 ./configure || die
111 emake || die
112 fi
113 }
114
115 src_install() {
116 newbin ${FILESDIR}/1.5.0/nxwrapper nxagent || die
117 newbin ${FILESDIR}/1.5.0/nxwrapper nxauth || die
118 newbin ${FILESDIR}/1.5.0/nxwrapper nxproxy || die
119 if use vnc ; then
120 newbin ${FILESDIR}/1.5.0/nxwrapper nxviewer || die
121 newbin ${FILESDIR}/1.5.0/nxwrapper nxpasswd || die
122 fi
123 if use rdesktop ; then
124 newbin ${FILESDIR}/1.5.0/nxwrapper nxdesktop || die
125 fi
126
127 into /usr/lib/NX
128 dobin ${WORKDIR}/nx-X11/programs/Xserver/nxagent || die
129 dobin ${WORKDIR}/nx-X11/programs/nxauth/nxauth || die
130 dobin ${WORKDIR}/nxproxy/nxproxy || die
131
132 if use vnc ; then
133 dobin ${WORKDIR}/nxviewer/nxviewer/nxviewer || die
134 dobin ${WORKDIR}/nxviewer/nxpasswd/nxpasswd || die
135 fi
136
137 if use rdesktop ; then
138 dobin ${WORKDIR}/nxdesktop/nxdesktop || die
139 fi
140
141 dolib.so ${WORKDIR}/nx-X11/lib/X11/libX11.so* || die
142 dolib.so ${WORKDIR}/nx-X11/lib/Xext/libXext.so* || die
143 dolib.so ${WORKDIR}/nx-X11/lib/Xrender/libXrender.so* || die
144 dolib.so ${WORKDIR}/nxcomp/libXcomp.so* || die
145 dolib.so ${WORKDIR}/nxcompext/libXcompext.so* || die
146 }

  ViewVC Help
Powered by ViewVC 1.1.20