-
Notifications
You must be signed in to change notification settings - Fork 731
/
Makefile
35 lines (25 loc) · 980 Bytes
/
Makefile
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
PORTNAME= mesa-demos
PORTVERSION= 8.4.0
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= 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
LIB_DEPENDS= libdrm.so:graphics/libdrm
CONFLICTS_INSTALL= glx-utils
USES= gmake gl localbase pkgconfig tar:bzip2 xorg
GNU_CONFIGURE= yes
USE_GL= egl gbm gl glesv2 glew glu glut
USE_XORG= xorgproto x11 xdamage xext xfixes xi xxf86vm
CONFIGURE_ARGS+=--disable-gles1 --disable-osmesa --disable-vg --disable-wayland \
--with-system-data-files
.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>