aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-20 06:32:12 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-20 06:32:12 +0000
commitb4119dd2565bfc11835278e8c0ab2382c5318e84 (patch)
tree06b125087c5252c925292b7efd29e769be3f4171 /science
parent594c5c872eb015b34338a34420663092cad52b4b (diff)
downloadports-b4119dd2565bfc11835278e8c0ab2382c5318e84.tar.gz
ports-b4119dd2565bfc11835278e8c0ab2382c5318e84.zip
Notes
Diffstat (limited to 'science')
-rw-r--r--science/glens/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/science/glens/Makefile b/science/glens/Makefile
index 6915b5ea101d..75b29d011291 100644
--- a/science/glens/Makefile
+++ b/science/glens/Makefile
@@ -8,6 +8,7 @@
PORTNAME= glens
PORTVERSION= 0.3
+PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= http://virtual.theo.phys.ulg.ac.be/
@@ -15,16 +16,22 @@ MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= ${X11BASE}/lib/libglui.a:${PORTSDIR}/devel/glui
+USE_REINPLACE= yes
USE_MESA= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include" \
- LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib -lstdc++"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-glui=${X11BASE}
-.if !defined(NOPORTDOCS)
+CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
+
+post-patch:
+ @${REINPLACE_CMD} 's|-O6||g' ${WRKSRC}/configure
+
post-install:
- @${MKDIR} ${EXAMPLESDIR}
- ${CP} -R ${WRKSRC}/cfg ${EXAMPLESDIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}/cfg
+ ${INSTALL_DATA} ${WRKSRC}/cfg/*.cgf ${EXAMPLESDIR}/cfg
.endif
.include <bsd.port.mk>