Ticket #53509: gnuplot-splot.diff

File gnuplot-splot.diff, 1.7 KB (added by mojca (Mojca Miklavec), 8 years ago)

Upstream patch for 3d plotting in gnuplot

  • math/gnuplot/Portfile

    diff --git a/math/gnuplot/Portfile b/math/gnuplot/Portfile
    index c0a5463847..04e6747abd 100644
    a b PortGroup wxWidgets 1.0 
    77
    88name                gnuplot
    99version             5.0.5
    10 revision            1
     10revision            2
    1111categories          math science
    1212# the license has some inconvenient requirements that we're not meeting
    1313# to be allowed to distribute binaries
    depends_lib port:expat \ 
    5151minimum_xcodeversions \
    5252                    {9 3.1}
    5353
    54 patchfiles          patch-configure.diff
     54patchfiles          patch-configure.diff \
     55                    patch-upstream-src-hidden3d.c.diff
    5556#                   patch-src-qtterminal-qt_conversion.cpp.diff
    5657
    5758configure.args      --with-caca=${prefix} \
  • new file math/gnuplot/files/patch-upstream-src-hidden3d.c.diff

    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' */