mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04: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:
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
|
@ -261,6 +261,7 @@
|
||||||
SUBDIR += glosm
|
SUBDIR += glosm
|
||||||
SUBDIR += glpng
|
SUBDIR += glpng
|
||||||
SUBDIR += gltt
|
SUBDIR += gltt
|
||||||
|
SUBDIR += glx-utils
|
||||||
SUBDIR += gmic
|
SUBDIR += gmic
|
||||||
SUBDIR += gmic-qt
|
SUBDIR += gmic-qt
|
||||||
SUBDIR += gmt
|
SUBDIR += gmt
|
||||||
|
|
36
graphics/glx-utils/Makefile
Normal file
36
graphics/glx-utils/Makefile
Normal 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>
|
3
graphics/glx-utils/distinfo
Normal file
3
graphics/glx-utils/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1596536383
|
||||||
|
SHA256 (mesa-demos-0de7436be906b720f503668609404c97ea3a124b_GL0.tar.gz) = 6f2889b07d8437810e8f734733c117c4e0f25c492a91b72a3bc6b9b620a7cbd9
|
||||||
|
SIZE (mesa-demos-0de7436be906b720f503668609404c97ea3a124b_GL0.tar.gz) = 20749697
|
6
graphics/glx-utils/pkg-descr
Normal file
6
graphics/glx-utils/pkg-descr
Normal 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/
|
|
@ -14,6 +14,8 @@ LICENSE= MIT
|
||||||
|
|
||||||
LIB_DEPENDS= libdrm.so:graphics/libdrm
|
LIB_DEPENDS= libdrm.so:graphics/libdrm
|
||||||
|
|
||||||
|
CONFLICTS_INSTALL= glx-utils
|
||||||
|
|
||||||
USES= gmake gl localbase pkgconfig tar:bzip2 xorg
|
USES= gmake gl localbase pkgconfig tar:bzip2 xorg
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
USE_GL= egl gbm gl glesv2 glew glu glut
|
USE_GL= egl gbm gl glesv2 glew glu glut
|
||||||
|
|
Loading…
Add table
Reference in a new issue