Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2011 12:55:18 GMT
From:      arrowdodger <6yearold@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/162718: [PATCH][MAINTAINER UPDATE] Add WITH_DEBUG support for math/stp
Message-ID:  <201111211255.pALCtIMG097935@red.freebsd.org>
Resent-Message-ID: <201111211300.pALD0O4o060744@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111211255.pALCtIMG097935>