Mercurial > mxe-octave
changeset 4472:0fdeee4cfe11
gnuplot: enable Qt terminal and set default to wxt
* src/gnuplot.mk: Depend on qt5 and build with QT=1 QT_DIR=$(HOST_PREFIX)/qt QT_BIN_DIR=(BUILD_TOOLS_PREFIX)/bin,
install gnuplot_qt.exe
* src/gnuplot-1-fixes.patch: add to patchto allow override of QT tools and paths
* installer-files/octave-firsttime.vbs: set GNUTERM=wxt
* installer-files/octave.vbs: set GNUTERM=wxt
* installer-files/octave.bat: set GNUTERM=wxt
* installer-files/cmdshell.bat: set GNUTERM=wxt
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 06 Sep 2017 16:19:37 -0700 |
parents | 1a3deda73484 |
children | eabf379ccadd |
files | installer-files/cmdshell.bat installer-files/octave-firsttime.vbs installer-files/octave.bat installer-files/octave.vbs src/gnuplot-1-fixes.patch src/gnuplot.mk |
diffstat | 6 files changed, 32 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/installer-files/cmdshell.bat Mon Sep 18 15:55:33 2017 -0400 +++ b/installer-files/cmdshell.bat Wed Sep 06 16:19:37 2017 -0700 @@ -10,7 +10,7 @@ set PATH=%OCTAVE_HOME%qt5\bin;%OCTAVE_HOME%bin;%PATH% set TERM=cygwin set GS=gs.exe -set GNUTERM=windows +set GNUTERM=wxt Rem set home if not already set if "%HOME%"=="" set HOME=%USERPROFILE%
--- a/installer-files/octave-firsttime.vbs Mon Sep 18 15:55:33 2017 -0400 +++ b/installer-files/octave-firsttime.vbs Wed Sep 06 16:19:37 2017 -0700 @@ -16,7 +16,7 @@ ' set terminal type wshSystemEnv("TERM") = "cygwin" -wshSystemEnv("GNUTERM") = "windows" +wshSystemEnv("GNUTERM") = "wxt" wshSystemEnv("GS") = "gs.exe"
--- a/installer-files/octave.bat Mon Sep 18 15:55:33 2017 -0400 +++ b/installer-files/octave.bat Wed Sep 06 16:19:37 2017 -0700 @@ -16,7 +16,7 @@ Rem Set up any environment vars we may need set TERM=cygwin -set GNUTERM=windows +set GNUTERM=wxt set GS=gs.exe Rem set home if not already set
--- a/installer-files/octave.vbs Mon Sep 18 15:55:33 2017 -0400 +++ b/installer-files/octave.vbs Wed Sep 06 16:19:37 2017 -0700 @@ -16,7 +16,7 @@ ' set terminal type wshSystemEnv("TERM") = "cygwin" -wshSystemEnv("GNUTERM") = "windows" +wshSystemEnv("GNUTERM") = "wxt" wshSystemEnv("GS") = "gs.exe"
--- a/src/gnuplot-1-fixes.patch Mon Sep 18 15:55:33 2017 -0400 +++ b/src/gnuplot-1-fixes.patch Wed Sep 06 16:19:37 2017 -0700 @@ -151,3 +151,22 @@ #endif #ifdef HAVE_STRUCT_EXCEPTION_IN_MATH_H +diff -ur gnuplot-5.0.7.orig/config/mingw/Makefile gnuplot-5.0.7/config/mingw/Makefile +--- gnuplot-5.0.7.orig/config/mingw/Makefile 2017-09-07 17:47:19.588554741 -0400 ++++ gnuplot-5.0.7/config/mingw/Makefile 2017-09-07 17:52:11.565785085 -0400 +@@ -468,10 +468,11 @@ + moc_QtGnuplotWidget.o moc_QtGnuplotScene.o \ + moc_QtGnuplotEvent.o qrc_QtGnuplotResource.o + # +- MOC = $(QT_DIR)/bin/moc +- UIC = $(QT_DIR)/bin/uic +- RCC = $(QT_DIR)/bin/rcc +- LRELEASE = $(QT_DIR)/bin/lrelease ++ QT_BIN_DIR ?= $(QT_DIR)/bin ++ MOC ?= $(QT_BIN_DIR)/moc ++ UIC ?= $(QT_BIN_DIR)/uic ++ RCC ?= $(QT_BIN_DIR)/rcc ++ LRELEASE ?= $(QT_BIN_DIR)/lrelease + QT_FILES_TARGETS = qrc_QtGnuplotResource.cpp ui_QtGnuplotSettings.h moc_QtGnuplotWindow.cpp moc_QtGnuplotApplication.cpp + QT_FILES_TARGETS += moc_QtGnuplotWidget.cpp moc_QtGnuplotScene.cpp moc_QtGnuplotEvent.cpp + QT_TRANSLATION = qtgnuplot_fr.qm qtgnuplot_ja.qm
--- a/src/gnuplot.mk Mon Sep 18 15:55:33 2017 -0400 +++ b/src/gnuplot.mk Wed Sep 06 16:19:37 2017 -0700 @@ -18,10 +18,10 @@ $(PKG)_EXTRAFLAGS += WXT=1 WX_CONFIG=$(MXE_TOOL_PREFIX)wx-config endif -#ifeq ($(ENABLE_QT5),yes) -# $(PKG)_DEPS += qt5 -# $(PKG)_EXTRAFLAGS += QT=1 QT_DIR=$(HOST_PREFIX)/qt5 -#endif +ifeq ($(ENABLE_QT5),yes) + $(PKG)_DEPS += qt5 + $(PKG)_EXTRAFLAGS += QT=1 QT_DIR="$(HOST_PREFIX)/qt5" QT_BIN_DIR="$(BUILD_TOOLS_PREFIX)/bin" +endif ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) $(PKG)_EXTRAFLAGS += ICONV_CFLAGS='-I$(HOST_INCDIR)' ICONV_LDFLAGS='-L$(HOST_LIBDIR)' @@ -42,6 +42,11 @@ $(INSTALL) -m755 '$(1)/config/mingw/wgnuplot.exe' '$(3)$(HOST_BINDIR)' $(INSTALL) -m644 '$(1)/src/win/wgnuplot.mnu' '$(3)$(HOST_BINDIR)' + if [ "$(ENABLE_QT5)" == "yes" ]; then \ + make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX) -std=gnu++11' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=gnuplot_qt.exe gnuplot_qt.exe; \ + $(INSTALL) -m755 '$(1)/config/mingw/gnuplot_qt.exe' '$(3)$(HOST_BINDIR)'; \ + fi + # config files $(INSTALL) -d '$(3)$(HOST_PREFIX)/share' $(INSTALL) -m644 '$(1)/share/gnuplotrc' '$(3)$(HOST_PREFIX)/share/'