turbovnc: update to 3.0.2.

This commit is contained in:
Evgeny Ermakov 2022-12-21 03:07:48 +11:00 committed by Toyam Cox
parent 40aa9193a7
commit 00191af020
3 changed files with 31 additions and 22 deletions

1
srcpkgs/turbovnc-viewer Symbolic link
View File

@ -0,0 +1 @@
turbovnc

View File

@ -1,13 +0,0 @@
Try to include <asm/page.h> only if __GLIBC__ is defined also.
--- a/unix/Xvnc/programs/Xserver/Xext/xf86bigfont.c 2014-07-20 02:45:59.000000000 +0200
+++ b/unix/Xvnc/programs/Xserver/Xext/xf86bigfont.c 2015-09-01 10:28:30.171432632 +0200
@@ -40,7 +40,7 @@
#include <sys/types.h>
#ifdef HAS_SHM
-#if defined(linux) && (!defined(__GNU_LIBRARY__) || __GNU_LIBRARY__ < 2)
+#if defined(linux) && (!defined(__GNU_LIBRARY__) || __GNU_LIBRARY__ < 2) && defined(__GLIBC__)
/* libc4 does not define __GNU_LIBRARY__, libc5 defines __GNU_LIBRARY__ as 1 */
/* Linux libc4 and libc5 only (because glibc doesn't include kernel headers):
Linux 2.0.x and 2.2.x define SHMLBA as PAGE_SIZE, but forget to define

View File

@ -1,30 +1,51 @@
# Template file for 'turbovnc'
pkgname=turbovnc
version=2.2.7
version=3.0.2
revision=1
build_style=cmake
configure_args="-DTJPEG_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libturbojpeg.so -DTVNC_BUILDJAVA=0
-DTVNC_SYSTEMLIBS=ON"
hostmakedepends="rsync"
makedepends="libjpeg-turbo-devel libXt-devel libXaw-devel libXcursor-devel pam-devel
zlib-devel freetype-devel bzip2-devel openssl-devel"
configure_args="-DCMAKE_INSTALL_JAVADIR=/usr/lib/turbovnc
-DTJPEG_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libturbojpeg.so
-DTVNC_SYSTEMLIBS=ON -DTVNC_BUILDWEBSERVER=OFF"
hostmakedepends="openjdk17"
makedepends="bzip2-devel freetype-devel libjpeg-turbo-devel libX11-devel
libXext-devel libXi-devel openssl-devel pam-devel zlib-devel"
depends="perl"
short_desc="Optimized version of TightVNC VNC client and server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://turbovnc.org"
distfiles="${SOURCEFORGE_SITE}/turbovnc/${pkgname}-${version}.tar.gz"
checksum=8a9a86c5028b70f8d6bc8a5317bba1e3010a72242b1b5b18d958272b5249b8cd
checksum=616dc72ce52351b70a239c2f464c83136e6143a23c7d316e3b29f68ea71c9949
conf_files="/etc/*.conf"
archs="i686* x86_64* ppc64*"
conflicts="tigervnc>=0"
# Need this to make <sys/socket.h> define struct ucred with musl
CFLAGS="-D_GNU_SOURCE"
if [ "$CROSS_BUILD" ]; then
makedepends+=" openjdk17"
fi
pre_configure() {
. /etc/profile.d/openjdk.sh
}
post_install() {
rm -rf ${DESTDIR}/etc/sysconfig
rm -rf ${DESTDIR}/etc/init.d
rm ${DESTDIR}/usr/share/man/man1/Xserver.1
mv ${DESTDIR}/usr/lib/turbovnc/README.md \
${DESTDIR}/usr/share/doc/TurboVNC/README-vncviewer.md
}
turbovnc-viewer_package() {
short_desc+=" - viewer"
depends="openjdk17"
conflicts="tigervnc>=0"
pkg_install() {
vmove usr/bin/vncviewer
vmove usr/lib
vmove usr/share/doc/TurboVNC/README-vncviewer.md
vmove usr/share/man/man1/vncviewer.1
}
}