ports/162718: [PATCH][MAINTAINER UPDATE] Add WITH_DEBUG support for math/stp
arrowdodger
6yearold at gmail.com
Mon Nov 21 13:00:26 UTC 2011
>Number: 162718
>Category: ports
>Synopsis: [PATCH][MAINTAINER UPDATE] Add WITH_DEBUG support for math/stp
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 21 13:00:23 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: arrowdodger
>Release: 9-stable
>Organization:
none
>Environment:
>Description:
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN /usr/ports/math/stp/Makefile ./Makefile
--- /usr/ports/math/stp/Makefile 2011-11-11 10:15:30.000000000 +0400
+++ ./Makefile 2011-11-21 16:29:22.299518429 +0400
@@ -36,6 +36,11 @@
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//' ${WRKSRC}/scripts/Makefile.common
+ @${REINPLACE_CMD} -e 's/-O3/-O0/' ${WRKSRC}/scripts/Makefile.common
+ @${REINPLACE_CMD} -e 's/-fomit-frame-pointer//' ${WRKSRC}/scripts/Makefile.common
+.endif
do-configure:
cd ${WRKSRC} && ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list