mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
net/tigervnc-viewer-java: add port
This commit is contained in:
parent
9579e6273d
commit
4747e10509
@ -1510,6 +1510,7 @@
|
||||
SUBDIR += throttled
|
||||
SUBDIR += tigervnc-server
|
||||
SUBDIR += tigervnc-viewer
|
||||
SUBDIR += tigervnc-viewer-java
|
||||
SUBDIR += tightvnc
|
||||
SUBDIR += timed
|
||||
SUBDIR += tintin++
|
||||
|
41
net/tigervnc-viewer-java/Makefile
Normal file
41
net/tigervnc-viewer-java/Makefile
Normal file
@ -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"
|
14
net/tigervnc-viewer-java/files/vncviewer-java.in
Normal file
14
net/tigervnc-viewer-java/files/vncviewer-java.in
Normal file
@ -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 "$@"
|
5
net/tigervnc-viewer-java/pkg-descr
Normal file
5
net/tigervnc-viewer-java/pkg-descr
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user