diff options
Diffstat (limited to 'science/glens/Makefile')
-rw-r--r-- | science/glens/Makefile | 17 |
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> |