annotate src/gnuplot.mk @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents 2f9d66cb522c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
5230
0656d539f112 * src/gnuplot.mk: update to v5.2.8
John Donoghue
parents: 5084
diff changeset
6 $(PKG)_VERSION := 5.2.8
0656d539f112 * src/gnuplot.mk: update to v5.2.8
John Donoghue
parents: 5084
diff changeset
7 $(PKG)_CHECKSUM := dc018b1e0a31b770d4635958badff13498babc4d
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
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4177
diff changeset
13 $(PKG)_EXTRAFLAGS :=
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4177
diff changeset
14
4345
b144c3e1ba5a gnuplot: only use wxwidgets in windows gnuplot
John D
parents: 4343
diff changeset
15 ifeq ($(MXE_WINDOWS_BUILD),yes)
4991
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
16 $(PKG)_DEPS += wxwidgets cairo pango lua
4345
b144c3e1ba5a gnuplot: only use wxwidgets in windows gnuplot
John D
parents: 4343
diff changeset
17 $(PKG)_EXTRAFLAGS += CAIROTERMS=1 CAIROLIBS=1
b144c3e1ba5a gnuplot: only use wxwidgets in windows gnuplot
John D
parents: 4343
diff changeset
18 $(PKG)_EXTRAFLAGS += WXT=1 WX_CONFIG=$(MXE_TOOL_PREFIX)wx-config
b144c3e1ba5a gnuplot: only use wxwidgets in windows gnuplot
John D
parents: 4343
diff changeset
19 endif
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4177
diff changeset
20
6837
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
21 ifeq ($(ENABLE_QT),5)
4472
0fdeee4cfe11 gnuplot: enable Qt terminal and set default to wxt
Mike Miller <mtmiller@octave.org>
parents: 4452
diff changeset
22 $(PKG)_DEPS += qt5
0fdeee4cfe11 gnuplot: enable Qt terminal and set default to wxt
Mike Miller <mtmiller@octave.org>
parents: 4452
diff changeset
23 $(PKG)_EXTRAFLAGS += QT=1 QT_DIR="$(HOST_PREFIX)/qt5" QT_BIN_DIR="$(BUILD_TOOLS_PREFIX)/bin"
6837
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
24 $(PKG)_STDVER := -std=gnu++11
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
25 endif
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
26 ifeq ($(ENABLE_QT),6)
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
27 $(PKG)_DEPS += qt6
6845
6d543cd87428 * src/gnuplot.mk: update patch to qt5compat includes
John Donoghue <john.donoghue@ieee.org>
parents: 6837
diff changeset
28 $(PKG)_EXTRAFLAGS += QT=1 QT_VERSION=6 QT_DIR="$(HOST_PREFIX)/qt6" QT_EXTRA_CXXFLAGS="-I$(HOST_PREFIX)/qt6/include/QtCore5Compat" QT_BIN_DIR="$(BUILD_TOOLS_PREFIX)/bin" QT_EXTRA_LIBS=-lQt6Core5Compat UIC=$(MXE_UIC) MOC=$(MXE_MOC) QMAKE=$(MXE_QMAKE) RCC=$(MXE_RCC)
6837
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
29 $(PKG)_STDVER := -std=gnu++17
4472
0fdeee4cfe11 gnuplot: enable Qt terminal and set default to wxt
Mike Miller <mtmiller@octave.org>
parents: 4452
diff changeset
30 endif
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4177
diff changeset
31
3668
ceeb3ec75690 gnuplot: provide way to specify where iconv is
John Donoghue
parents: 3577
diff changeset
32 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4177
diff changeset
33 $(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
34 endif
ceeb3ec75690 gnuplot: provide way to specify where iconv is
John Donoghue
parents: 3577
diff changeset
35
2891
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 define $(PKG)_UPDATE
4580
5875a3c3404c update additional PKG_UPDATE rules
John Donoghue <john.donoghue@ieee.org>
parents: 4472
diff changeset
37 $(WGET) -q -O- 'http://sourceforge.net/projects/gnuplot/files/gnuplot/' | \
4601
dc3eb553f5e9 update UPDATE rule for sourceforge projects with version directories
John D
parents: 4580
diff changeset
38 $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \
4580
5875a3c3404c update additional PKG_UPDATE rules
John Donoghue <john.donoghue@ieee.org>
parents: 4472
diff changeset
39 head -1
2891
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 endef
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2990
diff changeset
42 ifeq ($(MXE_SYSTEM),mingw)
7139
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
43 define $(PKG)_BUILD
6837
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
44 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX) $($(PKG)_STDVER)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=gnuplot.exe gnuplot.exe
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
45 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX) $($(PKG)_STDVER)' 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
46
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3281
diff changeset
47 $(INSTALL) -d '$(3)$(HOST_BINDIR)'
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3281
diff changeset
48 $(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
49 $(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
50 $(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
51
6837
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
52 if [ "$(ENABLE_QT)" != "4" ]; then \
6adeb47401d6 Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents: 5944
diff changeset
53 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX) $($(PKG)_STDVER)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=gnuplot_qt.exe gnuplot_qt.exe; \
4472
0fdeee4cfe11 gnuplot: enable Qt terminal and set default to wxt
Mike Miller <mtmiller@octave.org>
parents: 4452
diff changeset
54 $(INSTALL) -m755 '$(1)/config/mingw/gnuplot_qt.exe' '$(3)$(HOST_BINDIR)'; \
0fdeee4cfe11 gnuplot: enable Qt terminal and set default to wxt
Mike Miller <mtmiller@octave.org>
parents: 4452
diff changeset
55 fi
0fdeee4cfe11 gnuplot: enable Qt terminal and set default to wxt
Mike Miller <mtmiller@octave.org>
parents: 4452
diff changeset
56
3577
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
57 # config files
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
58 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share'
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
59 $(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
60
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
61 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
62 $(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
63 done
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
64
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
65 # terminal support
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
66 $(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
67 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
68 $(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
69 done
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
70 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
71 $(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
72 done
4991
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
73 # tikz terminal
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
74 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share/lua'
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
75 $(INSTALL) -m644 "$(1)/term/lua/gnuplot-tikz.lua" '$(3)$(HOST_PREFIX)/share/lua/';
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
76 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share/texmf/tex/latex/gnuplot/'
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
77 $(INSTALL) -m644 "$(1)/share/LaTeX/gnuplot-lua-tikz.sty" '$(3)$(HOST_PREFIX)/share/texmf/tex/latex/gnuplot/';
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
78 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share/texmf/tex/plain/gnuplot/'
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
79 $(INSTALL) -m644 "$(1)/share/LaTeX/gnuplot-lua-tikz.tex" '$(3)$(HOST_PREFIX)/share/texmf/tex/plain/gnuplot/';
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
80 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share/texmf/tex/context/gnuplot/'
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
81 $(INSTALL) -m644 "$(1)/share/LaTeX/t-gnuplot-lua-tikz.tex" '$(3)$(HOST_PREFIX)/share/texmf/tex/context/gnuplot/';
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
82 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share/texmf/tex/generic/gnuplot/'
3768d38e7967 Include lua/tikz terminal in gnuplot for Windows (bug #48474).
Markus Mützel <markus.muetzel@gmx.de>
parents: 4923
diff changeset
83 $(INSTALL) -m644 "$(1)/share/LaTeX/gnuplot-lua-tikz-common.tex" '$(3)$(HOST_PREFIX)/share/texmf/tex/generic/gnuplot/';
3577
1ab2022ff6c7 gnuplot: In mingw, install required auxillary files
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
84
5944
9a893025d734 * src/gnuplot.mk: install term/js files (Bug #61429)
John Donoghue <john.donoghue@ieee.org>
parents: 5230
diff changeset
85 # js files
9a893025d734 * src/gnuplot.mk: install term/js files (Bug #61429)
John Donoghue <john.donoghue@ieee.org>
parents: 5230
diff changeset
86 $(INSTALL) -d '$(3)$(HOST_PREFIX)/share/js'
9a893025d734 * src/gnuplot.mk: install term/js files (Bug #61429)
John Donoghue <john.donoghue@ieee.org>
parents: 5230
diff changeset
87 for f in $(1)/term/js/*.*; do \
9a893025d734 * src/gnuplot.mk: install term/js files (Bug #61429)
John Donoghue <john.donoghue@ieee.org>
parents: 5230
diff changeset
88 $(INSTALL) -m644 "$$f" '$(3)$(HOST_PREFIX)/share/js/'; \
9a893025d734 * src/gnuplot.mk: install term/js files (Bug #61429)
John Donoghue <john.donoghue@ieee.org>
parents: 5230
diff changeset
89 done
9a893025d734 * src/gnuplot.mk: install term/js files (Bug #61429)
John Donoghue <john.donoghue@ieee.org>
parents: 5230
diff changeset
90
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3281
diff changeset
91 ## 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
92 $(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
93 $(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
94 $(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
95 $(INSTALL) -m644 '$(1)/src/win/wgnuplot.mnu' '$(TOP_DIR)/gnuplot/bin/'
7139
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
96 endef
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2990
diff changeset
97 else
7139
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
98 ifeq ($(MXE_SYSTEM),msvc)
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
99 define $(PKG)_BUILD
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
100 $(INSTALL) -d '$(3)$(HOST_PREFIX)'
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
101 cd '$(1)/config/msvc' && \
3115
0e869df2f0ff [MSVC] enable gnuplot compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
102 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
103 env -u MAKE -u MAKEFLAGS nmake DESTDIR=$(shell (cd '$(3)$(HOST_PREFIX)' && pwd -W) | sed -e 's#/#\\\\#g') install
7139
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
104 endef
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
105
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
106 else
6894
7b5dcd048534 gnuplot: Support native build with Qt6
Markus Mützel <markus.muetzel@gmx.de>
parents: 6845
diff changeset
107
7139
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
108 ## If we allow the system Qt libraries to be used, then these
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
109 ## won't make sense.
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
110 $(PKG)_QT_CONFIGURE_OPTIONS := \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
111 MOC=$(MXE_MOC) \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
112 UIC=$(MXE_UIC) \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
113 RCC=$(MXE_RCC) \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
114 LRELEASE=$(MXE_LRELEASE)
6894
7b5dcd048534 gnuplot: Support native build with Qt6
Markus Mützel <markus.muetzel@gmx.de>
parents: 6845
diff changeset
115
7139
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
116 ifeq ($(ENABLE_QT),5)
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
117 $(PKG)_PKG_CONFIG_PATH := "$(HOST_PREFIX)/qt5/lib/pkgconfig:$(HOST_LIBDIR)/pkgconfig"
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
118 $(PKG)_QT_CONFIGURE_OPTIONS += --with-qt=qt5
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
119 endif
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
120 ifeq ($(ENABLE_QT),6)
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
121 $(PKG)_PKG_CONFIG_PATH := "$(HOST_PREFIX)/qt6/lib/pkgconfig:$(HOST_LIBDIR)/pkgconfig"
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
122 $(PKG)_QT_CONFIGURE_OPTIONS += --with-qt=qt6
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
123 endif
6894
7b5dcd048534 gnuplot: Support native build with Qt6
Markus Mützel <markus.muetzel@gmx.de>
parents: 6845
diff changeset
124
7139
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
125 define $(PKG)_BUILD
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
126 cd '$(1)' && autoreconf -fi && PKG_CONFIG_PATH=$($(PKG)_PKG_CONFIG_PATH) \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
127 ./configure \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
128 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) LIBS=-liconv \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
129 --without-lua \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
130 $($(PKG)_QT_CONFIGURE_OPTIONS) \
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
131 --prefix='$(HOST_PREFIX)'
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
132 make -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
133 endef
2f9d66cb522c * src/gnuplot: Change indentation for readability.
Markus Mützel <markus.muetzel@gmx.de>
parents: 6894
diff changeset
134 endif
6894
7b5dcd048534 gnuplot: Support native build with Qt6
Markus Mützel <markus.muetzel@gmx.de>
parents: 6845
diff changeset
135 endif