Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2014 10:42:26 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341531 - head/x11-clocks/glclock
Message-ID:  <201401281042.s0SAgQ3v023295@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue Jan 28 10:42:26 2014
New Revision: 341531
URL: http://svnweb.freebsd.org/changeset/ports/341531
QAT: https://qat.redports.org/buildarchive/r341531/

Log:
  - Stagify, convert to OptionsNG, remove check for alpha (unsupported)
  - Cleanup Makefile and port description while here

Modified:
  head/x11-clocks/glclock/Makefile
  head/x11-clocks/glclock/pkg-descr

Modified: head/x11-clocks/glclock/Makefile
==============================================================================
--- head/x11-clocks/glclock/Makefile	Tue Jan 28 10:21:59 2014	(r341530)
+++ head/x11-clocks/glclock/Makefile	Tue Jan 28 10:42:26 2014	(r341531)
@@ -30,40 +30,20 @@ SCRIPTS=	chromeclock chromeclock_L cryst
 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>

Modified: head/x11-clocks/glclock/pkg-descr
==============================================================================
--- head/x11-clocks/glclock/pkg-descr	Tue Jan 28 10:21:59 2014	(r341530)
+++ head/x11-clocks/glclock/pkg-descr	Tue Jan 28 10:42:26 2014	(r341531)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401281042.s0SAgQ3v023295>