aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/mesa-demos/Makefile
blob: 3f738ac0477cb7cc1babf244ad1dd022ebc6c8b3 (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
37
# Created by: Eric Anholt <anholt@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mesa-demos
PORTVERSION=    8.1.0
CATEGORIES= graphics
MASTER_SITES=   ftp://ftp.freedesktop.org/pub/mesa/demos/${PORTVERSION}/
DISTFILES=  mesa-demos-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER= x11@FreeBSD.org
COMMENT=    OpenGL demos distributed with Mesa

USE_BZIP2=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes
USE_GL=     glu glut glew
USE_XORG=   glproto x11 xext xi xxf86vm xdamage xfixes dri2proto
CPPFLAGS+=  -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}

DATADIR=    ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}

OPTIONS_DEFINE= NVIDIA
NVIDIA_DESC=    Use NVIDIA's libraries

post-patch:
    @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
        ${WRKSRC}/configure

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNVIDIA}
CFLAGS+=    -DWITH_NVIDIA_GL=1
.endif

.include <bsd.port.mk>