aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2011-11-21 15:51:01 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2011-11-21 15:51:01 +0000
commitb50fe58956080d9973d91c54005ae0d59e0162c3 (patch)
tree6601128d07cdd437c4c5dc2adf232cef3a549e6a /math
parent578e61e30416d33ca0b7f96df816a389267975c2 (diff)
Notes
Diffstat (limited to 'math')
-rw-r--r--math/stp/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/stp/Makefile b/math/stp/Makefile
index db2801e0408a..38c1ea043b1a 100644
--- a/math/stp/Makefile
+++ b/math/stp/Makefile
@@ -36,6 +36,10 @@ PLIST_DIRS= include/stp
post-patch:
@${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/src/main/versionString.stamp
@${REINPLACE_CMD} -e 's/bash/sh/' ${WRKSRC}/scripts/Makefile.common
+.if defined(WITH_DEBUG)
+ @${REINPLACE_CMD} -e 's/-DNDEBUG//; s/-O3/-O0/; s/-fomit-frame-pointer//' \
+ ${WRKSRC}/scripts/Makefile.common
+.endif
do-configure:
cd ${WRKSRC} && ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}