Skip to content

Commit 76e8769

Browse files
committed
New package: nx-libs-3.5.99.22
1 parent 2bfbb3f commit 76e8769

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

common/shlibs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4040,3 +4040,6 @@ libndr-samba4.so samba-libs-4.13.2_1
40404040
libsmb-transport-samba4.so samba-libs-4.13.2_1
40414041
libutil-cmdline-samba4.so samba-libs-4.13.2_1
40424042
libwinbind-client-samba4.so samba-libs-4.13.2_1
4043+
libXcomp.so.3 nx-libs-3.5.99.24_1
4044+
libXcompshad.so.3 nx-libs-3.5.99.24_1
4045+
libNX_X11.so.6 nx-libs-3.5.99.24_1
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- ./nx-X11/extras/Mesa/src/mesa/main/glheader.h.orig
2+
+++ ./nx-X11/extras/Mesa/src/mesa/main/glheader.h
3+
@@ -62,7 +62,7 @@
4+
#include <stdlib.h>
5+
#include <stdio.h>
6+
#include <string.h>
7+
-#if defined(__linux__) && defined(__i386__)
8+
+#if defined(__GLIBC__) && defined(__i386__)
9+
#include <fpu_control.h>
10+
#endif
11+
#endif
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- ./nx-X11/programs/Xserver/Xext/xf86bigfont.c
2+
+++ ../xf86bigfont.c
3+
@@ -46,7 +46,7 @@
4+
/* Linux libc4 and libc5 only (because glibc doesn't include kernel headers):
5+
Linux 2.0.x and 2.2.x define SHMLBA as PAGE_SIZE, but forget to define
6+
PAGE_SIZE. It is defined in <asm/page.h>. */
7+
-#include <asm/page.h>
8+
+#include <limits.h>
9+
#endif
10+
#ifdef SVR4
11+
#include <sys/sysmacros.h>

srcpkgs/nx-libs/template

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Template file for 'nx-libs'
2+
pkgname=nx-libs
3+
version=3.5.99.24
4+
revision=1
5+
build_style=gnu-makefile
6+
make_install_args="PREFIX=/usr"
7+
hostmakedepends="autoconf automake libtool pkg-config which imake xkbcomp"
8+
makedepends="xorgproto zlib-devel libjpeg-turbo-devel libpng-devel libXext-devel libXdamage-devel libXrandr-devel libXtst-devel pixman-devel gccmakedep libXfont2-devel libxml2-devel libXcomposite-devel libXinerama-devel libXpm-devel font-util"
9+
short_desc="NX X11 protocol compression libraries"
10+
maintainer="eoli3n <jkirsz@gmail.com>"
11+
license="GPL-2.0-or-later"
12+
homepage="https://github.com/ArcticaProject/nx-libs"
13+
distfiles="https://github.com/ArcticaProject/nx-libs/archive/$version/$pkgname-$version.tar.gz"
14+
checksum=e1ea9ae7621ca955e9650caacd2260eed26aae2be4eff2b44c2b1aaecd69f9eb
15+
nocross="imake will be droped in the next version https://github.com/ArcticaProject/nx-libs/issues/975"
16+
python_version=3
17+
18+
post_patch() {
19+
# Every Makefile has /usr/local as PREFIX, so replace that
20+
sed -i -e 's,/usr/local,/usr,' nx-X11/config/cf/site.def
21+
}
22+
23+
do_build() {
24+
make ${makejobs} PREFIX=/usr \
25+
CONFIGURE="./configure ${configure_args} --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --includedir=/usr/include"
26+
}
27+
28+
post_install() {
29+
# remove extras, GL, and other unneeded headers
30+
rm -rf ${DESTDIR}/usr/include/GL
31+
rm -rf ${DESTDIR}/usr/include/nx-X11
32+
rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/XK*.h
33+
rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/*Xv*.h
34+
rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/Xres*.h
35+
rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/XIproto.h
36+
rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/XI.h
37+
rm -rf ${DESTDIR}/usr/include/nx-X11/Xtrans
38+
}

0 commit comments

Comments
 (0)