Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2004 01:00:07 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/73898: Update port: cad/dxf2fig
Message-ID:  <20041114010007.79df9381.tkato432@yahoo.com>
Resent-Message-ID: <200411131610.iADGAHKu084939@freefall.freebsd.org>

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

>Number:         73898
>Category:       ports
>Synopsis:       Update port: cad/dxf2fig
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 13 16:10:17 GMT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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