Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 09:20:33 -0800 (PST)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/35409: Update port: cad/gnucap
Message-ID:  <200202281720.g1SHKX776098@freefall.freebsd.org>

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

>Number:         35409
>Category:       ports
>Synopsis:       Update port: cad/gnucap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 09:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CXX/CXXFLAGS properly

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/cad/gnucap/Makefile cad/gnucap/Makefile
--- /usr/ports/cad/gnucap/Makefile	Thu Feb  7 16:07:48 2002
+++ cad/gnucap/Makefile	Thu Feb 28 22:05:14 2002
@@ -8,6 +8,7 @@
 
 PORTNAME=	gnucap
 PORTVERSION=	0.30
+PORTREVISION=	1
 CATEGORIES=	cad
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,6 +16,13 @@
 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

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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