Mercurial > mxe-octave
annotate src/gnuplot.mk @ 3577:1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
* src/gnuplot.mk: intsall share/gnuplotrc, share/*.gp, term/PostScript/*.ps, term/PostScript/*.txt
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 19 Mar 2014 20:54:18 -0400 |
parents | 13be64f9f16d |
children | ceeb3ec75690 |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
6 $(PKG)_VERSION := 4.6.4 |
3281
53c8b9c843c6
Update gnuplot to 4.6.4
John Donoghue <john.donoghue@ieee.org>
parents:
3221
diff
changeset
|
7 $(PKG)_CHECKSUM := 54ee5ce9a0a2698b046064bd275e772673350013 |
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 |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 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
|
15 echo $(gnuplot_VERSION) |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 endef |
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 |
2997 | 18 ifeq ($(MXE_SYSTEM),mingw) |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
3022
a542328fc284
Update freetds,gnuplot to use MXE_XXXX set tools
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
20 make -C '$(1)/config/mingw' CC='$(MXE_CC)' CXX='$(MXE_CXX)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=gnuplot.exe gnuplot.exe |
a542328fc284
Update freetds,gnuplot to use MXE_XXXX set tools
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
21 make -C '$(1)/config/mingw' 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
|
22 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
23 $(INSTALL) -d '$(3)$(HOST_BINDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
24 $(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
|
25 $(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
|
26 $(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
|
27 |
3577
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
28 # config files |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
29 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share' |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
30 $(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
|
31 |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
32 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
|
33 $(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
|
34 done |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
35 |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
36 # terminal support |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
37 $(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
|
38 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
|
39 $(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
|
40 done |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
41 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
|
42 $(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
|
43 done |
1ab2022ff6c7
gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
44 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
45 ## 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
|
46 $(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
|
47 $(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
|
48 $(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
|
49 $(INSTALL) -m644 '$(1)/src/win/wgnuplot.mnu' '$(TOP_DIR)/gnuplot/bin/' |
2990
5329f4891fb7
build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
2891
diff
changeset
|
50 |
2891
848118c648ae
Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
51 endef |
2997 | 52 else |
3115
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
53 ifeq ($(MXE_SYSTEM),msvc) |
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
54 define $(PKG)_BUILD |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
55 $(INSTALL) -d '$(3)$(HOST_PREFIX)' |
3115
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
56 cd '$(1)/config/msvc' && \ |
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
57 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
|
58 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
|
59 endef |
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
60 else |
2997 | 61 define $(PKG)_BUILD |
3221
c05da3e2f652
gnuplot.mk: find locally built libiconv for native builds
John W. Eaton <jwe@octave.org>
parents:
3115
diff
changeset
|
62 cd '$(1)' && ./configure \ |
c05da3e2f652
gnuplot.mk: find locally built libiconv for native builds
John W. Eaton <jwe@octave.org>
parents:
3115
diff
changeset
|
63 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) LIBS=-liconv \ |
c05da3e2f652
gnuplot.mk: find locally built libiconv for native builds
John W. Eaton <jwe@octave.org>
parents:
3115
diff
changeset
|
64 --prefix '$(HOST_PREFIX)' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3281
diff
changeset
|
65 make -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
2997 | 66 endef |
67 endif | |
3115
0e869df2f0ff
[MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
68 endif |