1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Respect CXX/CXXFLAGS.

PR:		35409
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
This commit is contained in:
Pete Fritchman 2002-02-28 20:26:05 +00:00
parent fde3803d53
commit 26f2be73eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55351

View File

@ -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