forked from Lainports/freebsd-ports
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
37 lines
780 B
Makefile
37 lines
780 B
Makefile
# $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>
|