From nobody Tue Feb 07 15:13:00 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PB67w2HRYz3n5Ck; Tue, 7 Feb 2023 15:13:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PB67w1Rw6z3qfq; Tue, 7 Feb 2023 15:13:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675782780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u1ZhaXlfUlfkZ38Mi5a33rYeqA/aaVp1kwoDSHrZfR0=; b=sRhcHBFfj4x51sTuxEI4OdbWnvWrh9bWuGRIsl7ORR5AcpMJVG8TkQvoE6DQEFtCPZWJDx bB3jaA4kiX8RZ0ks3N7joxZAHwTwBnyB8muqMQfvOrohYNmUEKtO3JXhPcJIPnJogL3Bzb 5rOYSM+V3t65Q177cVCmd+E5kTMFFTgqAIrqi2W/Ra5LRGxxR8qysQ0Ovtk/8LOhCXG3jR R8D5wtpxhtrIRVKKPjHJKTg/scA/7qAcNWYkB821igCvU47ynlTA2wyKocjdjKEzTu5sNA eN5kGhRbzqX504JJuXIVi3GbiJ4I/7rROCqd9RIbwwrN0yzSyAWyBkCCVmBXIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675782780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u1ZhaXlfUlfkZ38Mi5a33rYeqA/aaVp1kwoDSHrZfR0=; b=PLYTJJDXjhnBUwQHiOX+EtlVGre1PXkMO9+LjPeelVS5GzjjDUauyJ4Jn/SkfIMtLauYea sejroXcEaIYvnePU2ow6X+ajVHH7zYJMgpuxLEiS+KT8F1qYx/HIveuVbVERKmZ/3YjaC/ YMnJKdKqPw4ywRcdqiCiZLsOB2u1p2kGP1JFWac3J779lt0UKBT+0iMAz9qQLlkA+Tdchk 3BDLsRiLcTfkeBrqU6o1koyWMFCBo1pivyuFA1M71dFnfWtWcGR5o89pR2D3zUvqEhQgrT Vb9tFxidwHC3m1nA1pR/PXtN9ABPHTbajNDP6G8ultI6GkJDDVyCgKhYvAPgaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675782780; a=rsa-sha256; cv=none; b=Zay5SJkaWhi9ghmJKgGX3VfT2kz1+jGtvIXXKcYs1QYsmd8VpwI58W9EefqE2ZPmjT/evr mDGlhvpEi09f8RrQJUDERanabYJXJSaMhOEoiLk9wJFDk0A/jBPcxMGqG5lFopj6bqBnkU JNAK7HnzhmW/EGfpFiYvnmOgfH1rhVhdN5zdG9eSTmUC3Gn+It9ca8Y+4xRUMcy7zqj9C5 ALO9dejyeMsZXAgWNhzHP7erXPBaOI6llVBt07XVdWfBCDHPAwZ3n1BP8c3hE3zj4AwXl6 AGGlE/d4ic74DYxXeAOR6EsYdhoHruUHcqLkAFFlgXDd3q2s2K6JPPyiLwag1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PB67w0VGKzLPQ; Tue, 7 Feb 2023 15:13:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 317FD0IO003645; Tue, 7 Feb 2023 15:13:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 317FD0s1003644; Tue, 7 Feb 2023 15:13:00 GMT (envelope-from git) Date: Tue, 7 Feb 2023 15:13:00 GMT Message-Id: <202302071513.317FD0s1003644@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Koichiro Iwao Subject: git: 4747e1050974 - main - net/tigervnc-viewer-java: add port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: meta X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4747e1050974d56bb33b987fac3f32ddcec19372 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by meta: URL: https://cgit.FreeBSD.org/ports/commit/?id=4747e1050974d56bb33b987fac3f32ddcec19372 commit 4747e1050974d56bb33b987fac3f32ddcec19372 Author: Koichiro Iwao AuthorDate: 2023-02-07 15:05:31 +0000 Commit: Koichiro Iwao CommitDate: 2023-02-07 15:08:05 +0000 net/tigervnc-viewer-java: add port --- net/Makefile | 1 + net/tigervnc-viewer-java/Makefile | 41 ++++++++++++++++++++++++ net/tigervnc-viewer-java/files/vncviewer-java.in | 14 ++++++++ net/tigervnc-viewer-java/pkg-descr | 5 +++ 4 files changed, 61 insertions(+) diff --git a/net/Makefile b/net/Makefile index 0796d9303cc7..469e6b90bae3 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1510,6 +1510,7 @@ SUBDIR += throttled SUBDIR += tigervnc-server SUBDIR += tigervnc-viewer + SUBDIR += tigervnc-viewer-java SUBDIR += tightvnc SUBDIR += timed SUBDIR += tintin++ diff --git a/net/tigervnc-viewer-java/Makefile b/net/tigervnc-viewer-java/Makefile new file mode 100644 index 000000000000..7d52fa24519b --- /dev/null +++ b/net/tigervnc-viewer-java/Makefile @@ -0,0 +1,41 @@ +PKGNAMESUFFIX= -viewer-java +CATEGORIES= net java + +COMMENT= TigerVNC Viewer +WWW= https://tigervnc.org/ + +USES+= jpeg xorg +USE_XORG+= pixman +USE_JAVA= yes +JAVA_VERSION= 8+ + +CMAKE_ARGS+= -DBUILD_JAVA:BOOL=true \ + -DBUILD_VIEWER:BOOL=false \ + -DENABLE_NLS:BOOL=false + +DESKTOP_ENTRIES= "TigerVNC viewer (Java version)" "Connect to VNC server and display remote desktop" \ + "${PORTNAME}" "vncviewer-java" "Network;" false + +DESCR= ${.CURDIR}/pkg-descr +FILESDIR= ${.CURDIR}/files + +JARFILES= VncViewer.jar +PLIST_FILES= ${JARFILES:S,^,${JAVAJARDIR}/,} \ + bin/vncviewer-java +SUB_LIST= JAVAJARDIR="${JAVAJARDIR}" +SUB_FILES= vncviewer-java + +post-patch: + # do not build server components and tests + @${REINPLACE_CMD} \ + -e 's|add_subdirectory(unix)||' \ + -e 's|add_subdirectory(tests)||' \ + ${WRKSRC}/CMakeLists.txt + +do-install: + ${INSTALL_DATA} ${WRKSRC}/java/VncViewer.jar ${STAGEDIR}${JAVAJARDIR}/ + ${INSTALL_SCRIPT} ${WRKDIR}/vncviewer-java ${STAGEDIR}${PREFIX}/bin/ + +MASTERDIR= ${.CURDIR}/../tigervnc-server + +.include "${MASTERDIR}/Makefile.common.mk" diff --git a/net/tigervnc-viewer-java/files/vncviewer-java.in b/net/tigervnc-viewer-java/files/vncviewer-java.in new file mode 100644 index 000000000000..2efeec3e045d --- /dev/null +++ b/net/tigervnc-viewer-java/files/vncviewer-java.in @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Inspired by devel/apache-rat/files/apache-rat.sh.in +# +JAVACMD="${JAVACMD:-"%%LOCALBASE%%/bin/java"}" + +if [ ! -x "${JAVACMD}" ]; then + echo "Error: ${JAVACMD} is not present on your system" >&2 + echo " Please specify the path to an existing java executable with the" >&2 + echo " JAVACMD environment variable when running rat." >&2 + exit 1 +fi + +exec "${JAVACMD}" -jar %%JAVAJARDIR%%/VncViewer.jar "$@" diff --git a/net/tigervnc-viewer-java/pkg-descr b/net/tigervnc-viewer-java/pkg-descr new file mode 100644 index 000000000000..7338f4760639 --- /dev/null +++ b/net/tigervnc-viewer-java/pkg-descr @@ -0,0 +1,5 @@ +This port provides Java version client(viewer) compornents of TigerVNC. + +TigerVNC is a high-performance, platform-neutral implementation of VNC, +a client/server application that allows users to launch and interact with +graphical applications on remote machines.