aboutsummaryrefslogtreecommitdiffstats
path: root/x11-clocks/glclock/Makefile
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-02-11 00:10:36 +0800
committerkrion <krion@FreeBSD.org>2004-02-11 00:10:36 +0800
commitfb0fb4992d8900cc842dfd0c7ae0c8373c15400e (patch)
tree6d37464f2733889746510fad0639f69fe8baabfc /x11-clocks/glclock/Makefile
parentbc090b050482647c5d6980d7e9a6a7088af5143c (diff)
downloadfreebsd-ports-gnome-fb0fb4992d8900cc842dfd0c7ae0c8373c15400e.tar.gz
freebsd-ports-gnome-fb0fb4992d8900cc842dfd0c7ae0c8373c15400e.tar.zst
freebsd-ports-gnome-fb0fb4992d8900cc842dfd0c7ae0c8373c15400e.zip
- Fix build on non-i386 arch
PR: ports/62644 Submitted by: Ports Fury
Diffstat (limited to 'x11-clocks/glclock/Makefile')
-rw-r--r--x11-clocks/glclock/Makefile35
1 files changed, 24 insertions, 11 deletions
diff --git a/x11-clocks/glclock/Makefile b/x11-clocks/glclock/Makefile
index 36000d2b8eb3..019614ba8c52 100644
--- a/x11-clocks/glclock/Makefile
+++ b/x11-clocks/glclock/Makefile
@@ -16,11 +16,19 @@ MASTER_SITES= http://www.daionet.gr.jp/~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_MESA= yes
+USE_GL= yes
MAKEFILE= makefile
-ALL_TARGET= glclock
-MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
+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 \
@@ -28,14 +36,19 @@ SCRIPTS = benchclock crystalclock f_crystalclock f_glclock \
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}; do \
- ${INSTALL_SCRIPT} ${WRKSRC}/$$f ${PREFIX}/bin; \
- done
- @mkdir -p ${PREFIX}/lib/X11/glclock
- @for f in ${TEXTURES}; do \
- ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/lib/X11/glclock; \
- done
+ ${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>