Mercurial > mxe-octave
annotate src/qscintilla.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 | f744a377c634 |
children |
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 := |
6745
9d08bc7630c8
* src/qscintilla.mk: update to v2.14.1
John Donoghue <john.donoghue@ieee.org>
parents:
6700
diff
changeset
|
6 $(PKG)_VERSION := 2.14.1 |
9d08bc7630c8
* src/qscintilla.mk: update to v2.14.1
John Donoghue <john.donoghue@ieee.org>
parents:
6700
diff
changeset
|
7 $(PKG)_CHECKSUM := 433cc4cb7da65c25a11ea3efbc5a7db31c6d7e3c |
5922
78901dc12b99
qscintilla: update to v2.13.0
John Donoghue <john.donoghue@ieee.org>
parents:
5587
diff
changeset
|
8 $(PKG)_SUBDIR := QScintilla_src-$($(PKG)_VERSION) |
78901dc12b99
qscintilla: update to v2.13.0
John Donoghue <john.donoghue@ieee.org>
parents:
5587
diff
changeset
|
9 $(PKG)_FILE := QScintilla_src-$($(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 |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
13 ifeq ($(ENABLE_QT),4) |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
14 $(PKG)_DEPS := qt |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
15 endif |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
16 ifeq ($(ENABLE_QT),5) |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
17 $(PKG)_DEPS := qt5 |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
18 endif |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
19 ifeq ($(ENABLE_QT),6) |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
20 $(PKG)_DEPS := qt6 |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
21 endif |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 define $(PKG)_UPDATE |
3708
d95b8b84cea7
enable additional $(PKG)_UPDATE targets.
John W. Eaton <jwe@octave.org>
parents:
3645
diff
changeset
|
24 $(WGET) -q -O- 'http://www.riverbankcomputing.com/software/qscintilla/download' | \ |
5922
78901dc12b99
qscintilla: update to v2.13.0
John Donoghue <john.donoghue@ieee.org>
parents:
5587
diff
changeset
|
25 $(SED) -n 's,.*QScintilla_src-\([0-9][^>]*\)\.zip.*,\1,p' | \ |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4614
diff
changeset
|
26 head -n 1 |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 endef |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 |
2997 | 29 ifneq ($(MXE_NATIVE_BUILD),yes) |
30 ifeq ($(MXE_SYSTEM),mingw) | |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
31 ifeq ($(ENABLE_QT),4) |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
32 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_PREFIX)/mkspecs/win32-g++' |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
33 endif |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
34 ifeq ($(ENABLE_QT),5) |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
35 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(BUILD_TOOLS_PREFIX)/mkspecs/win32-g++' |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
36 endif |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
37 ifeq ($(ENABLE_QT),6) |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
38 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_PREFIX)/qt6/mkspecs/win32-g++' |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
39 endif |
2997 | 40 endif |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
41 ifeq ($(MXE_SYSTEM),msvc) |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
42 # FIXME: compute "2010" suffix dynamically |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
43 $(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
|
44 endif |
2997 | 45 endif |
46 | |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 define $(PKG)_BUILD |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
48 if [ "$(MXE_NATIVE_BUILD)" = "no" ]; then \ |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
49 '$(MXE_QMAKE)' -set CROSS_COMPILE $(MXE_TOOL_PREFIX); \ |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
50 fi |
5922
78901dc12b99
qscintilla: update to v2.13.0
John Donoghue <john.donoghue@ieee.org>
parents:
5587
diff
changeset
|
51 cd '$(1)/src' && \ |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
52 '$(MXE_QMAKE)' -makefile \ |
4503
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
53 $($(PKG)_QMAKE_SPEC_OPTION) \ |
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
54 QMAKE_UIC='$(MXE_UIC)' \ |
bb63484e88ae
qscintilla: Pass MXE_LDFLAGS to qmake.
John W. Eaton <jwe@octave.org>
parents:
4410
diff
changeset
|
55 QMAKE_MOC='$(MXE_MOC)' \ |
6890
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
56 QMAKE_LFLAGS=$(MXE_LDFLAGS) \ |
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
57 QT_MAJOR_VERSION=$(ENABLE_QT) |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
58 |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
59 if [ $(MXE_SYSTEM) = msvc ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
60 mkdir -p '$(3)' && \ |
5922
78901dc12b99
qscintilla: update to v2.13.0
John Donoghue <john.donoghue@ieee.org>
parents:
5587
diff
changeset
|
61 cd '$(1)/src' && \ |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
62 env -u MAKE -u MAKEFLAGS nmake && \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
63 env -u MAKE -u MAKEFLAGS nmake \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
64 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
|
65 else \ |
5922
78901dc12b99
qscintilla: update to v2.13.0
John Donoghue <john.donoghue@ieee.org>
parents:
5587
diff
changeset
|
66 $(MAKE) -C '$(1)/src' -j '$(JOBS)' && \ |
6890
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
67 $(MAKE) -C '$(1)/src' -j 1 install INSTALL_ROOT='$(3)'; \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
68 fi |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
69 |
4517
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
70 if [ $(MXE_SYSTEM) = mingw ]; then \ |
6890
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
71 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \ |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
72 if [ "$(ENABLE_QT)" = "5" ]; then \ |
6890
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
73 mv '$(3)$(HOST_PREFIX)/qt5/lib/qscintilla2_qt5.dll' '$(3)$(HOST_BINDIR)'; \ |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
74 elif [ "$(ENABLE_QT)" = "6" ]; then \ |
6890
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
75 mv '$(3)$(HOST_PREFIX)/qt6/lib/qscintilla2_qt6.dll' '$(3)$(HOST_BINDIR)'; \ |
4517
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
76 else \ |
6890
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
77 mv '$(3)$(HOST_LIBDIR)/qscintilla2_qt4.dll' '$(3)$(HOST_BINDIR)/'; \ |
4517
8e522798c9a7
qscintilla: simplify DLL install rules
John W. Eaton <jwe@octave.org>
parents:
4503
diff
changeset
|
78 fi; \ |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
79 fi |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
80 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
81 # 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
|
82 # 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
|
83 # 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
|
84 if [ $(MXE_SYSTEM) = msvc ]; then \ |
6890
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
85 $(INSTALL) -d '$(3)$(CMAKE_HOST_PREFIX)/bin'; \ |
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
86 $(INSTALL) -m755 '$(3)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll' '$(3)$(CMAKE_HOST_PREFIX)/bin/'; \ |
f744a377c634
QScintilla: Make sure to build against the configured major Qt version.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6837
diff
changeset
|
87 rm -f '$(3)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll'; \ |
2997 | 88 fi |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6745
diff
changeset
|
89 endef |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4201
diff
changeset
|
90 |