# Created by: David Mackay # $FreeBSD: head/x11/virtualgl/Makefile 561863 2021-01-17 19:35:20Z swills $ PORTNAME= virtualgl PORTVERSION= 2.6.3 PORTREVISION= 1 CATEGORIES= x11 graphics MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} DISTNAME= VirtualGL-${PORTVERSION} MAINTAINER= davidjx8p@gmail.com COMMENT= Redirects commands from an OpenGL app to another X server LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \ libturbojpeg.so:graphics/libjpeg-turbo \ libxcb-keysyms.so:x11/xcb-util-keysyms ONLY_FOR_ARCHS= amd64 i386 CMAKE_INSTALL_PREFIX= ${LOCALBASE}/VirtualGL DOCSDIR= ${LOCALBASE}/VirtualGL/doc USES= cmake compiler:c++11-lang gl xorg USE_GL= gl glu USE_XORG= x11 xcb xext xtst 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 LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= OPENCL OPENSSL XVIDEO OPTIONS_DEFAULT= OPENCL OPTIONS_SUB= yes OPENCL_CMAKE_BOOL= VGL_FAKEOPENCL OPENCL_BUILD_DEPENDS= opencl>=0:devel/opencl OPENCL_LIB_DEPENDS= libOpenCL.so:devel/ocl-icd OPENCL_DESC= Build OpenCL interposer library OPENSSL_CMAKE_BOOL= VGL_USESSL OPENSSL_USES= ssl XVIDEO_CMAKE_BOOL= VGL_USEXV XVIDEO_USE= XORG=xv .include .if ${ARCH} == "i386" PLIST_SUB+= I386="" PLIST_SUB+= AMD64="@comment " .else PLIST_SUB+= I386="@comment " PLIST_SUB+= AMD64="" .endif post-patch: @${REINPLACE_CMD} -e '/^#define CHECKGL/s,m);, &,' \ ${WRKSRC}/server/VirtualDrawable.cpp .include