aboutsummaryrefslogtreecommitdiffstats
path: root/x11-clocks
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2015-10-24 23:08:39 +0800
committerdanfe <danfe@FreeBSD.org>2015-10-24 23:08:39 +0800
commit3cbcdda4ee42ddd2009d5c9dc24ec2bffc30aa7c (patch)
tree115dfbbd7b550ba52301e712e62cdf6ad6825715 /x11-clocks
parenta538ab5ec04bd24766aebdcd34bbaf3f12543620 (diff)
downloadfreebsd-ports-gnome-3cbcdda4ee42ddd2009d5c9dc24ec2bffc30aa7c.tar.gz
freebsd-ports-gnome-3cbcdda4ee42ddd2009d5c9dc24ec2bffc30aa7c.tar.zst
freebsd-ports-gnome-3cbcdda4ee42ddd2009d5c9dc24ec2bffc30aa7c.zip
- Unbreak the build by s/glPolygonOffsetEXT/glPolygonOffset/
- Simplify installation routine while I'm here PR: 203455 Submitted by: Walter Schwarzenfeld
Diffstat (limited to 'x11-clocks')
-rw-r--r--x11-clocks/glclock/Makefile20
1 files changed, 6 insertions, 14 deletions
diff --git a/x11-clocks/glclock/Makefile b/x11-clocks/glclock/Makefile
index 7ebcd7b9d514..4a21097e3c7b 100644
--- a/x11-clocks/glclock/Makefile
+++ b/x11-clocks/glclock/Makefile
@@ -10,8 +10,6 @@ MASTER_SITES= http://www.daionet.gr.jp/~masa/archives/
MAINTAINER= ports@FreeBSD.org
COMMENT= OpenGL spinning pocket watch demo and benchmark utility
-BROKEN= fails to link
-
USE_XORG= xi xmu xext x11
USE_GL= gl glu glut
MAKEFILE= makefile
@@ -40,20 +38,14 @@ post-patch:
's|g\+\+|$${CXX}| ; \
s|-O2|$${CXXFLAGS}| ; \
s|/usr/X11R6|$${LOCALBASE}|' ${WRKSRC}/${MAKEFILE}
+ @${REINPLACE_CMD} -e 's|glPolygonOffsetEXT|glPolygonOffset|' \
+ ${WRKSRC}/GLextensions.cpp
do-install:
-.for i in ${PROGRAMS}
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} \
- ${STAGEDIR}${PREFIX}/bin)
-.endfor
-.for i in ${SCRIPTS}
- (cd ${WRKSRC} && ${INSTALL_SCRIPT} ${i} \
- ${STAGEDIR}${PREFIX}/bin)
-.endfor
+ ${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/glclock
-.for i in ${TEXTURES}
- (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
- ${STAGEDIR}${PREFIX}/lib/X11/glclock)
-.endfor
+ ${INSTALL_DATA} ${TEXTURES:S,^,${WRKSRC}/,} \
+ ${STAGEDIR}${PREFIX}/lib/X11/glclock
.include <bsd.port.mk>