aboutsummaryrefslogtreecommitdiff
path: root/graphics/mesa-demos/Makefile
blob: 5c3ff5932655c3fe43ec9dde178bcf33a31dd00a (plain) (blame)
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=	mesa-demos
PORTVERSION=	8.5.0
CATEGORIES=	graphics
MASTER_SITES=	https://mesa.freedesktop.org/archive/demos/${PORTVERSION}/ \
		ftp://ftp.freedesktop.org/pub/mesa/demos/ #${PORTVERSION}/

MAINTAINER=	x11@FreeBSD.org
COMMENT=	OpenGL demos distributed with Mesa
WWW=		https://www.mesa3d.org/

LICENSE=	MIT

CONFLICTS_INSTALL=	glx-utils

USES=		gl localbase meson pkgconfig tar:bzip2 xorg
USE_GL=		egl gl glesv2 glu glut
USE_XORG=	xorgproto x11 xdamage xext xfixes xi xxf86vm

MESON_ARGS+=	-Dwith-glut=${LOCALBASE} \
		-Dgles1=disabled \
		-Dlibdrm=disabled \
		-Dosmesa=disabled \
		-Dwayland=disabled \
		-Dwith-system-data-files=true

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+=	-Wno-error=incompatible-function-pointer-types
.endif

post-stage:
	# bitmap program conflicts with x11/bitmap
	${MV} ${STAGEDIR}/${PREFIX}/bin/bitmap ${STAGEDIR}/${PREFIX}/bin/bitmap_demo

.include <bsd.port.mk>