aboutsummaryrefslogtreecommitdiff
path: root/cad/gnucap/Makefile
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2002-02-28 20:26:05 +0000
committerPete Fritchman <petef@FreeBSD.org>2002-02-28 20:26:05 +0000
commit26f2be73eb50a57f6533bedd9290707eaf06f383 (patch)
tree9e954c7f0870716940535746503dc0c8f6edf71d /cad/gnucap/Makefile
parentfde3803d53e5b649a356c23805007d22bd02480b (diff)
downloadports-26f2be73eb50a57f6533bedd9290707eaf06f383.tar.gz
ports-26f2be73eb50a57f6533bedd9290707eaf06f383.zip
Notes
Diffstat (limited to 'cad/gnucap/Makefile')
-rw-r--r--cad/gnucap/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/cad/gnucap/Makefile b/cad/gnucap/Makefile
index c28e0923b9bd..74b6dfd787eb 100644
--- a/cad/gnucap/Makefile
+++ b/cad/gnucap/Makefile
@@ -15,6 +15,13 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
USE_GMAKE= yes
+MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
+
+post-patch:
+.for file in src/Make2.g++ src/Make.aux modelgen/Make.aux
+ @${PERL} -pi -e 's|g\+\+|\$$\{CXX\}|g ; \
+ s|-O2|\$$\{CXXFLAGS\}|g' ${WRKSRC}/${file}
+.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/modelgen/O/modelgen ${PREFIX}/bin