blob: 15d98a8a17e86496d02093539b51a3a53f615414 (
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
38
39
40
41
42
43
44
45
46
47
48
|
# New ports collection makefile for: mesa-demos
# Date created: 7 Nov 2003
# Whom: anholt@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= demos
PORTVERSION= ${MESAVERSION}
CATEGORIES= graphics
PKGNAMEPREFIX= mesa-
MAINTAINER= araujo@FreeBSD.org
COMMENT= OpenGL demos distributed with Mesa
USE_GL= glu glut
USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
do-install:
@for i in demos xdemos; do \
cd ${WRKSRC}/progs/$$i; \
for j in `${MAKE} -V PROGS`; do \
echo ${INSTALL_PROGRAM} $$j ${PREFIX}/bin; \
${INSTALL_PROGRAM} $$j ${PREFIX}/bin; \
done; \
done
${MKDIR} ${DATADIR}/images ${DATADIR}/data
@cd ${WRKSRC}/progs/images; \
for i in `ls *.rgb*`; do \
echo ${INSTALL_DATA} $$i ${DATADIR}/images; \
${INSTALL_DATA} $$i ${DATADIR}/images; \
done
@cd ${WRKSRC}/progs/demos; \
for i in `ls *.dat`; do \
echo ${INSTALL_DATA} $$i ${DATADIR}/data; \
${INSTALL_DATA} $$i ${DATADIR}/data; \
done
.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"
.include <bsd.port.pre.mk>
.if defined(WITH_NVIDIA_GL)
CFLAGS+= -DWITH_NVIDIA_GL=1
.endif
.include <bsd.port.post.mk>
|