aboutsummaryrefslogtreecommitdiffstats
path: root/x11-clocks/glclock
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-01-28 18:42:26 +0800
committerdanfe <danfe@FreeBSD.org>2014-01-28 18:42:26 +0800
commitee8adf6d6dc03dd1034ef38df44af211d6fd6da2 (patch)
treeebe3040accd3d45f9e5fca8c65dd9ba2107aa117 /x11-clocks/glclock
parent1c086799c18df17898a03ef8851e745af0f81569 (diff)
downloadfreebsd-ports-gnome-ee8adf6d6dc03dd1034ef38df44af211d6fd6da2.tar.gz
freebsd-ports-gnome-ee8adf6d6dc03dd1034ef38df44af211d6fd6da2.tar.zst
freebsd-ports-gnome-ee8adf6d6dc03dd1034ef38df44af211d6fd6da2.zip
- Stagify, convert to OptionsNG, remove check for alpha (unsupported)
- Cleanup Makefile and port description while here
Diffstat (limited to 'x11-clocks/glclock')
-rw-r--r--x11-clocks/glclock/Makefile42
-rw-r--r--x11-clocks/glclock/pkg-descr6
2 files changed, 14 insertions, 34 deletions
diff --git a/x11-clocks/glclock/Makefile b/x11-clocks/glclock/Makefile
index 02c8f4aa5f3a..426170926673 100644
--- a/x11-clocks/glclock/Makefile
+++ b/x11-clocks/glclock/Makefile
@@ -30,40 +30,20 @@ SCRIPTS= chromeclock chromeclock_L crystalclock crystalclock_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_FILES= ${PROGRAMS:S,^,bin/,} ${SCRIPTS:S,^,bin/,} \
+ ${TEXTURES:S,^,lib/X11/glclock/,}
PLIST_DIRS= lib/X11/glclock
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS
-.if defined(WITH_OPTIMIZED_CFLAGS)
-CFLAGS+= -O3 -fexpensive-optimizations \
- -fomit-frame-pointer -fforce-mem -fforce-addr
-.if (${ARCH} != "alpha")
-CFLAGS+= -ffast-math
-.endif
-.endif
+OPTIMIZED_CFLAGS_CFLAGS= -O3 -fexpensive-optimizations \
+ -ffast-math -fomit-frame-pointer -fforce-mem -fforce-addr
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
+ ${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/glclock
+ ${INSTALL_DATA} ${TEXTURES:S,^,${WRKSRC}/,} \
+ ${STAGEDIR}${PREFIX}/lib/X11/glclock
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-clocks/glclock/pkg-descr b/x11-clocks/glclock/pkg-descr
index 5a51843b8779..023865fe88ad 100644
--- a/x11-clocks/glclock/pkg-descr
+++ b/x11-clocks/glclock/pkg-descr
@@ -1,3 +1,3 @@
-glclock is a OpenGL demo with benchmarking capability. For fun and
-performance testing, glclock will be of some use for those who have
-hardware-accelerated 3D cards (see people.FreeBSD.org/~3d) or very fast CPUs.
+glclock is a OpenGL demo with benchmarking capability. For fun and
+performance testing, glclock will be of some use for those who have
+hardware-accelerated 3D cards, or fast CPUs.