summaryrefslogtreecommitdiff
path: root/graphics/kmscube/Makefile
blob: f78a21f50e3526fbac7f39f7d8e17a3ad6acab3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

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>