aboutsummaryrefslogtreecommitdiff
path: root/net/libvncserver
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2016-06-26 22:25:51 +0000
committerBen Woods <woodsb02@FreeBSD.org>2016-06-26 22:25:51 +0000
commit2930c9b19aa939e6e2e12a837df150483f325400 (patch)
tree6b0b4016b13aad57f01292d7896f29e66fbcd286 /net/libvncserver
parent18fd1bce60ce7e3304877a6c27fdff3f93d31bc1 (diff)
downloadports-2930c9b19aa939e6e2e12a837df150483f325400.tar.gz
ports-2930c9b19aa939e6e2e12a837df150483f325400.zip
Notes
Diffstat (limited to 'net/libvncserver')
-rw-r--r--net/libvncserver/Makefile5
-rw-r--r--net/libvncserver/files/patch-libvncclient_h264.c13
2 files changed, 17 insertions, 1 deletions
diff --git a/net/libvncserver/Makefile b/net/libvncserver/Makefile
index 35a55037ca6e..22363e4a41b3 100644
--- a/net/libvncserver/Makefile
+++ b/net/libvncserver/Makefile
@@ -24,7 +24,7 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
-OPTIONS_DEFINE= GCRYPT IPV6
+OPTIONS_DEFINE= GCRYPT IPV6 VAAPI
OPTIONS_SINGLE= SSL
OPTIONS_SINGLE_SSL= GNUTLS OPENSSL
OPTIONS_DEFAULT= OPENSSL
@@ -43,6 +43,9 @@ GCRYPT_CONFIGURE_WITH= gcrypt
IPV6_CONFIGURE_WITH= ipv6
+VAAPI_LIB_DEPENDS= libva.so:multimedia/libva
+VAAPI_CONFIGURE_WITH= libva
+
post-install:
${INSTALL_DATA} ${WRKSRC}/rfb/default8x16.h ${STAGEDIR}${PREFIX}/include/rfb
diff --git a/net/libvncserver/files/patch-libvncclient_h264.c b/net/libvncserver/files/patch-libvncclient_h264.c
new file mode 100644
index 000000000000..f81e0ece8350
--- /dev/null
+++ b/net/libvncserver/files/patch-libvncclient_h264.c
@@ -0,0 +1,13 @@
+--- libvncclient/h264.c.orig 2016-06-26 17:53:47 UTC
++++ libvncclient/h264.c
+@@ -20,6 +20,10 @@
+ #ifdef LIBVNCSERVER_CONFIG_LIBVA
+
+ #include <X11/Xlib.h>
++#include <va/va_version.h>
++#if VA_CHECK_VERSION(0,39,2)
++#include <va/va_compat.h>
++#endif
+ #include <va/va_x11.h>
+
+ enum _slice_types {