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:
parent
fde3803d53
commit
26f2be73eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55351
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user