diff options
author | petef <petef@FreeBSD.org> | 2002-03-01 04:26:05 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2002-03-01 04:26:05 +0800 |
commit | 6f064cccc31fdec64d73501d5f1b811ddf2d7ead (patch) | |
tree | 9c954adbcd946e0abd7cd8dc6cde152f33b7063b /cad | |
parent | e31ab75d44607a0cf76215413b575f1822cab710 (diff) | |
download | freebsd-ports-gnome-6f064cccc31fdec64d73501d5f1b811ddf2d7ead.tar.gz freebsd-ports-gnome-6f064cccc31fdec64d73501d5f1b811ddf2d7ead.tar.zst freebsd-ports-gnome-6f064cccc31fdec64d73501d5f1b811ddf2d7ead.zip |
Respect CXX/CXXFLAGS.
PR: 35409
Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'cad')
-rw-r--r-- | cad/gnucap/Makefile | 7 |
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 |