aboutsummaryrefslogtreecommitdiff
path: root/cad/gnucap
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-08 10:14:16 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-08 10:14:16 +0000
commit0df5b5676900f6f7637b360f90f947160da2862e (patch)
treeef60009202c3f3b28a3814118bb7072de07c701e /cad/gnucap
parentf77d34c594717ba6e809983484a8a35999185e3a (diff)
downloadports-0df5b5676900f6f7637b360f90f947160da2862e.tar.gz
ports-0df5b5676900f6f7637b360f90f947160da2862e.zip
Notes
Diffstat (limited to 'cad/gnucap')
-rw-r--r--cad/gnucap/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/cad/gnucap/Makefile b/cad/gnucap/Makefile
index cf87f915ca62..ba6b47ad09c5 100644
--- a/cad/gnucap/Makefile
+++ b/cad/gnucap/Makefile
@@ -14,13 +14,14 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
USE_GMAKE= yes
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
post-patch:
.for file in src/Make2.g++ src/Make.aux modelgen/Make.aux
- @printf ',s|g\+\+|\$$\{CXX\}|g\n,s|-O2|\$$\{CXXFLAGS\}|g\nwq\n' | \
- ed -s ${WRKSRC}/${file}
+ @${REINPLACE_CMD} -e "s|g\+\+|\$$\{CXX\}|g" \
+ -e "s|-O2|\$$\{CXXFLAGS\}|g" ${WRKSRC}/${file}
.endfor
do-install: