Lines 2-18
Link Here
|
2 |
# Date created: 20 September 1999 |
2 |
# Date created: 20 September 1999 |
3 |
# Whom: Randall Hopper <aa8vb@ipass.net> |
3 |
# Whom: Randall Hopper <aa8vb@ipass.net> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/x11-clocks/glclock/Makefile,v 1.13 2006/01/12 12:54:27 sem Exp $ |
5 |
# $FreeBSD$ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= glclock |
8 |
PORTNAME= glclock |
9 |
PORTVERSION= 5.0 |
9 |
PORTVERSION= 6.0b6.0 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= x11-clocks |
10 |
CATEGORIES= x11-clocks |
12 |
MASTER_SITES= http://www.daionet.gr.jp/~masa/archives/ |
11 |
MASTER_SITES= http://www.daionet.gr.jp/~masa/archives/ |
13 |
|
12 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= trasz@pin.if.uz.zgora.pl |
15 |
COMMENT= OpenGL Spinning pocketwatch demo and benchmark utility |
14 |
COMMENT= OpenGL spinning pocket watch demo and benchmark utility |
16 |
|
15 |
|
17 |
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut |
16 |
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut |
18 |
|
17 |
|
Lines 21-51
Link Here
|
21 |
MAKEFILE= makefile |
20 |
MAKEFILE= makefile |
22 |
MAKE_ARGS= CC="${CXX}" LN="${CXX}" OPT="${OPT}" \ |
21 |
MAKE_ARGS= CC="${CXX}" LN="${CXX}" OPT="${OPT}" \ |
23 |
INCLUDE_PATH="-I${X11BASE}/include" \ |
22 |
INCLUDE_PATH="-I${X11BASE}/include" \ |
24 |
LIB_PATH="-L${X11BASE}/lib" LIBS="${LIBS}" |
23 |
LIB_PATH="-L${X11BASE}/lib" |
25 |
ALL_TARGET= ${PORTNAME} |
|
|
26 |
|
24 |
|
27 |
OPT= ${CXXFLAGS} ${PTHREAD_CFLAGS} \ |
25 |
OPT= -DIMAGE_PATH="\\\"${PREFIX}/lib/X11/glclock/\\\"" \ |
28 |
-DGLCLOCK_DIR="\\\"${PREFIX}/lib/X11/glclock/\\\"" |
26 |
${CFLAGS} |
29 |
LIBS= -lglut -lGLU -lGL -lXext -lXmu -lX11 -lm -lXi ${PTHREAD_LIBS} |
|
|
30 |
|
31 |
SCRIPTS= benchclock crystalclock f_crystalclock f_glclock \ |
32 |
f_marbleclock f_metalclock f_mwclock f_woodclock marbleclock \ |
33 |
metalclock mwclock woodclock |
34 |
|
27 |
|
35 |
TEXTURES= marble.ppm sky.ppm wood.ppm |
28 |
PROGRAMS= glclock glclockmark |
|
|
29 |
|
30 |
SCRIPTS= chromeclock chromeclock_L crystalclock crystalclock_L \ |
31 |
glclock_L glclockmark_ALL marbleclock marbleclock_L \ |
32 |
metalclock metalclock_L mwclock mwclock_L woodclock \ |
33 |
woodclock_L |
34 |
|
35 |
TEXTURES= light.ppm marble.ppm sky.ppm wood.ppm detail.pgm \ |
36 |
detail2.pgm detail_b.pgm filter.pgm |
37 |
|
38 |
PLIST_FILES= |
39 |
.for f in ${PROGRAMS} |
40 |
PLIST_FILES+= bin/${f} |
41 |
.endfor |
42 |
.for f in ${SCRIPTS} |
43 |
PLIST_FILES+= bin/${f} |
44 |
.endfor |
45 |
.for f in ${TEXTURES} |
46 |
PLIST_FILES+= lib/X11/glclock/${f} |
47 |
.endfor |
48 |
|
49 |
PLIST_DIRS= lib/X11/glclock |
36 |
|
50 |
|
37 |
.include <bsd.port.pre.mk> |
51 |
.include <bsd.port.pre.mk> |
38 |
|
52 |
|
39 |
.if defined(WITH_OPTIMIZED_CFLAGS) |
53 |
.if defined(WITH_OPTIMIZED_CFLAGS) |
40 |
CXXFLAGS+= -O3 -fexpensive-optimizations \ |
54 |
CFLAGS+= -O3 -fexpensive-optimizations \ |
41 |
-fomit-frame-pointer -fforce-mem -fforce-addr |
55 |
-fomit-frame-pointer -fforce-mem -fforce-addr |
42 |
.if (${ARCH} != "alpha") |
56 |
.if (${ARCH} != "alpha") |
43 |
CXXFLAGS+= -ffast-math |
57 |
CFLAGS+= -ffast-math |
44 |
.endif |
58 |
.endif |
45 |
.endif |
59 |
.endif |
46 |
|
60 |
|
47 |
do-install: |
61 |
do-install: |
48 |
${INSTALL_PROGRAM} ${WRKSRC}/glclock ${PREFIX}/bin |
62 |
.for f in ${PROGRAMS} |
|
|
63 |
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin |
64 |
.endfor |
49 |
.for f in ${SCRIPTS} |
65 |
.for f in ${SCRIPTS} |
50 |
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin |
66 |
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin |
51 |
.endfor |
67 |
.endfor |