aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2016-03-14 21:21:43 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2016-03-14 21:21:43 +0000
commitd290c8f9ad3f173a8590e2805490f0cbaf4f2d78 (patch)
treee9446e19b1bd44488a5e5ed241a2cae3f0120da9 /x11
parented6ec4ea51a1e6cebb12a781304baf908bd4e8f5 (diff)
Reduce number of dependencies, add SSL option.
- Drop dependencies, that are not from ${WRKSRC}/BUILDING.txt. - Add optional OpenSSL support. - Turn (added) XVideo dependency into an option. - Drop obsolete comment (jpeg-turbo can be compiled for non-amd64/i386 architectures since r388256). - Bump PORTREVISION. PR: 203237 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com> Approved by: maintainer timeout (175 days)
Notes
Notes: svn path=/head/; revision=411115
Diffstat (limited to 'x11')
-rw-r--r--x11/virtualgl/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/x11/virtualgl/Makefile b/x11/virtualgl/Makefile
index 0afcd34b8dab..57f5dc0b6cee 100644
--- a/x11/virtualgl/Makefile
+++ b/x11/virtualgl/Makefile
@@ -3,6 +3,7 @@
PORTNAME= virtualgl
PORTVERSION= 2.4.1
+PORTREVISION= 1
CATEGORIES= x11 graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
DISTNAME= VirtualGL-${PORTVERSION}
@@ -10,13 +11,10 @@ DISTNAME= VirtualGL-${PORTVERSION}
MAINTAINER= davidjx8p@gmail.com
COMMENT= Redirects commands from an OpenGL app to another X server
-LIB_DEPENDS= libdrm.so:${PORTSDIR}/graphics/libdrm \
- libfltk.so:${PORTSDIR}/x11-toolkits/fltk \
- libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
+LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk \
libturbojpeg.so:${PORTSDIR}/graphics/libjpeg-turbo \
libxcb-keysyms.so:${PORTSDIR}/x11/xcb-util-keysyms
-# due to the libjpeg-turbo requirement
ONLY_FOR_ARCHS= amd64 i386
CMAKE_INSTALL_PREFIX= ${LOCALBASE}/VirtualGL
@@ -24,13 +22,23 @@ DOCSDIR= ${LOCALBASE}/VirtualGL/doc
USES= cmake compiler:c++11-lang
USE_GL= gl glu
-USE_XORG= x11 xau xcb xdamage xdmcp xext xfixes xxf86vm
+USE_XORG= x11 xcb xext
CMAKE_ARGS= -DTJPEG_INCLUDE_DIR=${LOCALBASE}/include\
-DTJPEG_LIBRARY=${LOCALBASE}/lib/libturbojpeg.so\
-DVGL_FAKEXCB=on -DVGL_SYSTEMFLTK=on -DVGL_SYSTEMGLX=on
USE_LDCONFIG= ${PREFIX}/VirtualGL/fakelib ${PREFIX}/VirtualGL/lib
LDFLAGS+= -L${LOCALBASE}/lib
+OPTIONS_DEFINE= OPENSSL XVIDEO
+
+OPENSSL_CMAKE_ON= -DVGL_USESSL:BOOL=ON
+OPENSSL_CMAKE_OFF= -DVGL_USESSL:BOOL=OFF
+OPENSSL_USE= OPENSSL=yes
+
+XVIDEO_CMAKE_ON= -DVGL_USEXV:BOOL=ON
+XVIDEO_CMAKE_OFF= -DVGL_USEXV:BOOL=OFF
+XVIDEO_USE= XORG=xv
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"