aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authormr <mr@FreeBSD.org>2004-02-12 21:55:54 +0800
committermr <mr@FreeBSD.org>2004-02-12 21:55:54 +0800
commitbe594e059977253dfbf730ed775dc3abdf9caaa7 (patch)
treec0780138674a5315bb2dc85b62e39783ef68f665 /cad
parentd339e64708d2e09e2816f82eca9607a58f0618fe (diff)
downloadfreebsd-ports-gnome-be594e059977253dfbf730ed775dc3abdf9caaa7.tar.gz
freebsd-ports-gnome-be594e059977253dfbf730ed775dc3abdf9caaa7.tar.zst
freebsd-ports-gnome-be594e059977253dfbf730ed775dc3abdf9caaa7.zip
add patch to compile qg_commandwidget.cpp under -stable
Submitted by: Oliver Lehmann <oliver@FreeBSD.org>
Diffstat (limited to 'cad')
-rw-r--r--cad/qcad/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile
index af0a848f8c54..742e74e44a5c 100644
--- a/cad/qcad/Makefile
+++ b/cad/qcad/Makefile
@@ -32,13 +32,11 @@ MAKE_ENV= QTDIR="${QTDIR}" MAKE="${GMAKE}" \
CFLAGS+= -O0
.endif
-#post-patch:
-# @${REINPLACE_CMD} -e 's|warn_on|warn_on thread|g' ${WRKSRC}/qcad.pro
-# @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/rprgdef.h
-
-#do-configure:
-# @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
-# -spec ${X11BASE}/share/qt/mkspecs/freebsd-g++ qcad.pro
+post-patch:
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e 's|streambuf<|streambuf\.h<|g' \
+ ${WRKSRC}/qcadguiqt/src/ui/qg_commandwidget.ui
+.endif
do-build:
cd ${WRKSRC}/scripts && ${SETENV} ${MAKE_ENV} ${SH} ./build_qcad.sh