Mercurial > mxe-octave
annotate src/qscintilla.mk @ 3319:2636b3458f4d
* src/msvc-octave-1.patch: Update to octave 3.7.7.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Tue, 12 Nov 2013 20:54:29 -0500 |
parents | cf6f40cededb |
children | cac6a7d920d2 |
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 := |
3291
d14352d4ab8a
Update qscintilla to 2.8
John Donoghue <john.donoghue@ieee.org>
parents:
3130
diff
changeset
|
6 $(PKG)_CHECKSUM := 3edf9d476d4e6af0706a4d33401667a38e3a697e |
3065
7f1d390cbd83
Add QScintilla blockcomments patch
John Donoghue <john.donoghue@ieee.org>
parents:
3064
diff
changeset
|
7 $(PKG)_SUBDIR := QScintilla-gpl-$($(PKG)_VERSION) |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_FILE := QScintilla-gpl-$($(PKG)_VERSION).tar.gz |
3064
be70678cc47b
Update QScintilla to 2.7.2
"John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
9 $(PKG)_URL := http://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-$($(PKG)_VERSION)/$($(PKG)_FILE) |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_DEPS := qt |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 echo 'Warning: Updates are temporarily disabled for package qscintilla.' >&2; |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 echo $(qscintilla_VERSION) |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 endef |
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 |
2997 | 17 ifneq ($(MXE_NATIVE_BUILD),yes) |
18 ifeq ($(MXE_SYSTEM),mingw) | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
19 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_PREFIX)/mkspecs/win32-g++' |
2997 | 20 endif |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
21 ifeq ($(MXE_SYSTEM),msvc) |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
22 # FIXME: compute "2010" suffix dynamically |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
23 $(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
|
24 endif |
2997 | 25 endif |
26 | |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 define $(PKG)_BUILD |
3065
7f1d390cbd83
Add QScintilla blockcomments patch
John Donoghue <john.donoghue@ieee.org>
parents:
3064
diff
changeset
|
28 cd '$(1)/Qt4Qt5' && '$(HOST_BINDIR)/qmake' -makefile $($(PKG)_QMAKE_SPEC_OPTION) |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
30 if [ $(MXE_SYSTEM) = msvc ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
31 mkdir -p '$(3)' && \ |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
32 cd '$(1)/Qt4Qt5' && \ |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
33 env -u MAKE -u MAKEFLAGS nmake && \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
34 env -u MAKE -u MAKEFLAGS nmake \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
35 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
|
36 else \ |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
37 $(MAKE) -C '$(1)/Qt4Qt5' -j '$(JOBS)' && \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
38 $(MAKE) -C '$(1)/Qt4Qt5' -j 1 install DESTDIR='$(3)'; \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
39 fi |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
40 |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
41 if [ $(MXE_SYSTEM) = mingw ]; then \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
42 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
43 $(INSTALL) -m755 '$(3)$(HOST_LIBDIR)/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll' \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
44 '$(3)$(HOST_BINDIR)/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll'; \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
45 rm -f '$(3)$(HOST_LIBDIR)/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll'; \ |
3130
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
46 fi |
3c1afa2c8e43
[MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3065
diff
changeset
|
47 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
48 # 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
|
49 # 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
|
50 # 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
|
51 if [ $(MXE_SYSTEM) = msvc ]; then \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
52 $(INSTALL) -d '$(3)$(CMAKE_HOST_PREFIX)/bin'; \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
53 $(INSTALL) -m755 '$(3)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll' \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
54 '$(3)$(CMAKE_HOST_PREFIX)/bin/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll'; \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3291
diff
changeset
|
55 rm -f '$(3)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll'; \ |
2997 | 56 fi |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
57 endef |