View | Details | Raw Unified | Return to bug 199539 | Differences between
and this patch

Collapse All | Expand All

(-)science/gnudatalanguage/Makefile (-2 / +2 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	gnudatalanguage
4
PORTNAME=	gnudatalanguage
5
DISTVERSION=	0.9.5
5
DISTVERSION=	0.9.5
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	science lang
7
CATEGORIES=	science lang
8
MASTER_SITES=	SF/${PORTNAME}/gdl/${DISTVERSION}
8
MASTER_SITES=	SF/${PORTNAME}/gdl/${DISTVERSION}
9
.if defined(BUILD_PYTHON_MODULE)
9
.if defined(BUILD_PYTHON_MODULE)
Lines 16-22 Link Here
16
16
17
LICENSE=	GPLv2
17
LICENSE=	GPLv2
18
18
19
LIB_DEPENDS+=	libplplotd.so:${PORTSDIR}/math/plplot	\
19
LIB_DEPENDS+=	libplplot.so:${PORTSDIR}/math/plplot	\
20
		libpng.so:${PORTSDIR}/graphics/png	\
20
		libpng.so:${PORTSDIR}/graphics/png	\
21
		libps.so:${PORTSDIR}/print/pslib	\
21
		libps.so:${PORTSDIR}/print/pslib	\
22
		libgsl.so:${PORTSDIR}/math/gsl
22
		libgsl.so:${PORTSDIR}/math/gsl
(-)science/gnudatalanguage/files/patch-CMakeModules_FindPlplot.cmake (+13 lines)
Line 0 Link Here
1
--- CMakeModules/FindPlplot.cmake.orig	2015-04-21 22:53:45 UTC
2
+++ CMakeModules/FindPlplot.cmake
3
@@ -9,8 +9,8 @@
4
 #
5
 
6
 
7
-find_library(PLPLOT_LIBRARY NAMES plplotd)
8
-find_library(PLPLOTCXX_LIBRARY NAMES plplotcxxd)
9
+find_library(PLPLOT_LIBRARY NAMES plplot)
10
+find_library(PLPLOTCXX_LIBRARY NAMES plplotcxx)
11
 set(PLPLOT_LIBRARIES ${PLPLOT_LIBRARY} ${PLPLOTCXX_LIBRARY})
12
 find_path(PLPLOT_INCLUDE_DIR NAMES plplot/plplot.h)
13
 include(FindPackageHandleStandardArgs)
(-)science/gnudatalanguage/files/patch-src_plotting__contour.cpp (+75 lines)
Line 0 Link Here
1
--- src/plotting_contour.cpp.orig	2015-04-22 11:10:10 UTC
2
+++ src/plotting_contour.cpp
3
@@ -789,8 +789,8 @@ namespace lib
4
               1, value, 
5
               static_cast<PLFLT>(( *thick )[i%thick->N_Elements()]),
6
               0,0,0,0,
7
-              (plstream::fill), (oneDim),
8
-              (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
9
+              (plcallback::fill), (oneDim),
10
+              (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
11
             }
12
             actStream->psty(0);
13
 //            if (docolors) gdlSetGraphicsForegroundColorFromKw( e, actStream );
14
@@ -808,8 +808,8 @@ namespace lib
15
               clevel[i], maxmax, 
16
               1,value,
17
               0,0,0,0,0,
18
-                  plstream::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc
19
-                  (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
20
+                  plcallback::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc
21
+                  (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
22
                 }
23
           } else {  //every other case of fill 
24
             // note that plshades is not protected against 1 level (color formula is
25
@@ -818,8 +818,8 @@ namespace lib
26
             if (nlevel>2 && !(docolors)) { //acceleration with shades when no c_colors are given. use continuous table1, decomposed or not.
27
               //acceleration is most sensible when a (x,y) transform (rotate, stretch) is in place since plplot does not recompute the map.
28
               actStream->shades( map, xEl, yEl, isLog?doIt:NULL, xStart, xEnd, yStart, yEnd,
29
-                                clevel, nlevel, 1, 0, 0, plstream::fill, (oneDim),
30
-                                (oneDim)?(plstream::tr1):(plstream::tr2),
31
+                                clevel, nlevel, 1, 0, 0, plcallback::fill, (oneDim),
32
+                                (oneDim)?(plcallback::tr1):(plcallback::tr2),
33
                                 (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
34
             }
35
             else { //fill with colors defined with c_colors or n<=2
36
@@ -832,8 +832,8 @@ namespace lib
37
                 clevel[i], maxmax,
38
                 1,value,
39
                 0,0,0,0,0,
40
-                plstream::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc
41
-                (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
42
+                plcallback::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc
43
+                (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
44
               } else
45
 		        printf(" Problem, sorry! plplot doesn't like to FILL with a single level!");
46
             }
47
@@ -854,7 +854,7 @@ namespace lib
48
             if (doT3d) { //no label in T3D , bug in plplot...
49
               actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING, 0 );
50
               actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1,
51
-                (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
52
+                (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
53
             } else {
54
               if (dolabels && i<labels->N_Elements()) 
55
               {
56
@@ -862,16 +862,16 @@ namespace lib
57
                                                               //else (lables thicker than contours) impossible with plplot...
58
                   actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING, 0 ); 
59
                   actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1,
60
-                  (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); //thick contours, no label
61
+                  (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); //thick contours, no label
62
                   actStream->Thick(label_thick);
63
                 } 
64
                 actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING*sqrt(label_size),(PLINT)(*labels)[i] ); 
65
                 actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1,
66
-                (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
67
+                (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
68
                 if (!dothick) gdlSetPenThickness(e, actStream);
69
               } else {
70
                 actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1,
71
-                (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
72
+                (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
73
               }
74
             }
75
           }

Return to bug 199539