Mercurial > mxe-octave
annotate src/qscintilla.mk @ 5893:53a6c7df43f8
Mesa 3D: Update to version 21.1.8.
* src/mesa.mk: Update version and checksum.
* src/mesa-2-uninitialized.patch: Remove file.
* dist-files.mk: Remove file from list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 16 Sep 2021 22:37:45 +0200 |
parents | f8acaccbf84d |
children | 78901dc12b99 |
rev | line source |
---|---|
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := qscintilla |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
5587
f8acaccbf84d
* src/qscintilla.mk: update to 2.11.6
John Donoghue <john.donoghue@ieee.org>
parents:
5457
diff
changeset
|
6 $(PKG)_VERSION := 2.11.6 |
f8acaccbf84d
* src/qscintilla.mk: update to 2.11.6
John Donoghue <john.donoghue@ieee.org>
parents:
5457
diff
changeset
|
7 $(PKG)_CHECKSUM := fe010886e59996b53e38811f67993262220c8ae5 |
5200 | 8 $(PKG)_SUBDIR := QScintilla-$($(PKG)_VERSION) |
9 $(PKG)_FILE := QScintilla-$($(PKG)_VERSION).tar.gz | |
5042 | 10 $(PKG)_URL := https://www.riverbankcomputing.com/static/Downloads/QScintilla/$($(PKG)_VERSION)/$($(PKG)_FILE) |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
11 |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
12 |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
13 ifeq ($(ENABLE_QT5),yes) |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
14 $(PKG)_DEPS := qt5 |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
15 else |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
16 $(PKG)_DEPS := qt |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
17 endif |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 |
3613
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
19 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
20 $(PKG)_INSTALL_ROOT := |
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
21 else |
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
22 $(PKG)_INSTALL_ROOT := $(3) |
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
23 endif |
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
24 |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 define $(PKG)_UPDATE |
3708
d95b8b84cea7
enable additional $(PKG)_UPDATE targets.
John W. Eaton <jwe@octave.org>
parents:
3645
diff
changeset
|
26 $(WGET) -q -O- 'http://www.riverbankcomputing.com/software/qscintilla/download' | \ |
5200 | 27 $(SED) -n 's,.*QScintilla-\([0-9][^>]*\)\.zip.*,\1,p' | \ |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4614
diff
changeset
|
28 head -n 1 |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 endef |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 |
2997 | 31 ifneq ($(MXE_NATIVE_BUILD),yes) |
32 ifeq ($(MXE_SYSTEM),mingw) | |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
33 ifeq ($(ENABLE_QT5),yes) |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
34 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(BUILD_TOOLS_PREFIX)/mkspecs/win32-g++' |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
35 else |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
36 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_PREFIX)/mkspecs/win32-g++' |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
37 endif |
2997 | 38 endif |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
39 ifeq ($(MXE_SYSTEM),msvc) |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
40 # FIXME: compute "2010" suffix dynamically |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
41 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_LIBDIR)/qt4/mkspecs/win32-msvc2010' |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
42 endif |
2997 | 43 endif |
44 | |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
45 define $(PKG)_BUILD |
4503
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
46 cd '$(1)/Qt4Qt5' && \ |
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
47 '$(MXE_QMAKE)' -makefile \ |
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
48 $($(PKG)_QMAKE_SPEC_OPTION) \ |
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
49 QMAKE_UIC='$(MXE_UIC)' \ |
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
50 QMAKE_MOC='$(MXE_MOC)' \ |
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
51 QMAKE_LFLAGS=$(MXE_LDFLAGS) \ |
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
52 QMAKE_CXXFLAGS='-std=c++11' |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
53 |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
54 if [ $(MXE_SYSTEM) = msvc ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
55 mkdir -p '$(3)' && \ |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
56 cd '$(1)/Qt4Qt5' && \ |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
57 env -u MAKE -u MAKEFLAGS nmake && \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
58 env -u MAKE -u MAKEFLAGS nmake \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
59 INSTALL_ROOT=`cd $(3) && pwd -W | sed -e 's,^[a-zA-Z]:,,' -e 's,/,\\\\,g'` install; \ |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
60 else \ |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
61 $(MAKE) -C '$(1)/Qt4Qt5' -j '$(JOBS)' && \ |
3613
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
62 $(MAKE) -C '$(1)/Qt4Qt5' -j 1 install INSTALL_ROOT='$($(PKG)_INSTALL_ROOT)'; \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
63 fi |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
64 |
4517
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
65 if [ $(MXE_SYSTEM) = mingw ]; then \ |
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
66 $(INSTALL) -d '$($(PKG)_INSTALL_ROOT)$(HOST_BINDIR)'; \ |
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
67 if [ $(ENABLE_QT5) = yes ]; then \ |
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
68 mv '$($(PKG)_INSTALL_ROOT)$(HOST_PREFIX)/qt5/lib/qscintilla2_qt5.dll' '$($(PKG)_INSTALL_ROOT)$(HOST_BINDIR)'; \ |
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
69 else \ |
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
70 mv '$($(PKG)_INSTALL_ROOT)$(HOST_LIBDIR)/qscintilla2_qt4.dll' '$($(PKG)_INSTALL_ROOT)$(HOST_BINDIR)/'; \ |
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
71 fi; \ |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
72 fi |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
73 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
74 # Qmake under MSVC uses Win32 paths. When combining this with |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
75 # DESTDIR usage (or equivalent), the real Win32 directory hierarchy |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
76 # is recreated under DESTDIR, not the MSYS hierarchy. |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
77 if [ $(MXE_SYSTEM) = msvc ]; then \ |
3613
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
78 $(INSTALL) -d '$($(PKG)_INSTALL_ROOT)$(CMAKE_HOST_PREFIX)/bin'; \ |
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
79 $(INSTALL) -m755 '$($(PKG)_INSTALL_ROOT)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll' '$($(PKG)_INSTALL_ROOT)$(CMAKE_HOST_PREFIX)/bin/'; \ |
62901e283b28
qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
3597
diff
changeset
|
80 rm -f '$($(PKG)_INSTALL_ROOT)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll'; \ |
2997 | 81 fi |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
82 |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
83 endef |