From owner-svn-ports-all@freebsd.org Thu Nov 14 00:43:23 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 121DA1C26A9; Thu, 14 Nov 2019 00:43:23 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47D2lZ6kz9z4W8L; Thu, 14 Nov 2019 00:43:22 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C998C20612; Thu, 14 Nov 2019 00:43:22 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xAE0hMth094989; Thu, 14 Nov 2019 00:43:22 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xAE0hLNM094985; Thu, 14 Nov 2019 00:43:21 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201911140043.xAE0hLNM094985@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 14 Nov 2019 00:43:21 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/graphics: . glew glew-wayland X-SVN-Commit-Revision: 517542 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2019 00:43:23 -0000 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: < + +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 +=|' \