ports/73898: Update port: cad/dxf2fig

KATO Tsuguru tkato432 at yahoo.com
Sat Nov 13 16:10:17 UTC 2004


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



More information about the freebsd-ports-bugs mailing list