diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-09-20 06:32:12 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-09-20 06:32:12 +0000 |
commit | b4119dd2565bfc11835278e8c0ab2382c5318e84 (patch) | |
tree | 06b125087c5252c925292b7efd29e769be3f4171 /science | |
parent | 594c5c872eb015b34338a34420663092cad52b4b (diff) | |
download | ports-b4119dd2565bfc11835278e8c0ab2382c5318e84.tar.gz ports-b4119dd2565bfc11835278e8c0ab2382c5318e84.zip |
- Support CFLAGS/CXXFLAGS properly
- Support install macros
PR: 42892
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=66798
Diffstat (limited to 'science')
-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> |