From owner-svn-ports-all@freebsd.org Fri Sep 11 17:28:44 2020 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 A503A3E1049; Fri, 11 Sep 2020 17:28:44 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4Bp2mD3t7Lz4cKb; Fri, 11 Sep 2020 17:28:44 +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 63EDD27432; Fri, 11 Sep 2020 17:28:44 +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 08BHSiT0009023; Fri, 11 Sep 2020 17:28:44 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08BHShvE009018; Fri, 11 Sep 2020 17:28:43 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <202009111728.08BHShvE009018@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 11 Sep 2020 17:28:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r548253 - in head/graphics: . glx-utils mesa-demos X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/graphics: . glx-utils mesa-demos X-SVN-Commit-Revision: 548253 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.33 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: Fri, 11 Sep 2020 17:28:44 -0000 Author: jbeich Date: Fri Sep 11 17:28:43 2020 New Revision: 548253 URL: https://svnweb.freebsd.org/changeset/ports/548253 Log: graphics/glx-utils: add new port A few popular OpenGL X11 demos from Mesa: - glxinfo prints capabilities of OpenGL driver - glxgears draws rotating gears and prints FPS Inspired by: D26077, glx-utils (CentOS, PkgSrc), glxinfo (AUR, MacPorts, Nix) Motivated by: testing GLX on Xwayland, avoiding cruft and extra deps Added: head/graphics/glx-utils/ head/graphics/glx-utils/Makefile (contents, props changed) head/graphics/glx-utils/distinfo (contents, props changed) head/graphics/glx-utils/pkg-descr (contents, props changed) Modified: head/graphics/Makefile (contents, props changed) head/graphics/mesa-demos/Makefile (contents, props changed) Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Fri Sep 11 16:45:32 2020 (r548252) +++ head/graphics/Makefile Fri Sep 11 17:28:43 2020 (r548253) @@ -261,6 +261,7 @@ SUBDIR += glosm SUBDIR += glpng SUBDIR += gltt + SUBDIR += glx-utils SUBDIR += gmic SUBDIR += gmic-qt SUBDIR += gmt Added: head/graphics/glx-utils/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/glx-utils/Makefile Fri Sep 11 17:28:43 2020 (r548253) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= glx-utils +DISTVERSIONPREFIX= ${GL_ACCOUNT}-${GL_PROJECT}- +DISTVERSION= 8.4.0-43 +CATEGORIES= graphics + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= List GLX capabilities and simple renderer + +LICENSE= MIT + +CONFLICTS_INSTALL= mesa-demos + +USES= gl localbase:ldflags xorg +USE_GITLAB= yes +USE_GL= gl +USE_XORG= x11 +GL_SITE= https://gitlab.freedesktop.org +GL_ACCOUNT= mesa +GL_PROJECT= demos +GL_COMMIT= 0de7436be906b720f503668609404c97ea3a124b +WRKSRC_SUBDIR= src/xdemos +PLIST_FILES= bin/glxgears \ + bin/glxinfo \ + ${NULL} + +do-build: + (cd ${WRKSRC} && ${CC} ${CFLAGS} -o glxinfo glxinfo.c glinfo_common.c ${LDFLAGS} -lGL -lX11) + (cd ${WRKSRC} && ${CC} ${CFLAGS} -o glxgears glxgears.c ${LDFLAGS} -lGL -lX11 -lm) + +do-install: + ${INSTALL_PROGRAM} ${PLIST_FILES:Mbin/*:S,^bin,${WRKSRC},} \ + ${STAGEDIR}${PREFIX}/bin + +.include Added: head/graphics/glx-utils/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/glx-utils/distinfo Fri Sep 11 17:28:43 2020 (r548253) @@ -0,0 +1,3 @@ +TIMESTAMP = 1596536383 +SHA256 (mesa-demos-0de7436be906b720f503668609404c97ea3a124b_GL0.tar.gz) = 6f2889b07d8437810e8f734733c117c4e0f25c492a91b72a3bc6b9b620a7cbd9 +SIZE (mesa-demos-0de7436be906b720f503668609404c97ea3a124b_GL0.tar.gz) = 20749697 Added: head/graphics/glx-utils/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/glx-utils/pkg-descr Fri Sep 11 17:28:43 2020 (r548253) @@ -0,0 +1,6 @@ +A few popular OpenGL X11 demos from Mesa: + +- glxinfo prints capabilities of OpenGL driver +- glxgears draws rotating gears and prints FPS + +WWW: https://www.mesa3d.org/ Modified: head/graphics/mesa-demos/Makefile ============================================================================== --- head/graphics/mesa-demos/Makefile Fri Sep 11 16:45:32 2020 (r548252) +++ head/graphics/mesa-demos/Makefile Fri Sep 11 17:28:43 2020 (r548253) @@ -14,6 +14,8 @@ LICENSE= MIT LIB_DEPENDS= libdrm.so:graphics/libdrm +CONFLICTS_INSTALL= glx-utils + USES= gmake gl localbase pkgconfig tar:bzip2 xorg GNU_CONFIGURE= yes USE_GL= egl gbm gl glesv2 glew glu glut