git: 7034613152e3 - main - SpiritVNC is FLTK-based multi-view VNC client.

Alexey Dokuchaev danfe at FreeBSD.org
Tue May 11 09:44:34 UTC 2021


The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7034613152e365155bf3cbe0aa4bef0d1ba9514c

commit 7034613152e365155bf3cbe0aa4bef0d1ba9514c
Author:     Alexey Dokuchaev <danfe at FreeBSD.org>
AuthorDate: 2021-05-11 09:42:48 +0000
Commit:     Alexey Dokuchaev <danfe at FreeBSD.org>
CommitDate: 2021-05-11 09:43:18 +0000

    SpiritVNC is FLTK-based multi-view VNC client.
---
 net/Makefile                                |  1 +
 net/spiritvnc/Makefile                      | 28 ++++++++++++++++++++++++++++
 net/spiritvnc/distinfo                      |  3 +++
 net/spiritvnc/files/patch-Makefile          | 27 +++++++++++++++++++++++++++
 net/spiritvnc/files/patch-src_spiritvnc.cxx | 24 ++++++++++++++++++++++++
 net/spiritvnc/pkg-descr                     | 10 ++++++++++
 6 files changed, 93 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index 3da3edd8b87e..c17cbdefea30 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1408,6 +1408,7 @@
     SUBDIR += socketpipe
     SUBDIR += socketw
     SUBDIR += sofia-sip
+    SUBDIR += spiritvnc
     SUBDIR += spoofer
     SUBDIR += spread
     SUBDIR += spread-j
diff --git a/net/spiritvnc/Makefile b/net/spiritvnc/Makefile
new file mode 100644
index 000000000000..825b2d238d2e
--- /dev/null
+++ b/net/spiritvnc/Makefile
@@ -0,0 +1,28 @@
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
+
+PORTNAME=	spiritvnc
+PORTVERSION=	0.4.5
+CATEGORIES=	net
+
+MAINTAINER=	danfe at FreeBSD.org
+COMMENT=	Multi-view FLTK-based VNC client
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libfltk.so:x11-toolkits/fltk \
+		libfontconfig.so:x11-fonts/fontconfig \
+		libpng.so:graphics/png \
+		libssh2.so:security/libssh2 \
+		libvncclient.so:net/libvncserver
+
+USES=		jpeg pkgconfig xorg
+USE_GITHUB=	yes
+USE_XORG=	x11 xcursor xext xfixes xft xinerama xpm xrender
+
+GH_ACCOUNT=	willbprog127
+GH_PROJECT=	${PORTNAME}-fltk
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/net/spiritvnc/distinfo b/net/spiritvnc/distinfo
new file mode 100644
index 000000000000..161ecbfc1237
--- /dev/null
+++ b/net/spiritvnc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1613369131
+SHA256 (willbprog127-spiritvnc-fltk-0.4.5_GH0.tar.gz) = 6589a06de86396e8335a4477fc25871d90542bf63320f1f2a5977a8a87c3108e
+SIZE (willbprog127-spiritvnc-fltk-0.4.5_GH0.tar.gz) = 47866
diff --git a/net/spiritvnc/files/patch-Makefile b/net/spiritvnc/files/patch-Makefile
new file mode 100644
index 000000000000..577e48df3ca3
--- /dev/null
+++ b/net/spiritvnc/files/patch-Makefile
@@ -0,0 +1,27 @@
+--- Makefile.orig	2021-02-15 06:05:31 UTC
++++ Makefile
+@@ -1,5 +1,5 @@
+ CC       =	c++
+-CFLAGS   =	-O2 -Wall -lpthread `fltk-config --use-images --cxxflags --ldflags` \
++CFLAGS   +=	-Wall -lpthread -lXpm `fltk-config --use-images --cxxflags --ldflags` \
+ 			`pkg-config --cflags --libs libvncclient libvncserver libssh2`
+ DEBUGFLGS=	-g -O0
+ BINDIR   = /usr/local/bin
+@@ -7,6 +7,8 @@ TARGET   =	spiritvnc-fltk
+ SRC 	 =	`ls src/*.cxx`
+ PKGCONF  =	`which pkg-config`
+ 
++all: spiritvnc-fltk
++
+ spiritvnc-fltk:
+ 	@if [ -z ${PKGCONF} ]; then \
+ 		echo " " ; \
+@@ -30,7 +32,7 @@ clean::
+ 	rm -f $(TARGET)
+ 
+ install:
+-	install -c -s -o root -m 555 $(TARGET) $(BINDIR)
++	$(BSD_INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(BINDIR)/spiritvnc
+ 
+ uninstall:
+ 	@if [ -f ${BINDIR}"/"${TARGET} ] ; then \
diff --git a/net/spiritvnc/files/patch-src_spiritvnc.cxx b/net/spiritvnc/files/patch-src_spiritvnc.cxx
new file mode 100644
index 000000000000..987c78f698c7
--- /dev/null
+++ b/net/spiritvnc/files/patch-src_spiritvnc.cxx
@@ -0,0 +1,24 @@
+--- src/spiritvnc.cxx.orig	2021-02-15 06:05:31 UTC
++++ src/spiritvnc.cxx
+@@ -46,6 +46,8 @@
+ #include <FL/Fl_PNG_Image.H>
+ #include "app.h"
+ #include "consts_enums.h"
++#include <X11/xpm.h>
++#include "../spiritvnc.xpm"
+ 
+ 
+ AppVars * app = new AppVars();
+@@ -79,6 +81,12 @@ int main (int argc, char **argv)
+ 
+     // set app icons
+     svCreateAppIcons();
++
++    // set window's icon
++    Pixmap xpm, mask;
++    XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display),
++                            spiritvnc_xpm, &xpm, &mask, NULL);
++    app->mainWin->icon(reinterpret_cast<const void *>(xpm));
+ 
+     // manually trigger misc events callback
+     svPositionWidgets();
diff --git a/net/spiritvnc/pkg-descr b/net/spiritvnc/pkg-descr
new file mode 100644
index 000000000000..56fc8d144128
--- /dev/null
+++ b/net/spiritvnc/pkg-descr
@@ -0,0 +1,10 @@
+SpiritVNC is FLTK-based VNC viewer that allows to have many simultaneous
+connections opened and allows to switch between them efficiently.
+
+Besides regular VNC connections, SpiritVNC also supports VNC-through-SSH
+for encryption and more secure connections.  Also supported are reverse
+or "listening" VNC connections as well as an auto-scanning function that
+displays one VNC viewer for a user-defined time, then automatically
+displays the next connected viewer, and so-on.
+
+WWW: https://www.pismotek.com/brainout/content/spiritvnc.php


More information about the dev-commits-ports-all mailing list