blob: 9a1afeeaee0bc0a15b03526c4f57fb35c5e98a81 (
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
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
|
# New ports collection makefile for: glclock
# Date created: 20 September 1999
# Whom: Randall Hopper <aa8vb@ipass.net>
#
# $FreeBSD$
#
PORTNAME= glclock
DISTVERSION= 6.0b6.0
PORTREVISION= 1
CATEGORIES= x11-clocks
MASTER_SITES= http://www.daionet.gr.jp/~masa/archives/
MAINTAINER= trasz@FreeBSD.org
COMMENT= OpenGL spinning pocket watch demo and benchmark utility
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
USE_X_PREFIX= yes
USE_GL= yes
MAKEFILE= makefile
MAKE_ARGS= CC="${CXX}" LN="${CXX}" OPT="${OPT}" \
INCLUDE_PATH="-I${X11BASE}/include" \
LIB_PATH="-L${X11BASE}/lib"
OPT= -DIMAGE_PATH="\\\"${PREFIX}/lib/X11/glclock/\\\"" \
${CFLAGS}
PROGRAMS= glclock glclockmark
SCRIPTS= chromeclock chromeclock_L crystalclock crystalclock_L \
glclock_L glclockmark_ALL marbleclock marbleclock_L \
metalclock metalclock_L mwclock mwclock_L woodclock \
woodclock_L
TEXTURES= light.ppm marble.ppm sky.ppm wood.ppm detail.pgm \
detail2.pgm detail_b.pgm filter.pgm
PLIST_FILES=
.for f in ${PROGRAMS}
PLIST_FILES+= bin/${f}
.endfor
.for f in ${SCRIPTS}
PLIST_FILES+= bin/${f}
.endfor
.for f in ${TEXTURES}
PLIST_FILES+= lib/X11/glclock/${f}
.endfor
PLIST_DIRS= lib/X11/glclock
.include <bsd.port.pre.mk>
.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -O3 -fexpensive-optimizations \
-fomit-frame-pointer -fforce-mem -fforce-addr
.if (${ARCH} != "alpha")
CFLAGS+= -ffast-math
.endif
.endif
do-install:
.for f in ${PROGRAMS}
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
.for f in ${SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
@${MKDIR} ${PREFIX}/lib/X11/glclock
.for f in ${TEXTURES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/X11/glclock
.endfor
.include <bsd.port.post.mk>
|