From 26f2be73eb50a57f6533bedd9290707eaf06f383 Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Thu, 28 Feb 2002 20:26:05 +0000 Subject: Respect CXX/CXXFLAGS. PR: 35409 Submitted by: KATO Tsuguru --- cad/gnucap/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cad') 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 -- cgit v1.2.3