diff --git a/math/gnuplot/Portfile b/math/gnuplot/Portfile
index c0a5463847..04e6747abd 100644
a
|
b
|
PortGroup wxWidgets 1.0 |
7 | 7 | |
8 | 8 | name gnuplot |
9 | 9 | version 5.0.5 |
10 | | revision 1 |
| 10 | revision 2 |
11 | 11 | categories math science |
12 | 12 | # the license has some inconvenient requirements that we're not meeting |
13 | 13 | # to be allowed to distribute binaries |
… |
… |
depends_lib port:expat \ |
51 | 51 | minimum_xcodeversions \ |
52 | 52 | {9 3.1} |
53 | 53 | |
54 | | patchfiles patch-configure.diff |
| 54 | patchfiles patch-configure.diff \ |
| 55 | patch-upstream-src-hidden3d.c.diff |
55 | 56 | # patch-src-qtterminal-qt_conversion.cpp.diff |
56 | 57 | |
57 | 58 | configure.args --with-caca=${prefix} \ |
diff --git a/math/gnuplot/files/patch-upstream-src-hidden3d.c.diff b/math/gnuplot/files/patch-upstream-src-hidden3d.c.diff
new file mode 100644
index 0000000000..af1c68eba7
-
|
+
|
|
| 1 | --- src/hidden3d.c.orig |
| 2 | +++ src/hidden3d.c |
| 3 | @@ -1116,14 +1116,15 @@ build_networks(struct surface_points *plots, int pcount) |
| 4 | nv += 2 * nverts; |
| 5 | ne += nverts; |
| 6 | break; |
| 7 | - case DOTS: |
| 8 | - this_plot->lp_properties.flags |= LP_SHOW_POINTS; |
| 9 | - this_plot->lp_properties.p_type = -1; |
| 10 | case IMAGE: |
| 11 | case RGBIMAGE: |
| 12 | case RGBA_IMAGE: |
| 13 | /* Ignore these */ |
| 14 | break; |
| 15 | + case DOTS: |
| 16 | + this_plot->lp_properties.flags |= LP_SHOW_POINTS; |
| 17 | + this_plot->lp_properties.p_type = -1; |
| 18 | + /* fall through */ |
| 19 | case POINTSTYLE: |
| 20 | default: |
| 21 | /* treat all remaining ones like 'points' */ |