1999-09-25 22:29:13 +00:00
|
|
|
# New ports collection makefile for: glclock
|
|
|
|
# Date created: 20 September 1999
|
|
|
|
# Whom: Randall Hopper <aa8vb@ipass.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-10 00:33:10 +00:00
|
|
|
PORTNAME= glclock
|
2001-02-05 17:05:29 +00:00
|
|
|
PORTVERSION= 5.0
|
2001-06-17 18:19:53 +00:00
|
|
|
PORTREVISION= 1
|
1999-09-25 22:29:13 +00:00
|
|
|
CATEGORIES= x11-clocks
|
2004-05-30 21:47:23 +00:00
|
|
|
MASTER_SITES= http://www.daionet.gr.jp/~masa/archives/
|
1999-09-25 22:29:13 +00:00
|
|
|
|
2003-10-18 07:35:46 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 14:08:24 +00:00
|
|
|
COMMENT= OpenGL Spinning pocketwatch demo and benchmark utility
|
1999-09-25 22:29:13 +00:00
|
|
|
|
2004-02-10 16:10:36 +00:00
|
|
|
LIB_DEPENDS= glut.3:${PORTSDIR}/graphics/libglut
|
|
|
|
|
1999-09-25 22:29:13 +00:00
|
|
|
USE_X_PREFIX= yes
|
2004-02-10 16:10:36 +00:00
|
|
|
USE_GL= yes
|
1999-09-25 22:29:13 +00:00
|
|
|
MAKEFILE= makefile
|
2004-02-10 16:10:36 +00:00
|
|
|
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}
|
1999-09-25 22:29:13 +00:00
|
|
|
|
2004-04-10 17:26:55 +00:00
|
|
|
SCRIPTS= benchclock crystalclock f_crystalclock f_glclock \
|
1999-09-25 22:29:13 +00:00
|
|
|
f_marbleclock f_metalclock f_mwclock f_woodclock marbleclock \
|
|
|
|
metalclock mwclock woodclock
|
|
|
|
|
2004-04-10 17:26:55 +00:00
|
|
|
TEXTURES= marble.ppm sky.ppm wood.ppm
|
1999-09-25 22:29:13 +00:00
|
|
|
|
2004-03-26 17:21:29 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-02-10 16:10:36 +00:00
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
2004-03-26 17:21:29 +00:00
|
|
|
CXXFLAGS+= -O3 -fexpensive-optimizations \
|
2004-02-10 16:10:36 +00:00
|
|
|
-fomit-frame-pointer -fforce-mem -fforce-addr
|
2004-03-26 17:21:29 +00:00
|
|
|
.if (${ARCH} != "alpha")
|
|
|
|
CXXFLAGS+= -ffast-math
|
|
|
|
.endif
|
2004-02-10 16:10:36 +00:00
|
|
|
.endif
|
|
|
|
|
1999-09-25 22:29:13 +00:00
|
|
|
do-install:
|
2004-02-10 16:10:36 +00:00
|
|
|
${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
|
1999-09-25 22:29:13 +00:00
|
|
|
|
2004-03-26 17:21:29 +00:00
|
|
|
.include <bsd.port.post.mk>
|