Mercurial > mxe-octave
annotate src/gnuplot-1-fixes.patch @ 4443:6aa7dd77d82c
gnuplot: update to v5.0.6
* src/gnuplot-1-fixes.patch: update patch
* src/gnuplot.mk: update version, checksum
author | John D |
---|---|
date | Wed, 09 Aug 2017 12:26:08 -0400 |
parents | 16d2b997c31b |
children | c615db675618 |
rev | line source |
---|---|
4443 | 1 diff -ur gnuplot-5.0.6.orig/config/mingw/Makefile gnuplot-5.0.6/config/mingw/Makefile |
2 --- gnuplot-5.0.6.orig/config/mingw/Makefile 2017-08-03 15:33:24.088765021 -0400 | |
3 +++ gnuplot-5.0.6/config/mingw/Makefile 2017-08-03 15:39:44.802747844 -0400 | |
4 @@ -102,18 +102,19 @@ | |
4343 | 5 # Uncomment the following lines to compile it. |
6 #WXT=1 | |
7 #CAIROLIBS=1 | |
8 +WX_CONFIG ?= wx-config | |
9 | |
10 # Build qt terminal? | |
11 #QT = 1 | |
12 # specify QT installation directory | |
13 #QT_DIR = /c/Qt/5.2.1/mingw48_32 | |
14 ifndef MINGW64 | |
15 -QT_DIR = /d/Source/Qt-5.2.1-mingw/5.2.1/mingw48_32 | |
16 +QT_DIR ?= /d/Source/Qt-5.2.1-mingw/5.2.1/mingw48_32 | |
17 else | |
4443 | 18 ifdef M32 |
19 -QT_DIR = /mingw32 | |
20 +QT_DIR ?= /mingw32 | |
21 else | |
4343 | 22 -QT_DIR = /mingw64 |
23 +QT_DIR ?= /mingw64 | |
24 endif | |
4443 | 25 endif |
4343 | 26 |
4443 | 27 @@ -131,7 +132,7 @@ |
3945
a397ccee4b57
Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3281
diff
changeset
|
28 |
4151 | 29 # Uncomment if you have libcerf |
30 # http://sourceforge.net/projects/libcerf/ | |
31 -CERF=1 | |
32 +#CERF=1 | |
33 | |
34 # Below you can adapt paths according to your software setup: | |
35 | |
4443 | 36 @@ -160,6 +161,7 @@ |
4191
851b9f4a6b1c
Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
4177
diff
changeset
|
37 |
851b9f4a6b1c
Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
4177
diff
changeset
|
38 # Do you want some special optimization / flags? |
4443 | 39 #CFLAGS += |
4191
851b9f4a6b1c
Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
4177
diff
changeset
|
40 +CFLAGS += -DDISABLE_SPACE_RAISES_CONSOLE |
4443 | 41 CWFLAGS += -Wno-unused-function |
4191
851b9f4a6b1c
Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
4177
diff
changeset
|
42 ifdef CLANG |
851b9f4a6b1c
Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
4177
diff
changeset
|
43 CFLAGS += -fcolor-diagnostics -fansi-escape-codes |
4443 | 44 @@ -177,8 +179,8 @@ |
3945
a397ccee4b57
Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3281
diff
changeset
|
45 # http://go.microsoft.com/fwlink/?LinkId=154968 |
a397ccee4b57
Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3281
diff
changeset
|
46 # We need to explicitly set the correct path here since we also need |
a397ccee4b57
Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3281
diff
changeset
|
47 # adjust the include and library paths. |
4177
16b2ee1a1b5d
gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents:
4151
diff
changeset
|
48 -HHWPATH = $(PROGRAMFILES32)/HTML\ Help\ Workshop/ |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
49 -HHC = $(HHWPATH)hhc |
4177
16b2ee1a1b5d
gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents:
4151
diff
changeset
|
50 +#HHWPATH = $(PROGRAMFILES32)/HTML\ Help\ Workshop/ |
4151 | 51 +#HHC = $(HHWPATH)hhc |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 |
3945
a397ccee4b57
Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3281
diff
changeset
|
53 # Choose which resource compiler you want to use (GNU windres or MS rc): |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
54 GNU_RC = 1 |
4443 | 55 @@ -194,7 +196,7 @@ |
4151 | 56 # get it from: http://www.jrsoftware.org/isdl.php |
4443 | 57 # Use unicode version of Inno Setup Compiler but not Standard version |
58 # because the setup file of gnuplot installer is now encoded utf-8 with BOM. | |
4177
16b2ee1a1b5d
gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents:
4151
diff
changeset
|
59 -ISCC = $(PROGRAMFILES32)/Inno\ Setup\ 5/iscc |
16b2ee1a1b5d
gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents:
4151
diff
changeset
|
60 +#ISCC = $(PROGRAMFILES32)/Inno\ Setup\ 5/iscc |
3945
a397ccee4b57
Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3281
diff
changeset
|
61 |
4151 | 62 # Directory that might contain extra files to be shipped with the installer. |
63 # This should include dependencies like DLLs, but also fontconfig configuration files. | |
4443 | 64 @@ -445,9 +447,9 @@ |
4297 | 65 |
66 ifdef WXT | |
67 CFLAGS += -DWXWIDGETS | |
68 - WXT_CXXFLAGS := $(shell wx-config --cxxflags) | |
69 + WXT_CXXFLAGS := $(shell $(WX_CONFIG) --cxxflags) | |
70 CXXFLAGS += $(WXT_CXXFLAGS) | |
71 - WX_LIBS := $(shell wx-config --libs | sed -e "s+-Wl,--subsystem,windows++g" -e "s+-mwindows++g") | |
72 + WX_LIBS := $(shell $(WX_CONFIG) --libs | sed -e "s+-Wl,--subsystem,windows++g" -e "s+-mwindows++g") | |
73 WX_OBJS = wxt_gui.$(O) | |
74 endif | |
75 | |
4443 | 76 @@ -537,7 +539,7 @@ |
4343 | 77 FULLVERSION := $(MAINVERSION) patchlevel $(PATCHLEVEL) |
78 | |
79 | |
80 -default: $(TARGET) $(MENUFILE) support | |
81 +default: $(TARGET) $(MENUFILE) #support | |
82 | |
83 console: | |
84 $(MAKE) TARGET=gnuplot.exe default | |
4443 | 85 @@ -579,8 +581,8 @@ |
4343 | 86 $(CC) -c $(CFLAGS) $(CFLAGSEXTRA) -MMD -MT '$*.$$(O)' -MF $*.d -o $@ $< |
87 | |
88 LDLIBS = -lkernel32 -lgdi32 -lwinspool -lcomdlg32 -lcomctl32 -ladvapi32 -lshell32 -lmsimg32 -lgdiplus | |
89 -LDLIBS += -lhtmlhelp | |
90 -LDFLAGS2 += -L$(HHWPATH)lib | |
91 +#LDLIBS += -lhtmlhelp | |
92 +#LDFLAGS2 += -L$(HHWPATH)lib | |
93 ifdef MINGW64 | |
94 LDFLAGS2 += -L. | |
95 endif | |
4443 | 96 diff -ur gnuplot-5.0.6.orig/src/command.c gnuplot-5.0.6/src/command.c |
97 --- gnuplot-5.0.6.orig/src/command.c 2017-08-03 15:33:24.065752872 -0400 | |
98 +++ gnuplot-5.0.6/src/command.c 2017-08-03 15:41:32.160423062 -0400 | |
4343 | 99 @@ -125,7 +125,7 @@ |
4297 | 100 # endif |
4343 | 101 #endif /* _Windows */ |
102 | |
103 -#ifdef _Windows | |
104 +#ifdef IGNORE_Windows | |
105 # include <windows.h> | |
106 # ifdef __MSC__ | |
107 # include <malloc.h> | |
4443 | 108 @@ -2543,6 +2543,7 @@ |
4343 | 109 void |
110 help_command() | |
111 { | |
112 +#ifndef __MINGW32__ | |
113 HWND parent; | |
4297 | 114 |
4343 | 115 c_token++; |
4443 | 116 @@ -2578,6 +2579,7 @@ |
4343 | 117 link.fIndexOnFail = TRUE; |
118 HtmlHelp(parent, winhelpname, HH_KEYWORD_LOOKUP, (DWORD_PTR)&link); | |
119 } | |
120 +#endif | |
121 } | |
122 #else /* !_Windows */ | |
123 #ifndef VMS | |
4443 | 124 diff -ur gnuplot-5.0.6.orig/src/internal.c gnuplot-5.0.6/src/internal.c |
125 --- gnuplot-5.0.6.orig/src/internal.c 2017-08-03 15:33:24.074757626 -0400 | |
126 +++ gnuplot-5.0.6/src/internal.c 2017-08-03 15:41:59.832031188 -0400 | |
4343 | 127 @@ -47,7 +47,7 @@ |
128 | |
129 #include <math.h> | |
130 | |
131 -#ifndef _WIN64 | |
132 +#if !defined(__MINGW64_VERSION_MAJOR) | |
133 /* | |
134 * FIXME: This is almost certainly out of date on linux, since the matherr | |
135 * mechanism has been replaced by math_error() and supposedly is only | |
4443 | 136 diff -ur gnuplot-5.0.6.orig/src/syscfg.h gnuplot-5.0.6/src/syscfg.h |
137 --- gnuplot-5.0.6.orig/src/syscfg.h 2017-08-03 15:33:24.068754457 -0400 | |
138 +++ gnuplot-5.0.6/src/syscfg.h 2017-08-03 15:44:56.806457805 -0400 | |
139 @@ -345,7 +345,11 @@ | |
140 #endif | |
4343 | 141 |
142 #ifndef GP_MATHERR | |
4443 | 143 -# define GP_MATHERR matherr |
4343 | 144 +# if __MINGW32__ |
145 +# define GP_MATHERR _matherr | |
146 +#else | |
147 +# define GP_MATHERR matherr | |
4443 | 148 +# endif |
4343 | 149 #endif |
150 | |
151 #ifdef HAVE_STRUCT_EXCEPTION_IN_MATH_H |