diff --git a/net/tigervnc-server/files/patch-common_rfb_ZRLEDecoder.cxx b/net/tigervnc-server/files/patch-common_rfb_ZRLEDecoder.cxx new file mode 100644 index 000000000000..bd97820b5fb7 --- /dev/null +++ b/net/tigervnc-server/files/patch-common_rfb_ZRLEDecoder.cxx @@ -0,0 +1,15 @@ +--- common/rfb/ZRLEDecoder.cxx.orig 2024-07-23 08:50:25 UTC ++++ common/rfb/ZRLEDecoder.cxx +@@ -126,10 +126,10 @@ void ZRLEDecoder::zrleDecode(const Rect& r, rdr::InStr + Pixel maxPixel = pf.pixelFromRGB((uint16_t)-1, (uint16_t)-1, (uint16_t)-1); + bool fitsInLS3Bytes = maxPixel < (1<<24); + bool fitsInMS3Bytes = (maxPixel & 0xff) == 0; +- bool isLowCPixel = (sizeof(T) == 4) && ++ bool isLowCPixel = (sizeof(T) == 4) && (pf.depth <= 24) && + ((fitsInLS3Bytes && pf.isLittleEndian()) || + (fitsInMS3Bytes && pf.isBigEndian())); +- bool isHighCPixel = (sizeof(T) == 4) && ++ bool isHighCPixel = (sizeof(T) == 4) && (pf.depth <= 24) && + ((fitsInLS3Bytes && pf.isBigEndian()) || + (fitsInMS3Bytes && pf.isLittleEndian())); + diff --git a/net/tigervnc-viewer/Makefile b/net/tigervnc-viewer/Makefile index e9161161ec94..5d9644cec68a 100644 --- a/net/tigervnc-viewer/Makefile +++ b/net/tigervnc-viewer/Makefile @@ -1,36 +1,38 @@ PKGNAMESUFFIX= -viewer CATEGORIES= net +PORTREVISION= 1 COMMENT= TigerVNC Viewer WWW= https://tigervnc.org/ USES+= gnome iconv jpeg magick:7,build xorg USE_XORG+= ice pixman sm x11 xcursor xext xfixes xft xi xinerama xrender xrandr LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig \ libfltk.so:x11-toolkits/fltk \ libnettle.so:security/nettle \ libgmp.so:math/gmp \ libavcodec.so:multimedia/ffmpeg OPTIONS_DEFINE= DOCS GNUTLS NLS OPTIONS_DEFAULT= GNUTLS OPTIONS_SUB= yes NLS_CMAKE_BOOL= ENABLE_NLS NLS_USES= gettext GNUTLS_CMAKE_BOOL= ENABLE_GNUTLS GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls DESKTOP_ENTRIES= "TigerVNC viewer" "Connect to VNC server and display remote desktop" \ "${PORTNAME}" "vncviewer" "Network;" false DESCR= ${.CURDIR}/pkg-descr post-patch: # do not build server components and tests @${REINPLACE_CMD} \ -e 's|add_subdirectory(unix)||' \ -e 's|add_subdirectory(tests)||' \ ${WRKSRC}/CMakeLists.txt MASTERDIR= ${.CURDIR}/../tigervnc-server + .include "${MASTERDIR}/Makefile.common.mk"