blob: 019614ba8c52b71df64d4f1f7b03d18f79f111fe (
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
|
# New ports collection makefile for: glclock
# Date created: 20 September 1999
# Whom: Randall Hopper <aa8vb@ipass.net>
#
# $FreeBSD$
#
PORTNAME= glclock
PORTVERSION= 5.0
PORTREVISION= 1
CATEGORIES= x11-clocks
MASTER_SITES= http://www.daionet.gr.jp/~masa/archives/ \
http://hp.vector.co.jp/authors/VA013133/archives/ \
http://www.demonews.com/hosted/masa/archives/
MAINTAINER= ports@FreeBSD.org
COMMENT= OpenGL Spinning pocketwatch demo and benchmark utility
LIB_DEPENDS= glut.3:${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" LIBS="${LIBS}"
ALL_TARGET= ${PORTNAME}
OPT= ${CXXFLAGS} ${PTHREAD_CFLAGS} \
-DGLCLOCK_DIR="\\\"${PREFIX}/lib/X11/glclock/\\\""
LIBS= -lglut -lGLU -lGL -lXext -lXmu -lX11 -lm -lXi ${PTHREAD_LIBS}
SCRIPTS = benchclock crystalclock f_crystalclock f_glclock \
f_marbleclock f_metalclock f_mwclock f_woodclock marbleclock \
metalclock mwclock woodclock
TEXTURES = marble.ppm sky.ppm wood.ppm
.if defined(WITH_OPTIMIZED_CFLAGS)
CXXFLAGS+= -O3 -fexpensive-optimizations -ffast-math \
-fomit-frame-pointer -fforce-mem -fforce-addr
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/glclock ${PREFIX}/bin
.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.mk>
|