summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2001-03-11 05:01:04 +0000
committerSteve Price <steve@FreeBSD.org>2001-03-11 05:01:04 +0000
commit0d5a0510ea42cb90289022a374b3bd9a01d411c3 (patch)
treea326bb0e8855087051ccc0f6dcae9cf4649144b4 /cad
parentUse '-O0' on the Alpha so this builds without internal compiler errors. (diff)
Use '-O0' when compiling on the Alpha to avoid internal compiler errors.
Notes
Notes: svn path=/head/; revision=39541
Diffstat (limited to 'cad')
-rw-r--r--cad/qcad/Makefile8
-rw-r--r--cad/qcad2/Makefile8
2 files changed, 14 insertions, 2 deletions
diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile
index 8f5e50f9ae83..7d2da0e654c9 100644
--- a/cad/qcad/Makefile
+++ b/cad/qcad/Makefile
@@ -17,6 +17,12 @@ USE_XLIB= yes
USE_QT2= yes
MAKE_ENV= QTDIR="${X11BASE}"
+.include <bsd.port.pre.mk>
+
+.if ${MACHINE_ARCH} == "alpha"
+CFLAGS+= -O0
+.endif
+
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp
@@ -37,4 +43,4 @@ do-install:
@${LN} -sf ${PREFIX}/share/doc/qcad ${PREFIX}/share/qcad/doc
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/cad/qcad2/Makefile b/cad/qcad2/Makefile
index 8f5e50f9ae83..7d2da0e654c9 100644
--- a/cad/qcad2/Makefile
+++ b/cad/qcad2/Makefile
@@ -17,6 +17,12 @@ USE_XLIB= yes
USE_QT2= yes
MAKE_ENV= QTDIR="${X11BASE}"
+.include <bsd.port.pre.mk>
+
+.if ${MACHINE_ARCH} == "alpha"
+CFLAGS+= -O0
+.endif
+
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp
@@ -37,4 +43,4 @@ do-install:
@${LN} -sf ${PREFIX}/share/doc/qcad ${PREFIX}/share/qcad/doc
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>