Skip to content

Commit 3040ad8

Browse files
committed
New package: nx-libs-3.5.99.22
1 parent 2bfbb3f commit 3040ad8

File tree

4 files changed

+87
-0
lines changed

4 files changed

+87
-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: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Template file for 'nx-libs'
2+
pkgname=nx-libs
3+
version=3.5.99.24
4+
revision=1
5+
build_style=gnu-configure
6+
make_build_args="CONFIGURE=echo"
7+
make_install_args="PREFIX=/usr"
8+
hostmakedepends="autoconf automake libtool pkg-config which imake xkbcomp gccmakedep"
9+
makedepends="xorgproto zlib-devel libjpeg-turbo-devel libpng-devel
10+
libXext-devel libXdamage-devel libXrandr-devel libXtst-devel pixman-devel
11+
libXfont2-devel libxml2-devel libXcomposite-devel libXinerama-devel
12+
libXpm-devel font-util"
13+
short_desc="NX X11 protocol compression libraries"
14+
maintainer="eoli3n <jkirsz@gmail.com>"
15+
license="GPL-2.0-or-later"
16+
homepage="https://github.com/ArcticaProject/nx-libs"
17+
distfiles="https://github.com/ArcticaProject/nx-libs/archive/$version/$pkgname-$version.tar.gz"
18+
checksum=e1ea9ae7621ca955e9650caacd2260eed26aae2be4eff2b44c2b1aaecd69f9eb
19+
python_version=3
20+
nocross="imake attempts to run target executables on host"
21+
22+
post_patch() {
23+
# Replace hard-coded /usr/local ProjectRoot
24+
vsed -e '/ProjectRoot/s,/usr/local,/usr,' -i nx-X11/config/cf/site.def
25+
# Manually run autoreconf in pre_configure, disable in Makefile
26+
vsed -e 's/autoreconf/echo &-disabled/' -i Makefile
27+
}
28+
29+
pre_configure() {
30+
# Create configure scripts for all subprojects
31+
local _subdir
32+
for _subdir in nxcomp nx-X11/lib nxcompshad nxproxy nxdialog; do
33+
( cd ${_subdir} && autoreconf -vfsi )
34+
done
35+
}
36+
37+
do_configure() {
38+
# Configure all subprojects in advance of build
39+
local _subdir
40+
for _subdir in nxcomp nxcompshad nxproxy nxdialog; do
41+
( cd ${_subdir} && ./configure ${configure_args} )
42+
done
43+
44+
# nx-X11 configure has an extra argument
45+
( cd nx-X11/lib && ./configure ${configure_args} --disable-poll )
46+
}
47+
48+
post_install() {
49+
# Remove conflicting GL headers
50+
rm -rf ${DESTDIR}/usr/include/GL
51+
}
52+
53+
nx-libs-devel_install() {
54+
depends="${sourcepkg}>=${version}_${revision}"
55+
short_desc+=" - development files"
56+
pkg_install() {
57+
vmove usr/include
58+
vmove "usr/lib/*.a"
59+
vmove "usr/lib/*.so"
60+
vmove usr/lib/pkgconfig
61+
}
62+
}

0 commit comments

Comments
 (0)