From tkato432@yahoo.com  Sat Nov 13 16:00:32 2004
Return-Path: <tkato432@yahoo.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 90E4E16A4D0
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 13 Nov 2004 16:00:32 +0000 (GMT)
Received: from hfep06.dion.ne.jp (hfep06.dion.ne.jp [203.181.105.72])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B923743D3F
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 13 Nov 2004 16:00:31 +0000 (GMT)
	(envelope-from tkato432@yahoo.com)
Received: from localhost ([61.204.120.51]) by hfep06.dion.ne.jp with SMTP
          id <20041113160029060.QVEG@hfep06.dion.ne.jp>
          for <FreeBSD-gnats-submit@FreeBSD.org>;
          Sun, 14 Nov 2004 01:00:29 +0900
Message-Id: <20041114010007.79df9381.tkato432@yahoo.com>
Date: Sun, 14 Nov 2004 01:00:07 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: cad/dxf2fig

>Number:         73898
>Category:       ports
>Synopsis:       Update port: cad/dxf2fig
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 13 16:10:17 GMT 2004
>Closed-Date:    Sun Nov 14 09:45:48 GMT 2004
>Last-Modified:  Sun Nov 14 09:45:48 GMT 2004
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Support CFLAGS properly

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/cad/dxf2fig/Makefile cad/dxf2fig/Makefile
--- /usr/ports/cad/dxf2fig/Makefile	Sat Nov 13 07:52:56 2004
+++ cad/dxf2fig/Makefile	Sat Nov 13 19:31:03 2004
@@ -14,9 +14,15 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	DXF to FIG converter
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_REINPLACE=	yes
 
 PLIST_FILES=	bin/dxf2fig
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|g ; \
+		 s|-O -s||g ; \
+		 s|-I|#-I|g ; \
+		 s|-L|#-L|' ${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->krion 
Responsible-Changed-By: krion 
Responsible-Changed-When: Sun Nov 14 07:57:30 GMT 2004 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73898 
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Sun Nov 14 09:45:40 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73898 
>Unformatted:
