2014-08-23 22:26:34 +00:00
|
|
|
# Created by: David Mackay <davidjx8p@gmail.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= virtualgl
|
2015-10-19 19:27:44 +00:00
|
|
|
PORTVERSION= 2.4.1
|
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
c++14-lang, c++0x, c11, or gcc-c++11-lib.
PR: 219275
2017-09-10 20:55:38 +00:00
|
|
|
PORTREVISION= 4
|
2014-08-23 22:26:34 +00:00
|
|
|
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
|
|
|
|
|
2016-04-01 14:33:55 +00:00
|
|
|
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \
|
|
|
|
libturbojpeg.so:graphics/libjpeg-turbo \
|
|
|
|
libxcb-keysyms.so:x11/xcb-util-keysyms
|
2014-08-23 22:26:34 +00:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
|
|
|
|
CMAKE_INSTALL_PREFIX= ${LOCALBASE}/VirtualGL
|
|
|
|
DOCSDIR= ${LOCALBASE}/VirtualGL/doc
|
|
|
|
|
2017-06-25 21:07:58 +00:00
|
|
|
USES= cmake:noninja compiler:c++11-lang
|
2015-10-19 19:27:44 +00:00
|
|
|
USE_GL= gl glu
|
2016-03-14 21:21:43 +00:00
|
|
|
USE_XORG= x11 xcb xext
|
2015-10-19 19:27:44 +00:00
|
|
|
CMAKE_ARGS= -DTJPEG_INCLUDE_DIR=${LOCALBASE}/include\
|
|
|
|
-DTJPEG_LIBRARY=${LOCALBASE}/lib/libturbojpeg.so\
|
|
|
|
-DVGL_FAKEXCB=on -DVGL_SYSTEMFLTK=on -DVGL_SYSTEMGLX=on
|
2014-08-23 22:26:34 +00:00
|
|
|
USE_LDCONFIG= ${PREFIX}/VirtualGL/fakelib ${PREFIX}/VirtualGL/lib
|
2015-10-19 19:27:44 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-08-23 22:26:34 +00:00
|
|
|
|
2016-03-14 21:21:43 +00:00
|
|
|
OPTIONS_DEFINE= OPENSSL XVIDEO
|
|
|
|
|
|
|
|
OPENSSL_CMAKE_ON= -DVGL_USESSL:BOOL=ON
|
|
|
|
OPENSSL_CMAKE_OFF= -DVGL_USESSL:BOOL=OFF
|
2017-03-15 14:45:54 +00:00
|
|
|
OPENSSL_USES= ssl
|
2016-03-14 21:21:43 +00:00
|
|
|
|
|
|
|
XVIDEO_CMAKE_ON= -DVGL_USEXV:BOOL=ON
|
|
|
|
XVIDEO_CMAKE_OFF= -DVGL_USEXV:BOOL=OFF
|
|
|
|
XVIDEO_USE= XORG=xv
|
|
|
|
|
2014-08-23 22:26:34 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
PLIST_SUB+= I386=""
|
|
|
|
PLIST_SUB+= AMD64="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= I386="@comment "
|
|
|
|
PLIST_SUB+= AMD64=""
|
|
|
|
.endif
|
|
|
|
|
2018-03-11 15:17:17 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^#define CHECKGL/s,m);, &,' \
|
|
|
|
${WRKSRC}/server/VirtualDrawable.cpp
|
|
|
|
|
2014-08-23 22:26:34 +00:00
|
|
|
.include <bsd.port.post.mk>
|