blob: 53a22c41279f9f6dea3e6b48db6142876168c72c (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# New ports collection makefile for: mesa-demos
# Date created: 7 Nov 2003
# Whom: anholt@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= demos
PORTVERSION= 7.0.1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mesa3d/
PKGNAMEPREFIX= mesa-
DISTFILES= MesaDemos-${PORTVERSION}${EXTRACT_SUFX} \
MesaLib-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= araujo@FreeBSD.org
COMMENT= OpenGL demos distributed with Mesa
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
USE_BZIP2= yes
USE_GMAKE= yes
MAKE_ARGS= SHELL=${SH} \
SUBDIRS="progs/demos progs/xdemos"
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
ALL_TARGET= default
WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}
DATADIR= ${PREFIX}/share/mesa-demos
DEMO_PROGS= arbfplight arbfslight arbocclude bounce clearspd cubemap \
drawpix engine fire fogcoord fplight fslight gamma gearbox \
gears geartrain glinfo gloss glslnoise gltestperf glutfx \
ipers isosurf lodbias morph3d multiarb paltex pointblast \
ray readpix reflect renormal shadowtex singlebuffer spectex \
spriteblast stex3d streaming_rect teapot terrain tessdemo \
texcyl texdown texenv texobj trispd tunnel tunnel2 vao_demo \
winpos
DEMO_IMAGES= arch.rgb bw.rgb girl.rgb girl2.rgb reflect.rgb s128.rgb \
tile.rgb tree2.rgba tree3.rgb wrs_logo.rgb
DEMO_DATA= geartrain.dat isosurf.dat terrain.dat
XDEMO_PROGS= glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap glxswapcontrol manywin \
offset overlay pbdemo pbinfo wincopy xfont xrotfontdemo \
yuvrect_client
# Generate packing list
PLIST_FILES=
.for prog in ${DEMO_PROGS}
PLIST_FILES+= bin/${prog}
.endfor
.for prog in ${XDEMO_PROGS}
PLIST_FILES+= bin/${prog}
.endfor
.for img in ${DEMO_IMAGES}
PLIST_FILES+= %%DATADIR%%/images/${img}
.endfor
.for dat in ${DEMO_DATA}
PLIST_FILES+= %%DATADIR%%/data/${dat}
.endfor
PLIST_DIRS= %%DATADIR%%/images %%DATADIR%%/data %%DATADIR%%
post-extract:
${CP} ${FILESDIR}/config ${WRKSRC}/configs/current
${REINPLACE_CMD} -e 's|../images/|${DATADIR}/images/|g' \
-e 's|geartrain.dat|${DATADIR}/data/geartrain.dat|g' \
-e 's|terrain.dat|${DATADIR}/data/terrain.dat|g' \
-e 's|isosurf.dat|${DATADIR}/data/isosurf.dat|g' \
${WRKSRC}/progs/demos/*.c ${WRKSRC}/progs/xdemos/*.c
do-install:
@for prog in ${DEMO_PROGS}; do \
${INSTALL_PROGRAM} ${WRKSRC}/progs/demos/$$prog \
${PREFIX}/bin ; \
done
@for prog in ${XDEMO_PROGS}; do \
${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/$$prog \
${PREFIX}/bin ; \
done
${MKDIR} ${DATADIR}/images ${DATADIR}/data
@for img in ${DEMO_IMAGES}; do \
${INSTALL_DATA} ${WRKSRC}/progs/images/$$img \
${DATADIR}/images ; \
done
@for dat in ${DEMO_DATA}; do \
${INSTALL_DATA} ${WRKSRC}/progs/demos/$$dat ${DATADIR}/data ; \
done
.include <bsd.port.pre.mk>
.if ${X_WINDOW_SYSTEM:L} != xorg
IGNORE= does not build with XFree86
.endif
.if defined(WITH_NVIDIA_GL)
CFLAGS+= -DWITH_NVIDIA_GL=1
.endif
.include <bsd.port.post.mk>
|