svn commit: r465837 - in head/graphics/glfw: . files

Tobias Kortkamp tobik at FreeBSD.org
Wed Mar 28 18:47:52 UTC 2018


Author: tobik
Date: Wed Mar 28 18:47:51 2018
New Revision: 465837
URL: https://svnweb.freebsd.org/changeset/ports/465837

Log:
  graphics/glfw: Add WAYLAND option
  
  - Reset maintainer after the third consecutive timeout
  
  PR:		226605
  Submitted by:	greg at unrelenting.technology (based on)
  Approved by:	koalative at gmail.com (maintainer timeout, 2 weeks)

Added:
  head/graphics/glfw/files/patch-src_wl__init.c   (contents, props changed)
Modified:
  head/graphics/glfw/Makefile

Modified: head/graphics/glfw/Makefile
==============================================================================
--- head/graphics/glfw/Makefile	Wed Mar 28 18:42:53 2018	(r465836)
+++ head/graphics/glfw/Makefile	Wed Mar 28 18:47:51 2018	(r465837)
@@ -7,13 +7,12 @@ PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	SF
 
-MAINTAINER=	koalative at gmail.com
+MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Portable framework for OpenGL development
 
 LICENSE=	ZLIB
 
 USES=		cmake localbase zip
-USE_XORG=	x11 xcursor xinerama xrandr xxf86vm
 USE_GL=		glu
 USE_LDCONFIG=	yes
 CMAKE_ARGS=	-DBUILD_SHARED_LIBS:BOOL=ON
@@ -42,7 +41,17 @@ EXAMPLES_FILES2=	clipboard cursor empty events gamma g
 			joysticks monitors msaa reopen sharing tearing threads \
 			title windows
 
-OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_DEFINE=	DOCS EXAMPLES WAYLAND
+OPTIONS_EXCLUDE_FreeBSD_10=	WAYLAND # needs dev/evdev/input.h
+
+WAYLAND_BUILD_DEPENDS=	wayland-protocols>=0:graphics/wayland-protocols
+WAYLAND_CMAKE_BOOL=	GLFW_USE_WAYLAND
+WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland \
+			libwayland-egl.so:graphics/mesa-libs \
+			libxkbcommon.so:x11/libxkbcommon
+WAYLAND_USES=		kde:5 pkgconfig
+WAYLAND_USE=		KDE=ecm
+WAYLAND_USE_OFF=	XORG=x11,xcursor,xinerama,xrandr,xxf86vm
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|lib$${LIB_SUFFIX}/pkgconfig|libdata/pkgconfig|' \

Added: head/graphics/glfw/files/patch-src_wl__init.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glfw/files/patch-src_wl__init.c	Wed Mar 28 18:47:51 2018	(r465837)
@@ -0,0 +1,11 @@
+--- src/wl_init.c.orig	2018-03-28 18:36:50 UTC
++++ src/wl_init.c
+@@ -26,7 +26,7 @@
+ 
+ #include "internal.h"
+ 
+-#include <linux/input.h>
++#include <dev/evdev/input.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>


More information about the svn-ports-all mailing list