Skip to content

Commit

Permalink
x11/virtualgl: Update to 3.0
Browse files Browse the repository at this point in the history
The most significant update is the addition of EGL backend. To use the
backend with the default GPU, specify VGL_DISPLAY=EGL in the environment
variables.

PR:		260244
Sponsored by:	The FreeBSD Foundation
Approved by:	ygy
Differential Revision:	https://reviews.freebsd.org/D33281
  • Loading branch information
khng300 committed Dec 6, 2021
1 parent 35fd43b commit efef6dc
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 78 deletions.
31 changes: 15 additions & 16 deletions x11/virtualgl/Makefile
@@ -1,35 +1,38 @@
# Created by: David Mackay <davidjx8p@gmail.com>

PORTNAME= virtualgl
PORTVERSION= 2.6.3
PORTREVISION= 2
DISTVERSION= 3.0
CATEGORIES= x11 graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
DISTNAME= VirtualGL-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT= Redirects commands from an OpenGL app to another X server

ONLY_FOR_ARCHS= aarch64 amd64 armv7 i386 powerpc powerpc64 powerpc64le

LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \
libturbojpeg.so:graphics/libjpeg-turbo \
libxcb-keysyms.so:x11/xcb-util-keysyms

ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le

CMAKE_INSTALL_PREFIX= ${LOCALBASE}/VirtualGL
DOCSDIR= ${LOCALBASE}/VirtualGL/doc

USES= cmake compiler:c++11-lang gl xorg
USE_GL= gl glu
USE_GL= egl gl glu
USE_XORG= x11 xcb xext xtst
USE_LDCONFIG= ${PREFIX}/VirtualGL/lib

USE_GITHUB= yes
GH_ACCOUNT= VirtualGL

CMAKE_ARGS= -DTJPEG_INCLUDE_DIR=${LOCALBASE}/include \
-DTJPEG_LIBRARY=${LOCALBASE}/lib/libturbojpeg.so \
-DVGL_FAKEXCB=on -DVGL_SYSTEMFLTK=on \
-DCMAKE_INSTALL_DOCDIR=${DOCSDIR}
USE_LDCONFIG= ${PREFIX}/VirtualGL/lib
CFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CMAKE_INSTALL_PREFIX= ${LOCALBASE}/VirtualGL

OPTIONS_DEFINE= OPENCL OPENSSL XVIDEO
DOCSDIR= ${LOCALBASE}/VirtualGL/doc

OPTIONS_DEFINE= OPENCL OPENSSL XVIDEO DOCS
OPTIONS_DEFAULT= OPENCL
OPTIONS_SUB= yes

Expand All @@ -54,8 +57,4 @@ PLIST_SUB+= I386="@comment "
PLIST_SUB+= AMD64=""
.endif

post-patch:
@${REINPLACE_CMD} -e '/^#define CHECKGL/s,m);, &,' \
${WRKSRC}/server/VirtualDrawable.cpp

.include <bsd.port.post.mk>
6 changes: 3 additions & 3 deletions x11/virtualgl/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1586837136
SHA256 (VirtualGL-2.6.3.tar.gz) = 9be36c540c512068c8fc26a28722e604e0d2c305f7295229f1e1c8283193cb5e
SIZE (VirtualGL-2.6.3.tar.gz) = 1197037
TIMESTAMP = 1638599825
SHA256 (VirtualGL-virtualgl-3.0_GH0.tar.gz) = d6e00a8d0596cafa67955d6211e0dab6c8aa8239bd718f7eca6eb0b032711f9b
SIZE (VirtualGL-virtualgl-3.0_GH0.tar.gz) = 1244021
11 changes: 0 additions & 11 deletions x11/virtualgl/files/patch-server__fakerconfig.cpp

This file was deleted.

24 changes: 0 additions & 24 deletions x11/virtualgl/files/patch-server_faker-glx.cpp

This file was deleted.

11 changes: 0 additions & 11 deletions x11/virtualgl/files/patch-server_faker-sym.h

This file was deleted.

28 changes: 15 additions & 13 deletions x11/virtualgl/pkg-plist
@@ -1,5 +1,6 @@
%%AMD64%%VirtualGL/bin/.vglrun.vars64
%%I386%%VirtualGL/bin/.vglrun.vars32
VirtualGL/bin/eglinfo
VirtualGL/bin/glreadtest
VirtualGL/bin/glxinfo
%%AMD64%%VirtualGL/bin/glxspheres64
Expand All @@ -13,23 +14,24 @@ VirtualGL/bin/vglgenkey
VirtualGL/bin/vgllogin
VirtualGL/bin/vglrun
VirtualGL/bin/vglserver_config
%%DOCSDIR%%/ChangeLog.md
%%DOCSDIR%%/LGPL.txt
%%DOCSDIR%%/LICENSE-FLTK.txt
%%DOCSDIR%%/LICENSE.txt
%%DOCSDIR%%/configdialog.gif
%%DOCSDIR%%/index.html
%%DOCSDIR%%/somerights20.png
%%DOCSDIR%%/sshtunnel.png
%%DOCSDIR%%/subsampling.gif
%%DOCSDIR%%/vgltransport.png
%%DOCSDIR%%/vgltransportservernetwork.png
%%DOCSDIR%%/virtualgl.css
%%DOCSDIR%%/x11transport.png
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.md
%%PORTDOCS%%%%DOCSDIR%%/LGPL.txt
%%PORTDOCS%%%%DOCSDIR%%/LICENSE-FLTK.txt
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
%%PORTDOCS%%%%DOCSDIR%%/configdialog.gif
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/somerights20.png
%%PORTDOCS%%%%DOCSDIR%%/sshtunnel.png
%%PORTDOCS%%%%DOCSDIR%%/subsampling.gif
%%PORTDOCS%%%%DOCSDIR%%/vgltransport.png
%%PORTDOCS%%%%DOCSDIR%%/vgltransportservernetwork.png
%%PORTDOCS%%%%DOCSDIR%%/virtualgl.css
%%PORTDOCS%%%%DOCSDIR%%/x11transport.png
VirtualGL/include/rr.h
VirtualGL/include/rrtransport.h
VirtualGL/lib/libdlfaker.so
VirtualGL/lib/libgefaker.so
VirtualGL/lib/libvglfaker-nodl.so
%%OPENCL%%VirtualGL/lib/libvglfaker-opencl.so
VirtualGL/lib/libvglfaker.so
libdata/ldconfig/virtualgl

0 comments on commit efef6dc

Please sign in to comment.