1 |
commit: e5976f5462b19b5c5cd61db49fe3bd1913103534 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 22 10:04:40 2018 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 22 10:04:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5976f54 |
7 |
|
8 |
net-misc/nx: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-misc/nx/Manifest | 2 - |
13 |
net-misc/nx/files/1.5.0/nxcomp-1.5.0-pic.patch | 20 ---- |
14 |
.../files/nx-3.2.0-nxproxy_read_from_stdin.patch | 68 ------------- |
15 |
.../nx/files/nx-3.5.0.17-cflags_ar_ranlib.patch | 100 ------------------- |
16 |
.../files/nx-3.5.0.30-fix_X11_underlinking.patch | 11 --- |
17 |
net-misc/nx/nx-3.5.0.30.ebuild | 106 --------------------- |
18 |
net-misc/nx/nx-3.5.0.32.ebuild | 104 -------------------- |
19 |
7 files changed, 411 deletions(-) |
20 |
|
21 |
diff --git a/net-misc/nx/Manifest b/net-misc/nx/Manifest |
22 |
index 782057d00b2..e276636a000 100644 |
23 |
--- a/net-misc/nx/Manifest |
24 |
+++ b/net-misc/nx/Manifest |
25 |
@@ -1,3 +1 @@ |
26 |
-DIST nx-libs-3.5.0.30-full.tar.gz 6639925 BLAKE2B 81b8bb4f39b6d7881c5a488e43ffcd2450917f48887f20eb9f1d98772a9a3aaaee9b901f9568b70bd9a2ae8f94768fb91b88b3aed8687871933f7b5506f1eb79 SHA512 223c73de1b8988d17a555a7dd56c14ddc27855b7c1d9a9b28c053161a707520c1fcef697c3d9148222dae23e1465e72821455271477ac835d5cc63498b45e005 |
27 |
-DIST nx-libs-3.5.0.32-full.tar.gz 6801696 BLAKE2B 05101b49e2e18d38527aaade47b067f0f7bb744ee2c9b0fde0458117630bd1b75990e0258cec092149026635e142f2a031fdc1656a5770111c445a7e7989c6b2 SHA512 8b4a042993d45e1aee3e13e8b86f68cd5b2a8b52e9299de6129abd8e3bb89d73cf2b44b03d3c7fabbd8329abc06dc912ac95bbf936b6478b05fc202cc29a090f |
28 |
DIST nx-libs-3.5.0.33-full.tar.gz 6811378 BLAKE2B f20de5f9f7214fa38f290b2a200481aeb80461b07839a19ca54059d0fb26de769f0d11720b6d443dd618b6ac5ce590a086a21745420411e6a09bfad65e8f8d79 SHA512 cfaa201e5422ddd8d1f12d3f0711d6d7a05fcd92379e5108c7c066ce8ae748f2f80f3bbbbba093d73cfe671fffc912443eb3ced0eeca1ab5a221c46488aa8bc5 |
29 |
|
30 |
diff --git a/net-misc/nx/files/1.5.0/nxcomp-1.5.0-pic.patch b/net-misc/nx/files/1.5.0/nxcomp-1.5.0-pic.patch |
31 |
deleted file mode 100644 |
32 |
index 2ccaf978dd0..00000000000 |
33 |
--- a/net-misc/nx/files/1.5.0/nxcomp-1.5.0-pic.patch |
34 |
+++ /dev/null |
35 |
@@ -1,20 +0,0 @@ |
36 |
---- nxcomp/Makefile.in.agriffis 2005-11-12 12:48:42.000000000 -0500 |
37 |
-+++ nxcomp/Makefile.in 2005-12-15 12:24:46.000000000 -0500 |
38 |
-@@ -32,7 +32,7 @@ |
39 |
- |
40 |
- CXX = @CXX@ |
41 |
- CXXFLAGS = @CXXFLAGS@ @X_CFLAGS@ @DEFS@ \ |
42 |
-- -Wall -Wpointer-arith |
43 |
-+ -Wall -Wpointer-arith -fPIC |
44 |
- CXXINCLUDES = |
45 |
- CXXDEFINES = |
46 |
- |
47 |
-@@ -42,7 +42,7 @@ |
48 |
- |
49 |
- CC = @CC@ |
50 |
- CCFLAGS = @CFLAGS@ @X_CFLAGS@ @DEFS@ \ |
51 |
-- -Wall -Wpointer-arith |
52 |
-+ -Wall -Wpointer-arith -fPIC |
53 |
- CCINCLUDES = |
54 |
- CCDEFINES = |
55 |
- |
56 |
|
57 |
diff --git a/net-misc/nx/files/nx-3.2.0-nxproxy_read_from_stdin.patch b/net-misc/nx/files/nx-3.2.0-nxproxy_read_from_stdin.patch |
58 |
deleted file mode 100644 |
59 |
index bce692d10a7..00000000000 |
60 |
--- a/net-misc/nx/files/nx-3.2.0-nxproxy_read_from_stdin.patch |
61 |
+++ /dev/null |
62 |
@@ -1,68 +0,0 @@ |
63 |
---- Main.c.old 2007-07-18 17:39:13.000000000 +0200 |
64 |
-+++ Main.c 2008-03-12 04:40:30.000000000 +0100 |
65 |
-@@ -36,28 +36,48 @@ |
66 |
- int result = -1; |
67 |
- |
68 |
- char *options = NULL; |
69 |
-- |
70 |
-+ |
71 |
-+ char *nx_commfd_str = NULL; |
72 |
-+ |
73 |
- options = getenv("NX_DISPLAY"); |
74 |
-- |
75 |
-- if (NXTransParseCommandLine(argc, argv) < 0) |
76 |
-+ |
77 |
-+ if ((nx_commfd_str = getenv("NX_COMMFD")) != NULL) |
78 |
- { |
79 |
-- NXTransCleanup(); |
80 |
-- } |
81 |
-+ int nx_commfd = atoi(nx_commfd_str); |
82 |
- |
83 |
-- if (NXTransParseEnvironment(options, 0) < 0) |
84 |
-- { |
85 |
-- NXTransCleanup(); |
86 |
-+ if (result) |
87 |
-+ result = NXTransCreate(nx_commfd, NX_MODE_SERVER, options); |
88 |
-+ |
89 |
-+ // go into endless loop |
90 |
-+ |
91 |
-+ if (result) |
92 |
-+ { |
93 |
-+ while (NXTransRunning(NX_FD_ANY)) |
94 |
-+ result = NXTransContinue(NULL); |
95 |
-+ } |
96 |
- } |
97 |
-+ else |
98 |
-+ { |
99 |
-+ if (NXTransParseCommandLine(argc, argv) < 0) |
100 |
-+ { |
101 |
-+ NXTransCleanup(); |
102 |
-+ } |
103 |
-+ |
104 |
-+ if (NXTransParseEnvironment(options, 0) < 0) |
105 |
-+ { |
106 |
-+ NXTransCleanup(); |
107 |
-+ } |
108 |
-+ |
109 |
-+ /* |
110 |
-+ * This should not return... |
111 |
-+ */ |
112 |
-+ |
113 |
-+ #ifdef TEST |
114 |
-+ fprintf(stderr, "Main: Yielding control to NX entry point.\n"); |
115 |
-+ #endif |
116 |
- |
117 |
-- /* |
118 |
-- * This should not return... |
119 |
-- */ |
120 |
-- |
121 |
-- #ifdef TEST |
122 |
-- fprintf(stderr, "Main: Yielding control to NX entry point.\n"); |
123 |
-- #endif |
124 |
-- |
125 |
-- result = NXTransProxy(NX_FD_ANY, NX_MODE_ANY, NX_DISPLAY_ANY); |
126 |
-+ result = NXTransProxy(NX_FD_ANY, NX_MODE_ANY, NX_DISPLAY_ANY); |
127 |
-+ } |
128 |
- |
129 |
- /* |
130 |
- * ...So these should not be called. |
131 |
|
132 |
diff --git a/net-misc/nx/files/nx-3.5.0.17-cflags_ar_ranlib.patch b/net-misc/nx/files/nx-3.5.0.17-cflags_ar_ranlib.patch |
133 |
deleted file mode 100644 |
134 |
index 668a6bf4c31..00000000000 |
135 |
--- a/net-misc/nx/files/nx-3.5.0.17-cflags_ar_ranlib.patch |
136 |
+++ /dev/null |
137 |
@@ -1,100 +0,0 @@ |
138 |
-diff -Naur nx-libs-3.5.0.17.orig/nxcomp/Makefile.in nx-libs-3.5.0.17/nxcomp/Makefile.in |
139 |
---- nx-libs-3.5.0.17.orig/nxcomp/Makefile.in 2013-01-09 15:03:33.152952758 +0100 |
140 |
-+++ nx-libs-3.5.0.17/nxcomp/Makefile.in 2013-01-09 15:05:39.771898159 +0100 |
141 |
-@@ -243,8 +243,8 @@ |
142 |
- |
143 |
- $(LIBARCHIVE): $(CXXOBJ) $(COBJ) |
144 |
- rm -f $(LIBARCHIVE) |
145 |
-- ar clq $(LIBARCHIVE) $(CXXOBJ) $(COBJ) |
146 |
-- ranlib $(LIBARCHIVE) |
147 |
-+ $(AR) $(LIBARCHIVE) $(CXXOBJ) $(COBJ) |
148 |
-+ $(RANLIB) $(LIBARCHIVE) |
149 |
- |
150 |
- $(LIBCYGSHARED): $(LIBARCHIVE) |
151 |
- $(CC) -shared -o $(LIBCYGSHARED) \ |
152 |
-diff -Naur nx-libs-3.5.0.17.orig/nxcomp/configure.in nx-libs-3.5.0.17/nxcomp/configure.in |
153 |
---- nx-libs-3.5.0.17.orig/nxcomp/configure.in 2013-01-09 15:03:33.151952758 +0100 |
154 |
-+++ nx-libs-3.5.0.17/nxcomp/configure.in 2013-01-09 15:04:03.312940892 +0100 |
155 |
-@@ -7,8 +7,7 @@ |
156 |
- |
157 |
- dnl Set our default compilation flags. |
158 |
- |
159 |
--CXXFLAGS="$CXXFLAGS -O3 -fno-rtti -fno-exceptions" |
160 |
--CFLAGS="$CFLAGS -O3" |
161 |
-+CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" |
162 |
- |
163 |
- dnl Reset default linking directives. |
164 |
- |
165 |
-diff -Naur nx-libs-3.5.0.17.orig/nxcompext/Makefile.in nx-libs-3.5.0.17/nxcompext/Makefile.in |
166 |
---- nx-libs-3.5.0.17.orig/nxcompext/Makefile.in 2013-01-09 15:03:33.164952753 +0100 |
167 |
-+++ nx-libs-3.5.0.17/nxcompext/Makefile.in 2013-01-09 15:06:08.747879052 +0100 |
168 |
-@@ -125,8 +125,8 @@ |
169 |
- |
170 |
- $(LIBARCHIVE): $(CXXOBJ) $(COBJ) |
171 |
- rm -f $(LIBARCHIVE) |
172 |
-- ar clq $(LIBARCHIVE) $(CXXOBJ) $(COBJ) |
173 |
-- ranlib $(LIBARCHIVE) |
174 |
-+ $(AR) $(LIBARCHIVE) $(CXXOBJ) $(COBJ) |
175 |
-+ $(RANLIB) $(LIBARCHIVE) |
176 |
- |
177 |
- $(LIBCYGSHARED): $(LIBARCHIVE) |
178 |
- $(CC) -shared -o $(LIBCYGSHARED) \ |
179 |
-diff -Naur nx-libs-3.5.0.17.orig/nxcompext/configure.in nx-libs-3.5.0.17/nxcompext/configure.in |
180 |
---- nx-libs-3.5.0.17.orig/nxcompext/configure.in 2013-01-09 15:03:33.164952753 +0100 |
181 |
-+++ nx-libs-3.5.0.17/nxcompext/configure.in 2013-01-09 15:04:16.247935801 +0100 |
182 |
-@@ -5,11 +5,6 @@ |
183 |
- AC_INIT(NXlib.h) |
184 |
- AC_PREREQ(2.13) |
185 |
- |
186 |
--dnl Reset default compilation flags. |
187 |
-- |
188 |
--CXXFLAGS="$CXXFLAGS -O3" |
189 |
--CFLAGS="$CFLAGS -O3" |
190 |
-- |
191 |
- dnl Reset default linking directives. |
192 |
- |
193 |
- LIBSTATIC="" |
194 |
-diff -Naur nx-libs-3.5.0.17.orig/nxcompshad/Makefile.in nx-libs-3.5.0.17/nxcompshad/Makefile.in |
195 |
---- nx-libs-3.5.0.17.orig/nxcompshad/Makefile.in 2013-01-09 15:03:33.163952754 +0100 |
196 |
-+++ nx-libs-3.5.0.17/nxcompshad/Makefile.in 2013-01-09 15:06:16.933873660 +0100 |
197 |
-@@ -158,8 +158,8 @@ |
198 |
- |
199 |
- $(LIBARCHIVE): $(CXXOBJ) $(COBJ) |
200 |
- rm -f $(LIBARCHIVE) |
201 |
-- ar clq $(LIBARCHIVE) $(CXXOBJ) $(COBJ) |
202 |
-- ranlib $(LIBARCHIVE) |
203 |
-+ $(AR) $(LIBARCHIVE) $(CXXOBJ) $(COBJ) |
204 |
-+ $(RANLIB) $(LIBARCHIVE) |
205 |
- |
206 |
- $(LIBDLL): $(LIBARCHIVE) |
207 |
- $(CC) -o $@ \ |
208 |
-diff -Naur nx-libs-3.5.0.17.orig/nxcompshad/configure.in nx-libs-3.5.0.17/nxcompshad/configure.in |
209 |
---- nx-libs-3.5.0.17.orig/nxcompshad/configure.in 2013-01-09 15:03:33.163952754 +0100 |
210 |
-+++ nx-libs-3.5.0.17/nxcompshad/configure.in 2013-01-09 15:04:20.073934295 +0100 |
211 |
-@@ -5,11 +5,6 @@ |
212 |
- AC_INIT(Shadow.h) |
213 |
- AC_PREREQ(2.13) |
214 |
- |
215 |
--dnl Reset default compilation flags. |
216 |
-- |
217 |
--CXXFLAGS="$CXXFLAGS -O3" |
218 |
--CPPFLAGS="$CPPFLAGS -O3" |
219 |
-- |
220 |
- dnl Reset default linking directives. |
221 |
- |
222 |
- LIBSTATIC="" |
223 |
-diff -Naur nx-libs-3.5.0.17.orig/nxproxy/configure.in nx-libs-3.5.0.17/nxproxy/configure.in |
224 |
---- nx-libs-3.5.0.17.orig/nxproxy/configure.in 2013-01-09 15:03:33.163952754 +0100 |
225 |
-+++ nx-libs-3.5.0.17/nxproxy/configure.in 2013-01-09 15:04:24.842932418 +0100 |
226 |
-@@ -5,11 +5,6 @@ |
227 |
- AC_INIT(Main.c) |
228 |
- AC_PREREQ(2.13) |
229 |
- |
230 |
--dnl Reset default compilation flags. |
231 |
-- |
232 |
--CXXFLAGS="$CXXFLAGS -O3" |
233 |
--CPPFLAGS="$CPPFLAGS -O3" |
234 |
-- |
235 |
- dnl Prefer headers and libraries from nx-X11 if present. |
236 |
- |
237 |
- if test -d "../nx-X11/exports/include" ; then |
238 |
|
239 |
diff --git a/net-misc/nx/files/nx-3.5.0.30-fix_X11_underlinking.patch b/net-misc/nx/files/nx-3.5.0.30-fix_X11_underlinking.patch |
240 |
deleted file mode 100644 |
241 |
index 87d73c5a8d3..00000000000 |
242 |
--- a/net-misc/nx/files/nx-3.5.0.30-fix_X11_underlinking.patch |
243 |
+++ /dev/null |
244 |
@@ -1,11 +0,0 @@ |
245 |
---- nx-X11/lib/X11/Imakefile.orig 2015-04-24 15:24:36.171666957 +0200 |
246 |
-+++ nx-X11/lib/X11/Imakefile 2015-04-24 15:25:17.516179627 +0200 |
247 |
-@@ -107,7 +107,7 @@ |
248 |
- EXCLUDE_SYMBOL = -Wl,--exclude-symbol,XdmcpWrap:_XdmcpWrapperToOddParity |
249 |
- #endif |
250 |
- |
251 |
--REQUIREDLIBS=$(REQUIREDX11LIBS) $(REQUIREDI18NLIBS) $(EXCLUDE_SYMBOL) $(NX_REQUIREDLIBS) |
252 |
-+REQUIREDLIBS=$(REQUIREDX11LIBS) $(REQUIREDI18NLIBS) $(EXCLUDE_SYMBOL) $(NX_REQUIREDLIBS) -ldl |
253 |
- |
254 |
- #if defined(MacIIArchitecture) || defined(SequentArchitecture) || defined(i386ScoArchitecture) |
255 |
- XBSDLIB = /**/ |
256 |
|
257 |
diff --git a/net-misc/nx/nx-3.5.0.30.ebuild b/net-misc/nx/nx-3.5.0.30.ebuild |
258 |
deleted file mode 100644 |
259 |
index 36d736fb7a3..00000000000 |
260 |
--- a/net-misc/nx/nx-3.5.0.30.ebuild |
261 |
+++ /dev/null |
262 |
@@ -1,106 +0,0 @@ |
263 |
-# Copyright 1999-2015 Gentoo Foundation |
264 |
-# Distributed under the terms of the GNU General Public License v2 |
265 |
- |
266 |
-EAPI=5 |
267 |
-inherit autotools eutils multilib readme.gentoo |
268 |
- |
269 |
-DESCRIPTION="NX compression technology core libraries" |
270 |
-HOMEPAGE="http://www.x2go.org/doku.php/wiki:libs:nx-libs" |
271 |
- |
272 |
-SRC_URI="http://code.x2go.org/releases/source/nx-libs/nx-libs-${PV}-full.tar.gz" |
273 |
- |
274 |
-LICENSE="GPL-2" |
275 |
-SLOT="0" |
276 |
-KEYWORDS="amd64 ~ppc x86" |
277 |
-IUSE="elibc_glibc" |
278 |
- |
279 |
-RDEPEND="media-libs/freetype:2 |
280 |
- >=media-libs/libpng-1.2.8:* |
281 |
- >=sys-libs/zlib-1.2.3 |
282 |
- virtual/jpeg:*" |
283 |
- |
284 |
-DEPEND="${RDEPEND} |
285 |
- x11-libs/libfontenc |
286 |
- x11-misc/gccmakedep |
287 |
- x11-misc/imake |
288 |
- x11-proto/inputproto" |
289 |
- |
290 |
-S=${WORKDIR}/nx-libs-${PV} |
291 |
- |
292 |
-DOC_CONTENTS="If you get problems with rendering gtk+ apps, enable the xlib-xcb |
293 |
-useflag on x11-libs/cairo." |
294 |
- |
295 |
-src_prepare() { |
296 |
- # For nxcl/qtnx |
297 |
- cd "${S}"/nxproxy |
298 |
- epatch "${FILESDIR}"/${PN}-3.2.0-nxproxy_read_from_stdin.patch |
299 |
- |
300 |
- cd "${S}" |
301 |
- # -fPIC |
302 |
- epatch "${FILESDIR}"/1.5.0/nxcomp-1.5.0-pic.patch |
303 |
- # Drop force -O3, set AR/RANLIB |
304 |
- epatch "${FILESDIR}"/${PN}-3.5.0.17-cflags_ar_ranlib.patch |
305 |
- # Fix libX11 underlinking, #546868 |
306 |
- epatch "${FILESDIR}"/${P}-fix_X11_underlinking.patch |
307 |
- |
308 |
- # run autoreconf in all neeed folders |
309 |
- for i in nxcomp nxcompext nxcompshad nxproxy; do |
310 |
- cd "${S}"/${i} |
311 |
- eautoreconf ${i} |
312 |
- cd "${S}" |
313 |
- done |
314 |
- |
315 |
- # From xorg-x11-6.9.0-r3.ebuild |
316 |
- cd "${S}/nx-X11" |
317 |
- HOSTCONF="config/cf/host.def" |
318 |
- echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF} |
319 |
- echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
320 |
- echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
321 |
- # Respect LDFLAGS |
322 |
- echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF} |
323 |
- echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF} |
324 |
-} |
325 |
- |
326 |
-src_configure() { |
327 |
- cd "${S}"/nxproxy |
328 |
- econf |
329 |
-} |
330 |
- |
331 |
-src_compile() { |
332 |
- cd "${S}/nx-X11" |
333 |
- FAST=1 emake World WORLDOPTS="" MAKE="make" \ |
334 |
- AR="$(tc-getAR) clq" RANLIB="$(tc-getRANLIB)" \ |
335 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
336 |
- |
337 |
- cd "${S}"/nxproxy |
338 |
- emake |
339 |
-} |
340 |
- |
341 |
-src_install() { |
342 |
- NX_ROOT=/usr/$(get_libdir)/NX |
343 |
- |
344 |
- for x in nxagent nxauth nxproxy; do |
345 |
- make_wrapper $x ./$x ${NX_ROOT}/bin ${NX_ROOT}/$(get_libdir) || |
346 |
- die " $x wrapper creation failed" |
347 |
- done |
348 |
- |
349 |
- into ${NX_ROOT} |
350 |
- dobin "${S}"/nx-X11/programs/Xserver/nxagent |
351 |
- dobin "${S}"/nx-X11/programs/nxauth/nxauth |
352 |
- dobin "${S}"/nxproxy/nxproxy |
353 |
- |
354 |
- for lib in X11 Xau Xcomposite Xdamage Xdmcp Xext Xfixes Xinerama Xpm Xrandr Xrender Xtst; |
355 |
- do |
356 |
- dolib.so "${S}"/nx-X11/lib/${lib}/libNX_${lib}.so* |
357 |
- done |
358 |
- |
359 |
- dolib.so "${S}"/nxcomp/libXcomp.so* |
360 |
- dolib.so "${S}"/nxcompext/libXcompext.so* |
361 |
- dolib.so "${S}"/nxcompshad/libXcompshad.so* |
362 |
- |
363 |
- insinto /etc/nxagent |
364 |
- newins etc/keystrokes.cfg keystroke.cfg |
365 |
- doicon nx-X11/programs/Xserver/hw/nxagent/x2go.xpm |
366 |
- |
367 |
- readme.gentoo_create_doc |
368 |
-} |
369 |
|
370 |
diff --git a/net-misc/nx/nx-3.5.0.32.ebuild b/net-misc/nx/nx-3.5.0.32.ebuild |
371 |
deleted file mode 100644 |
372 |
index d992d5fb33d..00000000000 |
373 |
--- a/net-misc/nx/nx-3.5.0.32.ebuild |
374 |
+++ /dev/null |
375 |
@@ -1,104 +0,0 @@ |
376 |
-# Copyright 1999-2015 Gentoo Foundation |
377 |
-# Distributed under the terms of the GNU General Public License v2 |
378 |
- |
379 |
-EAPI=5 |
380 |
-inherit autotools eutils multilib readme.gentoo |
381 |
- |
382 |
-DESCRIPTION="NX compression technology core libraries" |
383 |
-HOMEPAGE="http://www.x2go.org/doku.php/wiki:libs:nx-libs" |
384 |
- |
385 |
-SRC_URI="http://code.x2go.org/releases/source/nx-libs/nx-libs-${PV}-full.tar.gz" |
386 |
- |
387 |
-LICENSE="GPL-2" |
388 |
-SLOT="0" |
389 |
-KEYWORDS="~amd64 ~ppc ~x86" |
390 |
-IUSE="elibc_glibc" |
391 |
- |
392 |
-RDEPEND="media-libs/freetype:2 |
393 |
- >=media-libs/libpng-1.2.8:* |
394 |
- >=sys-libs/zlib-1.2.3 |
395 |
- virtual/jpeg:*" |
396 |
- |
397 |
-DEPEND="${RDEPEND} |
398 |
- x11-libs/libfontenc |
399 |
- x11-misc/gccmakedep |
400 |
- x11-misc/imake |
401 |
- x11-proto/inputproto" |
402 |
- |
403 |
-S=${WORKDIR}/nx-libs-${PV} |
404 |
- |
405 |
-DOC_CONTENTS="If you get problems with rendering gtk+ apps, enable the xlib-xcb |
406 |
-useflag on x11-libs/cairo." |
407 |
- |
408 |
-src_prepare() { |
409 |
- # For nxcl/qtnx |
410 |
- cd "${S}"/nxproxy |
411 |
- epatch "${FILESDIR}"/${PN}-3.2.0-nxproxy_read_from_stdin.patch |
412 |
- |
413 |
- cd "${S}" |
414 |
- # -fPIC |
415 |
- epatch "${FILESDIR}"/1.5.0/nxcomp-1.5.0-pic.patch |
416 |
- # Drop force -O3, set AR/RANLIB |
417 |
- epatch "${FILESDIR}"/${PN}-3.5.0.17-cflags_ar_ranlib.patch |
418 |
- |
419 |
- # run autoreconf in all neeed folders |
420 |
- for i in nxcomp nxcompext nxcompshad nxproxy; do |
421 |
- cd "${S}"/${i} |
422 |
- eautoreconf ${i} |
423 |
- cd "${S}" |
424 |
- done |
425 |
- |
426 |
- # From xorg-x11-6.9.0-r3.ebuild |
427 |
- cd "${S}/nx-X11" |
428 |
- HOSTCONF="config/cf/host.def" |
429 |
- echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF} |
430 |
- echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
431 |
- echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
432 |
- # Respect LDFLAGS |
433 |
- echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF} |
434 |
- echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF} |
435 |
-} |
436 |
- |
437 |
-src_configure() { |
438 |
- cd "${S}"/nxproxy |
439 |
- econf |
440 |
-} |
441 |
- |
442 |
-src_compile() { |
443 |
- cd "${S}/nx-X11" |
444 |
- FAST=1 emake World WORLDOPTS="" MAKE="make" \ |
445 |
- AR="$(tc-getAR) clq" RANLIB="$(tc-getRANLIB)" \ |
446 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
447 |
- |
448 |
- cd "${S}"/nxproxy |
449 |
- emake |
450 |
-} |
451 |
- |
452 |
-src_install() { |
453 |
- NX_ROOT=/usr/$(get_libdir)/NX |
454 |
- |
455 |
- for x in nxagent nxauth nxproxy; do |
456 |
- make_wrapper $x ./$x ${NX_ROOT}/bin ${NX_ROOT}/$(get_libdir) || |
457 |
- die " $x wrapper creation failed" |
458 |
- done |
459 |
- |
460 |
- into ${NX_ROOT} |
461 |
- dobin "${S}"/nx-X11/programs/Xserver/nxagent |
462 |
- dobin "${S}"/nx-X11/programs/nxauth/nxauth |
463 |
- dobin "${S}"/nxproxy/nxproxy |
464 |
- |
465 |
- for lib in X11 Xau Xcomposite Xdamage Xdmcp Xext Xfixes Xinerama Xpm Xrandr Xrender Xtst; |
466 |
- do |
467 |
- dolib.so "${S}"/nx-X11/lib/${lib}/libNX_${lib}.so* |
468 |
- done |
469 |
- |
470 |
- dolib.so "${S}"/nxcomp/libXcomp.so* |
471 |
- dolib.so "${S}"/nxcompext/libXcompext.so* |
472 |
- dolib.so "${S}"/nxcompshad/libXcompshad.so* |
473 |
- |
474 |
- insinto /etc/nxagent |
475 |
- newins etc/keystrokes.cfg keystroke.cfg |
476 |
- doicon nx-X11/programs/Xserver/hw/nxagent/x2go.xpm |
477 |
- |
478 |
- readme.gentoo_create_doc |
479 |
-} |