MFH: r554406

graphics/kmscube: add new port

kmscube is a little demonstration program for how to drive bare metal
graphics without a compositor like X11, Wayland or similar, using
DRM/KMS (kernel mode setting), GBM (graphics buffer manager) and EGL
for rendering content using OpenGL or OpenGL ES.

https://gitlab.freedesktop.org/mesa/kmscube
This commit is contained in:
Jan Beich 2020-11-30 13:26:46 +00:00
parent 37977470c5
commit 49d214ae0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q4/; revision=556640
4 changed files with 47 additions and 0 deletions

View File

@ -398,6 +398,7 @@
SUBDIR += kipi-plugins
SUBDIR += klatexformula
SUBDIR += kludge3d
SUBDIR += kmscube
SUBDIR += kolourpaint
SUBDIR += kooka
SUBDIR += kphotoalbum

37
graphics/kmscube/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $FreeBSD$
PORTNAME= kmscube
PORTVERSION= s20201028
CATEGORIES= graphics
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Example KMS/GBM/EGL application
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libdrm.so:graphics/libdrm
USES= gl meson pkgconfig
USE_GITLAB= yes
USE_GL= egl gbm glesv2
GL_SITE= https://gitlab.freedesktop.org
GL_ACCOUNT= mesa
GL_COMMIT= e6386d1b99366ea7559438c0d3abd2ae2d6d61ac
PLIST_FILES= bin/${PORTNAME} \
bin/texturator \
${NULL}
OPTIONS_DEFINE= GSTREAMER PNG
OPTIONS_DEFAULT=PNG
GSTREAMER_USES= gnome
GSTREAMER_USE= GNOME=glib20 GSTREAMER1=yes
GSTREAMER_MESON_ENABLED=gstreamer
PNG_LIB_DEPENDS= libpng.so:graphics/png
post-patch-PNG-off:
@${REINPLACE_CMD} 's/dep_libpng.found()/false/' ${WRKSRC}/meson.build
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1603878081
SHA256 (mesa-kmscube-e6386d1b99366ea7559438c0d3abd2ae2d6d61ac_GL0.tar.gz) = f73c20472ce77599e26dffaece5620809648edc0933d457d4d6cfb04df643067
SIZE (mesa-kmscube-e6386d1b99366ea7559438c0d3abd2ae2d6d61ac_GL0.tar.gz) = 160482

View File

@ -0,0 +1,6 @@
kmscube is a little demonstration program for how to drive bare metal
graphics without a compositor like X11, Wayland or similar, using
DRM/KMS (kernel mode setting), GBM (graphics buffer manager) and EGL
for rendering content using OpenGL or OpenGL ES.
WWW: https://gitlab.freedesktop.org/mesa/kmscube