aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2015-08-31 16:32:03 +0800
committermakc <makc@FreeBSD.org>2015-08-31 16:32:03 +0800
commit60b53ae0396d08bd11e1a015c8ed4cf0da3460d0 (patch)
tree15a181efda032a3e6788ca7fb890f931b84e6d6c /cad
parent3bad0bfe5ec2c7bf8f497859ba12ade6b1bfb94d (diff)
downloadfreebsd-ports-gnome-60b53ae0396d08bd11e1a015c8ed4cf0da3460d0.tar.gz
freebsd-ports-gnome-60b53ae0396d08bd11e1a015c8ed4cf0da3460d0.tar.zst
freebsd-ports-gnome-60b53ae0396d08bd11e1a015c8ed4cf0da3460d0.zip
cad/librecad: add workaround to fix build with gcc
Diffstat (limited to 'cad')
-rw-r--r--cad/librecad/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/cad/librecad/Makefile b/cad/librecad/Makefile
index ccffb8c3d0fe..929d5fbf0406 100644
--- a/cad/librecad/Makefile
+++ b/cad/librecad/Makefile
@@ -18,6 +18,9 @@ USE_GITHUB= yes
GH_ACCOUNT= LibreCAD
GH_PROJECT= LibreCAD
+# Unhide std::to_string() to fix build with GCC (ports/193528)
+CFLAGS= -D_GLIBCXX_USE_C99
+
post-patch:
${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \
${WRKSRC}/librecad/src/lib/engine/rs_settings.cpp \