diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-09-20 06:32:12 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-09-20 06:32:12 +0000 |
commit | 16cdbbf3e8f72401712c16958b7880b62a2e01fe (patch) | |
tree | 4d3c02215371a8b1ab87d0d6e771abf5b4d5513a /science | |
parent | 701dbe8cbbcb86f99b1e9169741e31d37bf69e14 (diff) | |
download | FreeBSD-ports-16cdbbf3e8f72401712c16958b7880b62a2e01fe.zip FreeBSD-ports-16cdbbf3e8f72401712c16958b7880b62a2e01fe.tar.gz |
- Support CFLAGS/CXXFLAGS properly
- Support install macros
PR: 42892
Submitted by: Ports Fury
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 6915b5e..75b29d0 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> |