aboutsummaryrefslogtreecommitdiffstats
path: root/cad/qcad
diff options
context:
space:
mode:
authormr <mr@FreeBSD.org>2004-08-28 16:46:40 +0800
committermr <mr@FreeBSD.org>2004-08-28 16:46:40 +0800
commit10371a88483663b90460232d85048d5bb75fcf92 (patch)
treec256bd8a0cd9b080271eceaa2175518792d9053c /cad/qcad
parentb21ac96f9b8c0474278c6211360fbe148acbe23a (diff)
downloadfreebsd-ports-gnome-10371a88483663b90460232d85048d5bb75fcf92.tar.gz
freebsd-ports-gnome-10371a88483663b90460232d85048d5bb75fcf92.tar.zst
freebsd-ports-gnome-10371a88483663b90460232d85048d5bb75fcf92.zip
Fix compilation with gcc-3.4
Submitted by: Tilman Linneweh <arved at FreeBSD.org>
Diffstat (limited to 'cad/qcad')
-rw-r--r--cad/qcad/Makefile2
-rw-r--r--cad/qcad/files/patch-rs_math.h14
2 files changed, 16 insertions, 0 deletions
diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile
index 8c8597191356..bf82e0b05b7b 100644
--- a/cad/qcad/Makefile
+++ b/cad/qcad/Makefile
@@ -7,6 +7,8 @@
PORTNAME= qcad
PORTVERSION= 2.0.3.3.1
+PORTREVISION= 1
+
CATEGORIES= cad
MASTER_SITES= http://www.ribbonsoft.com/archives/qcad/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}.src
diff --git a/cad/qcad/files/patch-rs_math.h b/cad/qcad/files/patch-rs_math.h
new file mode 100644
index 000000000000..4cab00958ea2
--- /dev/null
+++ b/cad/qcad/files/patch-rs_math.h
@@ -0,0 +1,14 @@
+--- qcadlib/src/math/rs_math.h.orig Sat Aug 21 20:00:56 2004
++++ qcadlib/src/math/rs_math.h Sat Aug 21 20:07:09 2004
+@@ -45,8 +45,9 @@
+ #include "rs_vector.h"
+
+ #ifdef __GNUC__
+-#define min(x,y) (x<y ? x : y)
+-#define max(x,y) (x>y ? x : y)
++//#define min(x,y) (x<y ? x : y)
++//#define max(x,y) (x>y ? x : y)
++using namespace std;
+ #endif
+
+ #define ARAD 57.29577951308232