Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2020 17:28:43 +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: r548253 - in head/graphics: . glx-utils mesa-demos
Message-ID:  <202009111728.08BHShvE009018@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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



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