- Stagify, convert to OptionsNG, remove check for alpha (unsupported)
- Cleanup Makefile and port description while here
This commit is contained in:
parent
5a53bc762b
commit
938b25c033
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341531
2 changed files with 14 additions and 34 deletions
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue