annotate src/qscintilla.mk @ 3645:75a1f1a468b9

qscintilla: update to 2.8.3 * src/qscintilla.mk: update to v2.8.3.
author John Donoghue <john.donoghue@ieee.org>
date Sun, 06 Jul 2014 07:15:26 -0400
parents 62901e283b28
children d95b8b84cea7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
3645
75a1f1a468b9 qscintilla: update to 2.8.3
John Donoghue <john.donoghue@ieee.org>
parents: 3613
diff changeset
6 $(PKG)_VERSION := 2.8.3
75a1f1a468b9 qscintilla: update to 2.8.3
John Donoghue <john.donoghue@ieee.org>
parents: 3613
diff changeset
7 $(PKG)_CHECKSUM := d3b4f0dc7358591c122518d932f797ae3e3dd9d4
3065
7f1d390cbd83 Add QScintilla blockcomments patch
John Donoghue <john.donoghue@ieee.org>
parents: 3064
diff changeset
8 $(PKG)_SUBDIR := QScintilla-gpl-$($(PKG)_VERSION)
2935
8cf0cbcdaeea Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(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
10 $(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
11 $(PKG)_DEPS := qt
8cf0cbcdaeea Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
3613
62901e283b28 qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents: 3597
diff changeset
13 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
14 $(PKG)_INSTALL_ROOT :=
62901e283b28 qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents: 3597
diff changeset
15 else
62901e283b28 qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents: 3597
diff changeset
16 $(PKG)_INSTALL_ROOT := $(3)
62901e283b28 qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents: 3597
diff changeset
17 endif
62901e283b28 qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents: 3597
diff changeset
18
2935
8cf0cbcdaeea Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 define $(PKG)_UPDATE
8cf0cbcdaeea Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 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
21 echo $(qscintilla_VERSION)
8cf0cbcdaeea Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 endef
8cf0cbcdaeea Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
24 ifneq ($(MXE_NATIVE_BUILD),yes)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
25 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
26 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_PREFIX)/mkspecs/win32-g++'
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
27 endif
3130
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
28 ifeq ($(MXE_SYSTEM),msvc)
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
29 # FIXME: compute "2010" suffix dynamically
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
30 $(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
31 endif
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
32 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
33
2935
8cf0cbcdaeea Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 define $(PKG)_BUILD
3065
7f1d390cbd83 Add QScintilla blockcomments patch
John Donoghue <john.donoghue@ieee.org>
parents: 3064
diff changeset
35 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
36
3130
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
37 if [ $(MXE_SYSTEM) = msvc ]; then \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3291
diff changeset
38 mkdir -p '$(3)' && \
3130
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
39 cd '$(1)/Qt4Qt5' && \
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
40 env -u MAKE -u MAKEFLAGS nmake && \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3291
diff changeset
41 env -u MAKE -u MAKEFLAGS nmake \
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3291
diff changeset
42 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
43 else \
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
44 $(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
45 $(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
46 fi
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3291
diff changeset
47
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3291
diff changeset
48 if [ $(MXE_SYSTEM) = mingw ]; then \
3613
62901e283b28 qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents: 3597
diff changeset
49 $(INSTALL) -d '$($(PKG)_INSTALL_ROOT)$(HOST_BINDIR)'; \
62901e283b28 qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents: 3597
diff changeset
50 $(INSTALL) -m755 '$($(PKG)_INSTALL_ROOT)$(HOST_LIBDIR)/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll' '$($(PKG)_INSTALL_ROOT)$(HOST_BINDIR)/'; \
62901e283b28 qscintilla: use '' for install root in native mingw.
John Donoghue <john.donoghue@ieee.org>
parents: 3597
diff changeset
51 rm -f '$($(PKG)_INSTALL_ROOT)$(HOST_LIBDIR)/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll'; \
3130
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
52 fi
3c1afa2c8e43 [MSVC] enable qscintilla compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3065
diff changeset
53
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3291
diff changeset
54 # 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
55 # 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
56 # 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
57 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
58 $(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
59 $(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
60 rm -f '$($(PKG)_INSTALL_ROOT)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)qscintilla2$(LIBRARY_SUFFIX).dll'; \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
61 fi
2935
8cf0cbcdaeea Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 endef