Mercurial > mxe-octave
annotate src/gnuplot.mk @ 4343:16d2b997c31b
gnuplot: update t 5.0.5
* src/gnuplot-1-fixes.patch: update patch
* src/gnuplot.mk: update version, checksum
author | John D |
---|---|
date | Fri, 20 Jan 2017 12:15:15 -0500 |
parents | cdb9bdcce9f5 |
children | b144c3e1ba5a |
rev | line source |
---|---|
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := gnuplot |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
4343 | 6 $(PKG)_VERSION := 5.0.5 |
7 $(PKG)_CHECKSUM := c35f55657fdc33217dd70bbf3148578563ecaad1 | |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 $(PKG)_FILE := gnuplot-$($(PKG)_VERSION).tar.gz |
3281
53c8b9c843c6
Update gnuplot to 4.6.4
John Donoghue <john.donoghue@ieee.org>
parents:
3221
diff
changeset
|
10 $(PKG)_URL := http://sourceforge.net/projects/gnuplot/files/gnuplot/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3022
diff
changeset
|
11 $(PKG)_DEPS := |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 |
4297 | 13 $(PKG)_EXTRAFLAGS := |
14 | |
15 | |
16 $(PKG)_DEPS += wxwidgets cairo pango | |
4326
cdb9bdcce9f5
Fix typo in gnuplot,mk introduced by bug #48474 fixes
John D
parents:
4297
diff
changeset
|
17 $(PKG)_EXTRAFLAGS += CAIROTERMS=1 CAIROLIBS=1 |
4297 | 18 $(PKG)_EXTRAFLAGS += WXT=1 WX_CONFIG=$(MXE_TOOL_PREFIX)wx-config |
19 | |
20 #ifeq ($(ENABLE_QT5),yes) | |
21 # $(PKG)_DEPS += qt5 | |
22 # $(PKG)_EXTRAFLAGS += QT=1 QT_DIR=$(HOST_PREFIX)/qt5 | |
23 #endif | |
24 | |
3668
ceeb3ec75690
gnuplot: provide way to specify where iconv is
John Donoghue
parents:
3577
diff
changeset
|
25 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
4297 | 26 $(PKG)_EXTRAFLAGS += ICONV_CFLAGS='-I$(HOST_INCDIR)' ICONV_LDFLAGS='-L$(HOST_LIBDIR)' |
3668
ceeb3ec75690
gnuplot: provide way to specify where iconv is
John Donoghue
parents:
3577
diff
changeset
|
27 endif |
ceeb3ec75690
gnuplot: provide way to specify where iconv is
John Donoghue
parents:
3577
diff
changeset
|
28 |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 define $(PKG)_UPDATE |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 echo 'Warning: Updates are temporarily disabled for package gnuplot.' >&2; |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 echo $(gnuplot_VERSION) |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 endef |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 |
2997 | 34 ifeq ($(MXE_SYSTEM),mingw) |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 define $(PKG)_BUILD |
3668
ceeb3ec75690
gnuplot: provide way to specify where iconv is
John Donoghue
parents:
3577
diff
changeset
|
36 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=gnuplot.exe gnuplot.exe |
ceeb3ec75690
gnuplot: provide way to specify where iconv is
John Donoghue
parents:
3577
diff
changeset
|
37 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=wgnuplot.exe wgnuplot.exe |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
39 $(INSTALL) -d '$(3)$(HOST_BINDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
40 $(INSTALL) -m755 '$(1)/config/mingw/gnuplot.exe' '$(3)$(HOST_BINDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
41 $(INSTALL) -m755 '$(1)/config/mingw/wgnuplot.exe' '$(3)$(HOST_BINDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
42 $(INSTALL) -m644 '$(1)/src/win/wgnuplot.mnu' '$(3)$(HOST_BINDIR)' |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
43 |
3577
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
44 # config files |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
45 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share' |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
46 $(INSTALL) -m644 '$(1)/share/gnuplotrc' '$(3)$(HOST_PREFIX)/share/' |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
47 |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
48 for f in $(1)/share/*.gp; do \ |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
49 $(INSTALL) -m644 "$$f" '$(3)$(HOST_PREFIX)/share/'; \ |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
50 done |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
51 |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
52 # terminal support |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
53 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share/PostScript' |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
54 for f in $(1)/term/PostScript/*.ps; do \ |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
55 $(INSTALL) -m644 "$$f" '$(3)$(HOST_PREFIX)/share/PostScript/'; \ |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
56 done |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
57 for f in $(1)/term/PostScript/*.txt; do \ |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
58 $(INSTALL) -m644 "$$f" '$(3)$(HOST_PREFIX)/share/PostScript/'; \ |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
59 done |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
60 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
61 ## MG: not sure what to do with these and how to integrate with DESTDIR |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
62 $(INSTALL) -d '$(TOP_DIR)/gnuplot/bin' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
63 $(INSTALL) -m755 '$(1)/config/mingw/gnuplot.exe' '$(TOP_DIR)/gnuplot/bin/' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
64 $(INSTALL) -m755 '$(1)/config/mingw/wgnuplot.exe' '$(TOP_DIR)/gnuplot/bin/' |
3281
53c8b9c843c6
Update gnuplot to 4.6.4
John Donoghue <john.donoghue@ieee.org>
parents:
3221
diff
changeset
|
65 $(INSTALL) -m644 '$(1)/src/win/wgnuplot.mnu' '$(TOP_DIR)/gnuplot/bin/' |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
66 endef |
2997 | 67 else |
3115
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
68 ifeq ($(MXE_SYSTEM),msvc) |
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
69 define $(PKG)_BUILD |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
70 $(INSTALL) -d '$(3)$(HOST_PREFIX)' |
3115
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
71 cd '$(1)/config/msvc' && \ |
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
72 env -u MAKE -u MAKEFLAGS nmake DESTDIR=$(shell (cd '$(HOST_PREFIX)' && pwd -W) | sed -e 's#/#\\\\#g') && \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
73 env -u MAKE -u MAKEFLAGS nmake DESTDIR=$(shell (cd '$(3)$(HOST_PREFIX)' && pwd -W) | sed -e 's#/#\\\\#g') install |
3115
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
74 endef |
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
75 else |
2997 | 76 define $(PKG)_BUILD |
3221
c05da3e2f652
gnuplot.mk: find locally built libiconv for native builds
John W. Eaton <jwe@octave.org>
parents:
3115
diff
changeset
|
77 cd '$(1)' && ./configure \ |
c05da3e2f652
gnuplot.mk: find locally built libiconv for native builds
John W. Eaton <jwe@octave.org>
parents:
3115
diff
changeset
|
78 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) LIBS=-liconv \ |
4149
aa31b3163501
workaround for gnuplot build on native build
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3945
diff
changeset
|
79 --without-lua --prefix='$(HOST_PREFIX)' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
80 make -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
2997 | 81 endef |
82 endif | |
3115
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
83 endif |