1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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
This commit is contained in:
Jan Beich 2020-09-11 17:28:43 +00:00
parent e17f5d8168
commit 7679ec76b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548253
5 changed files with 48 additions and 0 deletions

View File

@ -261,6 +261,7 @@
SUBDIR += glosm
SUBDIR += glpng
SUBDIR += gltt
SUBDIR += glx-utils
SUBDIR += gmic
SUBDIR += gmic-qt
SUBDIR += gmt

View File

@ -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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1596536383
SHA256 (mesa-demos-0de7436be906b720f503668609404c97ea3a124b_GL0.tar.gz) = 6f2889b07d8437810e8f734733c117c4e0f25c492a91b72a3bc6b9b620a7cbd9
SIZE (mesa-demos-0de7436be906b720f503668609404c97ea3a124b_GL0.tar.gz) = 20749697

View File

@ -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/

View File

@ -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