aboutsummaryrefslogtreecommitdiffstats
path: root/cad/dxf2fig
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-11-14 17:45:30 +0800
committerkrion <krion@FreeBSD.org>2004-11-14 17:45:30 +0800
commitf3ef367fd7221af01e2cc67c3c5dce7d0430b945 (patch)
tree7b80cc487f3a8703e0f8463a76056f190d4e6fd5 /cad/dxf2fig
parent687e3ec491dd5fff7068adf19faf8cc033f145de (diff)
downloadfreebsd-ports-gnome-f3ef367fd7221af01e2cc67c3c5dce7d0430b945.tar.gz
freebsd-ports-gnome-f3ef367fd7221af01e2cc67c3c5dce7d0430b945.tar.zst
freebsd-ports-gnome-f3ef367fd7221af01e2cc67c3c5dce7d0430b945.zip
Support CFLAGS properly
PR: ports/73898 Submitted by: Ports Fury
Diffstat (limited to 'cad/dxf2fig')
-rw-r--r--cad/dxf2fig/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/cad/dxf2fig/Makefile b/cad/dxf2fig/Makefile
index 39418e968688..3b90e7e02faf 100644
--- a/cad/dxf2fig/Makefile
+++ b/cad/dxf2fig/Makefile
@@ -14,10 +14,16 @@ MASTER_SITES= http://ta.twi.tudelft.nl/ftp/dv/lemmens/
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