1 |
commit: d05853843c65ce3d5ae34a2ed08a6f6f2a1a7b70 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 7 07:59:14 2021 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 07:59:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0585384 |
7 |
|
8 |
net-misc/nx: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
12 |
|
13 |
net-misc/nx/Manifest | 4 -- |
14 |
net-misc/nx/nx-3.5.99.16.ebuild | 129 ------------------------------------ |
15 |
net-misc/nx/nx-3.5.99.22.ebuild | 138 --------------------------------------- |
16 |
net-misc/nx/nx-3.5.99.23.ebuild | 140 ---------------------------------------- |
17 |
net-misc/nx/nx-3.5.99.24.ebuild | 136 -------------------------------------- |
18 |
5 files changed, 547 deletions(-) |
19 |
|
20 |
diff --git a/net-misc/nx/Manifest b/net-misc/nx/Manifest |
21 |
index 9a0f55242ae..218d7fe31e6 100644 |
22 |
--- a/net-misc/nx/Manifest |
23 |
+++ b/net-misc/nx/Manifest |
24 |
@@ -1,5 +1 @@ |
25 |
-DIST nx-libs-3.5.99.16-full.tar.gz 5269745 BLAKE2B c968b8dde07e397e84786131cede0dd82979c52069a653de540ec833e5189751db15347aa34cf68db523207aa13ae7507cce0b28b09e897606becdc6effd7fcc SHA512 6b80530345da879e62f9ea506a04c77bd918d3c48d46a22548d1534dab14cae5a715290942fdd5c77708f119522312cd667b6b9f286f106463c5a0debbb0451c |
26 |
-DIST nx-libs-3.5.99.22-full.tar.gz 5280116 BLAKE2B 1a15ba04ace5fd46b007652897aa911a883fa2840c07f4e89db970d3235556ee83600f5cd4d9c4b64f7ce4767dd448a3654412051496754d73a2815a7573692f SHA512 53e7f1ffd8bf9dfd08426e30b0a18433b64f926959ab95132c28960f9a2390e67a34b1e07c923bf11f889088711d7d97c1fd123507f39c2077211d2c3cd6857f |
27 |
-DIST nx-libs-3.5.99.23.tar.gz 11073366 BLAKE2B 0e06e9c90f73a0264d8363ee3f75914ada884f469d9ba15b062675625a9922be5ec963eb7611484ef2abea83a100e58b05e6421da67d8b5c5f840737e6b37321 SHA512 b627d521f7a3c43c9c000f770bd1e228842099e794cda32b37df621ac86c650990bdc69810b7ff6117cbd60f0339dda93d1e2acdcfac03ddaa50407d71668b60 |
28 |
-DIST nx-libs-3.5.99.24.tar.gz 11059384 BLAKE2B 79879991c2c0127e43975d42a27159594e3be29b2e358576da4bdc17ef1dc0c27a31c85b12a8c55638abb99db9f7f1fad4f4d8794c01e1327a5cb68558073fc0 SHA512 755f9065da69f0057a7284eb80f214cd272c6753f32ddaa17b4258c6ccba77c8fec82eafaea87bd3e055610dc798cb141d8e947900ad3bad34c681df664df3b2 |
29 |
DIST nx-libs-3.5.99.25.tar.gz 11065489 BLAKE2B 9210441fd2dc38fec14c90018ead4e3ddacd5ac266a26b1d985f874af0abdef3fdc2255614e45ec23816f1194ebe6ffe2beb776901eb1ed206658e8175b1ff57 SHA512 142378ae9a81542ed1bc969e9fcb2d421f1d63f7d46185c80e1e07493298e62379697ca2a367301c0f3df631acb19510113f3852922454fdc964767c36a81004 |
30 |
|
31 |
diff --git a/net-misc/nx/nx-3.5.99.16.ebuild b/net-misc/nx/nx-3.5.99.16.ebuild |
32 |
deleted file mode 100644 |
33 |
index ac90bff91f8..00000000000 |
34 |
--- a/net-misc/nx/nx-3.5.99.16.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,129 +0,0 @@ |
37 |
-# Copyright 1999-2018 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
-inherit autotools eutils toolchain-funcs |
42 |
- |
43 |
-DESCRIPTION="NX compression technology core libraries" |
44 |
-HOMEPAGE="http://www.x2go.org/doku.php/wiki:libs:nx-libs" |
45 |
- |
46 |
-SRC_URI="http://code.x2go.org/releases/source/nx-libs/nx-libs-${PV}-full.tar.gz" |
47 |
- |
48 |
-LICENSE="GPL-2" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="amd64 ~ppc x86" |
51 |
-IUSE="elibc_glibc" |
52 |
- |
53 |
-RDEPEND=" |
54 |
- dev-libs/libxml2 |
55 |
- >=media-libs/libpng-1.2.8:0= |
56 |
- >=sys-libs/zlib-1.2.3 |
57 |
- virtual/jpeg:* |
58 |
- x11-libs/libX11 |
59 |
- x11-libs/libXcomposite |
60 |
- x11-libs/libXdamage |
61 |
- x11-libs/libXdmcp |
62 |
- x11-libs/libXext |
63 |
- x11-libs/libXfixes |
64 |
- x11-libs/libXfont2 |
65 |
- x11-libs/libXinerama |
66 |
- x11-libs/libXpm |
67 |
- x11-libs/libXrandr |
68 |
- x11-libs/libXrender |
69 |
- x11-libs/libXtst |
70 |
- x11-libs/pixman |
71 |
-" |
72 |
- |
73 |
-DEPEND="${RDEPEND} |
74 |
- virtual/pkgconfig |
75 |
- x11-base/xorg-proto |
76 |
- x11-libs/libfontenc |
77 |
- x11-misc/gccmakedep |
78 |
- x11-misc/imake" |
79 |
- |
80 |
-S="${WORKDIR}/nx-libs-${PV}" |
81 |
- |
82 |
-src_prepare() { |
83 |
- default |
84 |
- |
85 |
- # We want predictable behavior. So let's assume we never |
86 |
- # have quilt installed. |
87 |
- sed 's@which quilt@false@' -i mesa-quilt || die |
88 |
- |
89 |
- # run autoreconf in all needed folders |
90 |
- local subdir |
91 |
- for subdir in nxcomp nx-X11/lib nxcompshad nxproxy ; do |
92 |
- pushd ${subdir} || die |
93 |
- eautoreconf |
94 |
- popd || die |
95 |
- done |
96 |
- |
97 |
- # From xorg-x11-6.9.0-r3.ebuild |
98 |
- pushd nx-X11 || die |
99 |
- HOSTCONF="config/cf/host.def" |
100 |
- echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF} |
101 |
- echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
102 |
- echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
103 |
- # Respect LDFLAGS |
104 |
- echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF} |
105 |
- echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF} |
106 |
- # Disable SunRPC, #370767 |
107 |
- echo "#define HasSecureRPC NO" >> ${HOSTCONF} |
108 |
-} |
109 |
- |
110 |
-src_configure() { |
111 |
- local subdir |
112 |
- for subdir in nxcomp nxcompshad nxproxy ; do |
113 |
- pushd ${subdir} || die |
114 |
- econf |
115 |
- popd || die |
116 |
- done |
117 |
- |
118 |
- pushd "nx-X11/lib" || die |
119 |
- econf --disable-poll |
120 |
- popd || die |
121 |
-} |
122 |
- |
123 |
-src_compile() { |
124 |
- # First set up the build environment |
125 |
- emake build-env |
126 |
- |
127 |
- # We replicate the "build-full" make target here because |
128 |
- # we cannot call "make build-full" as it |
129 |
- # - calls autoreconf several times |
130 |
- # - invokes make directly but we prefer our emake |
131 |
- |
132 |
- emake -C nxcomp |
133 |
- emake -C nx-X11/lib |
134 |
- |
135 |
- mkdir -p nx-X11/exports/lib/ || die |
136 |
- local nxlib |
137 |
- for nxlib in libNX_X11.so{,.6{,.3.0}} ; do |
138 |
- ln -s ../../lib/src/.libs/${nxlib} nx-X11/exports/lib/${nxlib} || die |
139 |
- done |
140 |
- |
141 |
- emake -C nxcompshad |
142 |
- |
143 |
- ./mesa-quilt push -a || die |
144 |
- |
145 |
- emake -C nx-X11 BuildDependsOnly FONT_DEFINES="-DHAS_XFONT2" |
146 |
- emake -C nx-X11 World USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" SHLIBDIR="/usr/$(get_libdir)" FONT_DEFINES="-DHAS_XFONT2" XFONTLIB="-lXfont2" |
147 |
- |
148 |
- emake -C nxproxy |
149 |
-} |
150 |
- |
151 |
-src_install() { |
152 |
- emake \ |
153 |
- DESTDIR="${D}" \ |
154 |
- PREFIX="/usr" \ |
155 |
- NXLIBDIR="/usr/$(get_libdir)/${PN}" \ |
156 |
- SHLIBDIR="/usr/$(get_libdir)" \ |
157 |
- USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
158 |
- install |
159 |
- |
160 |
- # Already provided by mesa & related packages |
161 |
- rm -r "${ED%/}"/usr/include/GL || die |
162 |
- |
163 |
- # Get rid of libtool files and static libs. |
164 |
- find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
165 |
-} |
166 |
|
167 |
diff --git a/net-misc/nx/nx-3.5.99.22.ebuild b/net-misc/nx/nx-3.5.99.22.ebuild |
168 |
deleted file mode 100644 |
169 |
index af1c30b085f..00000000000 |
170 |
--- a/net-misc/nx/nx-3.5.99.22.ebuild |
171 |
+++ /dev/null |
172 |
@@ -1,138 +0,0 @@ |
173 |
-# Copyright 1999-2019 Gentoo Authors |
174 |
-# Distributed under the terms of the GNU General Public License v2 |
175 |
- |
176 |
-EAPI=7 |
177 |
-inherit autotools toolchain-funcs |
178 |
- |
179 |
-DESCRIPTION="NX compression technology core libraries" |
180 |
-HOMEPAGE="http://www.x2go.org/doku.php/wiki:libs:nx-libs" |
181 |
- |
182 |
-SRC_URI="http://code.x2go.org/releases/source/nx-libs/nx-libs-${PV}-full.tar.gz" |
183 |
- |
184 |
-LICENSE="GPL-2" |
185 |
-SLOT="0" |
186 |
-KEYWORDS="~amd64 ~ppc ~x86" |
187 |
-IUSE="elibc_glibc" |
188 |
- |
189 |
-RDEPEND=" |
190 |
- dev-libs/libxml2 |
191 |
- >=media-libs/libpng-1.2.8:0= |
192 |
- >=sys-libs/zlib-1.2.3 |
193 |
- virtual/jpeg:* |
194 |
- x11-libs/libX11 |
195 |
- x11-libs/libXcomposite |
196 |
- x11-libs/libXdamage |
197 |
- x11-libs/libXdmcp |
198 |
- x11-libs/libXext |
199 |
- x11-libs/libXfixes |
200 |
- x11-libs/libXfont2 |
201 |
- x11-libs/libXinerama |
202 |
- x11-libs/libXpm |
203 |
- x11-libs/libXrandr |
204 |
- x11-libs/libXrender |
205 |
- x11-libs/libXtst |
206 |
- x11-libs/pixman |
207 |
-" |
208 |
- |
209 |
-DEPEND="${RDEPEND} |
210 |
- x11-base/xorg-proto |
211 |
- x11-libs/libfontenc |
212 |
- x11-misc/gccmakedep |
213 |
- x11-misc/imake" |
214 |
- |
215 |
-BDEPEND=" |
216 |
- virtual/pkgconfig |
217 |
-" |
218 |
- |
219 |
-S="${WORKDIR}/nx-libs-${PV}" |
220 |
- |
221 |
-src_prepare() { |
222 |
- default |
223 |
- |
224 |
- # We want predictable behavior. So let's assume we never |
225 |
- # have quilt installed. |
226 |
- sed 's@which quilt@false@' -i mesa-quilt || die |
227 |
- |
228 |
- # Do not compress man pages by default |
229 |
- sed '/^[[:space:]]*gzip.*man/d' -i Makefile || die |
230 |
- |
231 |
- # run autoreconf in all needed folders |
232 |
- local subdir |
233 |
- for subdir in nxcomp nxdialog nx-X11/lib nxcompshad nxproxy ; do |
234 |
- pushd ${subdir} || die |
235 |
- eautoreconf |
236 |
- popd || die |
237 |
- done |
238 |
- |
239 |
- # From xorg-x11-6.9.0-r3.ebuild |
240 |
- pushd nx-X11 || die |
241 |
- HOSTCONF="config/cf/host.def" |
242 |
- echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF} |
243 |
- echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
244 |
- echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
245 |
- # Respect LDFLAGS |
246 |
- echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF} |
247 |
- echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF} |
248 |
- # Disable SunRPC, #370767 |
249 |
- echo "#define HasSecureRPC NO" >> ${HOSTCONF} |
250 |
-} |
251 |
- |
252 |
-src_configure() { |
253 |
- local subdir |
254 |
- for subdir in nxcomp nxdialog nxcompshad nxproxy ; do |
255 |
- pushd ${subdir} || die |
256 |
- econf |
257 |
- popd || die |
258 |
- done |
259 |
- |
260 |
- pushd "nx-X11/lib" || die |
261 |
- econf --disable-poll |
262 |
- popd || die |
263 |
-} |
264 |
- |
265 |
-src_compile() { |
266 |
- # First set up the build environment |
267 |
- emake build-env |
268 |
- |
269 |
- # We replicate the "build-full" make target here because |
270 |
- # we cannot call "make build-full" as it |
271 |
- # - calls autoreconf several times |
272 |
- # - invokes make directly but we prefer our emake |
273 |
- |
274 |
- emake -C nxcomp |
275 |
- emake -C nx-X11/lib |
276 |
- |
277 |
- mkdir -p nx-X11/exports/lib/ || die |
278 |
- local nxlib |
279 |
- for nxlib in libNX_X11.so{,.6{,.3.0}} ; do |
280 |
- ln -s ../../lib/src/.libs/${nxlib} nx-X11/exports/lib/${nxlib} || die |
281 |
- done |
282 |
- |
283 |
- emake -C nxcompshad |
284 |
- |
285 |
- ./mesa-quilt push -a || die |
286 |
- |
287 |
- emake -C nx-X11 BuildDependsOnly |
288 |
- # Parallel make issue resurfaced, upstream working on autotools switch |
289 |
- emake -j1 -C nx-X11 World \ |
290 |
- USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
291 |
- SHLIBDIR="/usr/$(get_libdir)" |
292 |
- |
293 |
- emake -C nxproxy |
294 |
-} |
295 |
- |
296 |
-src_install() { |
297 |
- emake \ |
298 |
- DESTDIR="${D}" \ |
299 |
- PREFIX="/usr" \ |
300 |
- NXLIBDIR="/usr/$(get_libdir)/${PN}" \ |
301 |
- SHLIBDIR="/usr/$(get_libdir)" \ |
302 |
- USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
303 |
- install |
304 |
- |
305 |
- # Already provided by mesa & related packages |
306 |
- rm -r "${ED}"/usr/include/GL || die |
307 |
- |
308 |
- # Get rid of libtool files and static libs. |
309 |
- find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
310 |
-} |
311 |
|
312 |
diff --git a/net-misc/nx/nx-3.5.99.23.ebuild b/net-misc/nx/nx-3.5.99.23.ebuild |
313 |
deleted file mode 100644 |
314 |
index 55b6eb9d831..00000000000 |
315 |
--- a/net-misc/nx/nx-3.5.99.23.ebuild |
316 |
+++ /dev/null |
317 |
@@ -1,140 +0,0 @@ |
318 |
-# Copyright 1999-2020 Gentoo Authors |
319 |
-# Distributed under the terms of the GNU General Public License v2 |
320 |
- |
321 |
-EAPI=7 |
322 |
-inherit autotools flag-o-matic toolchain-funcs |
323 |
- |
324 |
-DESCRIPTION="NX compression technology core libraries" |
325 |
-HOMEPAGE="https://github.com/ArcticaProject/nx-libs" |
326 |
- |
327 |
-SRC_URI="https://github.com/ArcticaProject/nx-libs/archive/${PV}.tar.gz -> nx-libs-${PV}.tar.gz" |
328 |
- |
329 |
-LICENSE="GPL-2" |
330 |
-SLOT="0" |
331 |
-KEYWORDS="~amd64 ~ppc ~x86" |
332 |
-IUSE="elibc_glibc" |
333 |
- |
334 |
-RDEPEND="dev-libs/libxml2 |
335 |
- >=media-libs/libpng-1.2.8:0= |
336 |
- >=sys-libs/zlib-1.2.3 |
337 |
- virtual/jpeg:* |
338 |
- x11-libs/libX11 |
339 |
- x11-libs/libXcomposite |
340 |
- x11-libs/libXdamage |
341 |
- x11-libs/libXdmcp |
342 |
- x11-libs/libXext |
343 |
- x11-libs/libXfixes |
344 |
- x11-libs/libXfont2 |
345 |
- x11-libs/libXinerama |
346 |
- x11-libs/libXpm |
347 |
- x11-libs/libXrandr |
348 |
- x11-libs/libXrender |
349 |
- x11-libs/libXtst |
350 |
- x11-libs/pixman" |
351 |
- |
352 |
-DEPEND="${RDEPEND} |
353 |
- x11-base/xorg-proto |
354 |
- x11-libs/libfontenc |
355 |
- x11-misc/gccmakedep |
356 |
- x11-misc/imake" |
357 |
- |
358 |
-BDEPEND=" |
359 |
- virtual/pkgconfig" |
360 |
- |
361 |
-S="${WORKDIR}/nx-libs-${PV}" |
362 |
- |
363 |
-src_prepare() { |
364 |
- default |
365 |
- |
366 |
- # We want predictable behavior. So let's assume we never |
367 |
- # have quilt installed. |
368 |
- sed 's@which quilt@false@' -i mesa-quilt || die |
369 |
- |
370 |
- # Do not compress man pages by default |
371 |
- sed '/^[[:space:]]*gzip.*man/d' -i Makefile || die |
372 |
- |
373 |
- # run autoreconf in all needed folders |
374 |
- local subdir |
375 |
- for subdir in nxcomp nxdialog nx-X11/lib nxcompshad nxproxy ; do |
376 |
- pushd ${subdir} || die |
377 |
- eautoreconf |
378 |
- popd || die |
379 |
- done |
380 |
-} |
381 |
- |
382 |
-src_configure() { |
383 |
- # Workaround until fixed upstream |
384 |
- # https://github.com/ArcticaProject/nx-libs/issues/907 |
385 |
- append-cflags -fcommon |
386 |
- |
387 |
- # From xorg-x11-6.9.0-r3.ebuild |
388 |
- pushd nx-X11 || die |
389 |
- HOSTCONF="config/cf/host.def" |
390 |
- echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF} |
391 |
- echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
392 |
- echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
393 |
- # Respect LDFLAGS |
394 |
- echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF} |
395 |
- echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF} |
396 |
- # Disable SunRPC, #370767 |
397 |
- echo "#define HasSecureRPC NO" >> ${HOSTCONF} |
398 |
- popd || die |
399 |
- |
400 |
- local subdir |
401 |
- for subdir in nxcomp nxdialog nxcompshad nxproxy ; do |
402 |
- pushd ${subdir} || die |
403 |
- econf |
404 |
- popd || die |
405 |
- done |
406 |
- |
407 |
- pushd "nx-X11/lib" || die |
408 |
- econf --disable-poll |
409 |
- popd || die |
410 |
-} |
411 |
- |
412 |
-src_compile() { |
413 |
- # First set up the build environment |
414 |
- emake build-env |
415 |
- |
416 |
- # We replicate the "build-full" make target here because |
417 |
- # we cannot call "make build-full" as it |
418 |
- # - calls autoreconf several times |
419 |
- # - invokes make directly but we prefer our emake |
420 |
- |
421 |
- emake -C nxcomp |
422 |
- emake -C nx-X11/lib |
423 |
- |
424 |
- mkdir -p nx-X11/exports/lib/ || die |
425 |
- local nxlib |
426 |
- for nxlib in libNX_X11.so{,.6{,.3.0}} ; do |
427 |
- ln -s ../../lib/src/.libs/${nxlib} nx-X11/exports/lib/${nxlib} || die |
428 |
- done |
429 |
- |
430 |
- emake -C nxcompshad |
431 |
- |
432 |
- ./mesa-quilt push -a || die |
433 |
- |
434 |
- emake -C nx-X11 BuildDependsOnly |
435 |
- # Parallel make issue resurfaced, upstream working on autotools switch |
436 |
- emake -j1 -C nx-X11 World \ |
437 |
- USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
438 |
- SHLIBDIR="/usr/$(get_libdir)" |
439 |
- |
440 |
- emake -C nxproxy |
441 |
-} |
442 |
- |
443 |
-src_install() { |
444 |
- emake \ |
445 |
- DESTDIR="${D}" \ |
446 |
- PREFIX="/usr" \ |
447 |
- NXLIBDIR="/usr/$(get_libdir)/${PN}" \ |
448 |
- SHLIBDIR="/usr/$(get_libdir)" \ |
449 |
- USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
450 |
- install |
451 |
- |
452 |
- # Already provided by mesa & related packages |
453 |
- rm -r "${ED}"/usr/include/GL || die |
454 |
- |
455 |
- # Get rid of libtool files and static libs. |
456 |
- find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
457 |
-} |
458 |
|
459 |
diff --git a/net-misc/nx/nx-3.5.99.24.ebuild b/net-misc/nx/nx-3.5.99.24.ebuild |
460 |
deleted file mode 100644 |
461 |
index f910dec05f0..00000000000 |
462 |
--- a/net-misc/nx/nx-3.5.99.24.ebuild |
463 |
+++ /dev/null |
464 |
@@ -1,136 +0,0 @@ |
465 |
-# Copyright 1999-2020 Gentoo Authors |
466 |
-# Distributed under the terms of the GNU General Public License v2 |
467 |
- |
468 |
-EAPI=7 |
469 |
-inherit autotools toolchain-funcs |
470 |
- |
471 |
-DESCRIPTION="NX compression technology core libraries" |
472 |
-HOMEPAGE="https://github.com/ArcticaProject/nx-libs" |
473 |
- |
474 |
-SRC_URI="https://github.com/ArcticaProject/nx-libs/archive/${PV}.tar.gz -> nx-libs-${PV}.tar.gz" |
475 |
- |
476 |
-LICENSE="GPL-2" |
477 |
-SLOT="0" |
478 |
-KEYWORDS="~amd64 ~ppc ~x86" |
479 |
-IUSE="elibc_glibc" |
480 |
- |
481 |
-RDEPEND="dev-libs/libxml2 |
482 |
- >=media-libs/libpng-1.2.8:0= |
483 |
- >=sys-libs/zlib-1.2.3 |
484 |
- virtual/jpeg:* |
485 |
- x11-libs/libX11 |
486 |
- x11-libs/libXcomposite |
487 |
- x11-libs/libXdamage |
488 |
- x11-libs/libXdmcp |
489 |
- x11-libs/libXext |
490 |
- x11-libs/libXfixes |
491 |
- x11-libs/libXfont2 |
492 |
- x11-libs/libXinerama |
493 |
- x11-libs/libXpm |
494 |
- x11-libs/libXrandr |
495 |
- x11-libs/libXrender |
496 |
- x11-libs/libXtst |
497 |
- x11-libs/pixman" |
498 |
- |
499 |
-DEPEND="${RDEPEND} |
500 |
- x11-base/xorg-proto |
501 |
- x11-libs/libfontenc |
502 |
- x11-misc/gccmakedep |
503 |
- x11-misc/imake" |
504 |
- |
505 |
-BDEPEND=" |
506 |
- virtual/pkgconfig" |
507 |
- |
508 |
-S="${WORKDIR}/nx-libs-${PV}" |
509 |
- |
510 |
-src_prepare() { |
511 |
- default |
512 |
- |
513 |
- # We want predictable behavior. So let's assume we never |
514 |
- # have quilt installed. |
515 |
- sed 's@which quilt@false@' -i mesa-quilt || die |
516 |
- |
517 |
- # Do not compress man pages by default |
518 |
- sed '/^[[:space:]]*gzip.*man/d' -i Makefile || die |
519 |
- |
520 |
- # run autoreconf in all needed folders |
521 |
- local subdir |
522 |
- for subdir in nxcomp nxdialog nx-X11/lib nxcompshad nxproxy ; do |
523 |
- pushd ${subdir} || die |
524 |
- eautoreconf |
525 |
- popd || die |
526 |
- done |
527 |
-} |
528 |
- |
529 |
-src_configure() { |
530 |
- # From xorg-x11-6.9.0-r3.ebuild |
531 |
- pushd nx-X11 || die |
532 |
- HOSTCONF="config/cf/host.def" |
533 |
- echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF} |
534 |
- echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
535 |
- echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
536 |
- # Respect LDFLAGS |
537 |
- echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF} |
538 |
- echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF} |
539 |
- # Disable SunRPC, #370767 |
540 |
- echo "#define HasSecureRPC NO" >> ${HOSTCONF} |
541 |
- popd || die |
542 |
- |
543 |
- local subdir |
544 |
- for subdir in nxcomp nxdialog nxcompshad nxproxy ; do |
545 |
- pushd ${subdir} || die |
546 |
- econf |
547 |
- popd || die |
548 |
- done |
549 |
- |
550 |
- pushd "nx-X11/lib" || die |
551 |
- econf --disable-poll |
552 |
- popd || die |
553 |
-} |
554 |
- |
555 |
-src_compile() { |
556 |
- # First set up the build environment |
557 |
- emake build-env |
558 |
- |
559 |
- # We replicate the "build-full" make target here because |
560 |
- # we cannot call "make build-full" as it |
561 |
- # - calls autoreconf several times |
562 |
- # - invokes make directly but we prefer our emake |
563 |
- |
564 |
- emake -C nxcomp |
565 |
- emake -C nx-X11/lib |
566 |
- |
567 |
- mkdir -p nx-X11/exports/lib/ || die |
568 |
- local nxlib |
569 |
- for nxlib in libNX_X11.so{,.6{,.3.0}} ; do |
570 |
- ln -s ../../lib/src/.libs/${nxlib} nx-X11/exports/lib/${nxlib} || die |
571 |
- done |
572 |
- |
573 |
- emake -C nxcompshad |
574 |
- |
575 |
- ./mesa-quilt push -a || die |
576 |
- |
577 |
- emake -C nx-X11 BuildDependsOnly |
578 |
- # Parallel make issue resurfaced, upstream working on autotools switch |
579 |
- emake -j1 -C nx-X11 World \ |
580 |
- USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
581 |
- SHLIBDIR="/usr/$(get_libdir)" |
582 |
- |
583 |
- emake -C nxproxy |
584 |
-} |
585 |
- |
586 |
-src_install() { |
587 |
- emake \ |
588 |
- DESTDIR="${D}" \ |
589 |
- PREFIX="/usr" \ |
590 |
- NXLIBDIR="/usr/$(get_libdir)/${PN}" \ |
591 |
- SHLIBDIR="/usr/$(get_libdir)" \ |
592 |
- USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
593 |
- install |
594 |
- |
595 |
- # Already provided by mesa & related packages |
596 |
- rm -r "${ED}"/usr/include/GL || die |
597 |
- |
598 |
- # Get rid of libtool files and static libs. |
599 |
- find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
600 |
-} |