Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2019 00:43:21 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r517542 - in head/graphics: . glew glew-wayland
Message-ID:  <201911140043.xAE0hLNM094985@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Thu Nov 14 00:43:21 2019
New Revision: 517542
URL: https://svnweb.freebsd.org/changeset/ports/517542

Log:
  graphics/glew: add -wayland slave
  
  SDL_VIDEODRIVER=wayland doesn't work with current glew package while
  SDL_VIDEODRIVER=x11 doesn't work using this package. So, build against
  libEGL instead of libX11 and let the user decide when to use.
  
  Idea from:	ArchLinux
  Tested by:	SDL (freeorion, ppsspp, renpy)

Added:
  head/graphics/glew-wayland/
  head/graphics/glew-wayland/Makefile   (contents, props changed)
  head/graphics/glew-wayland/pkg-message   (contents, props changed)
  head/graphics/glew-wayland/pkg-plist   (contents, props changed)
Modified:
  head/graphics/Makefile   (contents, props changed)
  head/graphics/glew/Makefile   (contents, props changed)

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Wed Nov 13 23:47:48 2019	(r517541)
+++ head/graphics/Makefile	Thu Nov 14 00:43:21 2019	(r517542)
@@ -250,6 +250,7 @@
     SUBDIR += gle
     SUBDIR += glee
     SUBDIR += glew
+    SUBDIR += glew-wayland
     SUBDIR += glexcess
     SUBDIR += glfw
     SUBDIR += glfw2

Added: head/graphics/glew-wayland/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glew-wayland/Makefile	Thu Nov 14 00:43:21 2019	(r517542)
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTREVISION=	0
+PKGNAMESUFFIX=	-wayland
+
+# https://github.com/nigels-com/glew/issues/172
+MAINTAINER=	jbeich@FreeBSD.org
+
+MASTERDIR=	${.CURDIR}/../glew
+PLIST=		${.CURDIR}/pkg-plist
+PKGMESSAGE=	${.CURDIR}/pkg-message
+
+USE_GL=		gl egl
+USE_XORG=	# empty
+MAKE_ARGS=	NAME=${PORTNAME:tu}${PKGNAMESUFFIX}
+INSTALL_TARGET=	install.lib
+
+OPTIONS_DEFINE=	# empty
+
+post-patch:	slave-post-patch
+slave-post-patch:
+	@${REINPLACE_CMD} 's/Makefile.$$(SYSTEM)/&-egl/' ${WRKSRC}/Makefile
+	@${SED} 's/linux/${OPSYS:tl}/' ${WRKSRC}/config/Makefile.linux-egl \
+		>${WRKSRC}/config/Makefile.${OPSYS:tl}-egl
+
+.include "${MASTERDIR}/Makefile"

Added: head/graphics/glew-wayland/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glew-wayland/pkg-message	Thu Nov 14 00:43:21 2019	(r517542)
@@ -0,0 +1,11 @@
+[
+{ type: install
+  message: <<EOM
+To enable Wayland support in GLEW for a specific application
+  $ LD_PRELOAD=libGLEW-wayland.so <application>
+
+To enable globally
+  $ echo libGLEW.so.2 libGLEW-wayland.so.2 >>/etc/libmap.conf
+EOM
+}
+]

Added: head/graphics/glew-wayland/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glew-wayland/pkg-plist	Thu Nov 14 00:43:21 2019	(r517542)
@@ -0,0 +1,4 @@
+lib/libGLEW-wayland.a
+lib/libGLEW-wayland.so
+lib/libGLEW-wayland.so.2
+lib/libGLEW-wayland.so.2.1.0

Modified: head/graphics/glew/Makefile
==============================================================================
--- head/graphics/glew/Makefile	Wed Nov 13 23:47:48 2019	(r517541)
+++ head/graphics/glew/Makefile	Thu Nov 14 00:43:21 2019	(r517542)
@@ -6,21 +6,21 @@ PORTVERSION=	2.1.0
 CATEGORIES=	graphics
 MASTER_SITES=	SF
 
-MAINTAINER=	zeising@FreeBSD.org
+MAINTAINER?=	zeising@FreeBSD.org
 COMMENT=	OpenGL Extension Wrangler Library
 
 LICENSE=	MIT BSD3CLAUSE
 LICENSE_COMB=	dual
 
 USES=		gmake gl tar:tgz xorg
-USE_XORG=	x11 xext xi xmu
-USE_GL=		gl glu
+USE_XORG?=	x11 xext xi xmu
+USE_GL?=	gl glu
 USE_LDCONFIG=	yes
 
 MAKE_ENV=	GLEW_DEST=${PREFIX} GLEW_PREFIX=${PREFIX}
-INSTALL_TARGET=	install.all
+INSTALL_TARGET?=install.all
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE?=DOCS
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911140043.xAE0hLNM094985>