2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2014-06-12 21:26:11 +01:00
|
|
|
|
|
|
|
PKG := qscintilla2
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.riverbankcomputing.com/software/qscintilla/intro
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := QScintilla2
|
2014-06-12 21:26:11 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2019-06-27 22:15:29 +01:00
|
|
|
$(PKG)_VERSION := 2.11.2
|
|
|
|
$(PKG)_CHECKSUM := 029bdc476a069fda2cea3cd937ba19cc7fa614fb90578caef98ed703b658f4a1
|
2017-09-01 09:45:30 +01:00
|
|
|
$(PKG)_SUBDIR := QScintilla_gpl-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := QScintilla_gpl-$($(PKG)_VERSION).tar.gz
|
2019-05-15 20:38:52 +01:00
|
|
|
$(PKG)_URL := https://www.riverbankcomputing.com/static/Downloads/QScintilla/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
2014-06-12 21:26:11 +01:00
|
|
|
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc qtbase
|
2014-06-12 21:26:11 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-05 03:41:39 +00:00
|
|
|
$(WGET) -q -O- 'https://www.riverbankcomputing.com/software/qscintilla/download' | \
|
2017-09-01 09:45:30 +01:00
|
|
|
grep QScintilla_gpl | \
|
|
|
|
head -n 1 | \
|
|
|
|
$(SED) -n 's,.*QScintilla_gpl-\([0-9][^>]*\)\.tar.*,\1,p'
|
2014-06-12 21:26:11 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2018-08-15 12:48:26 +01:00
|
|
|
cd '$(1)/Qt4Qt5' && '$(PREFIX)/$(TARGET)/qt5/bin/qmake' qscintilla.pro \
|
|
|
|
$(if $(BUILD_STATIC),CONFIG+=staticlib)
|
2014-06-12 21:26:11 +01:00
|
|
|
$(MAKE) -C '$(1)/Qt4Qt5' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(1)/Qt4Qt5' -j '$(JOBS)' install
|
2014-06-18 20:59:13 +01:00
|
|
|
|
|
|
|
'$(TARGET)-g++' \
|
2019-05-15 21:21:56 +01:00
|
|
|
-W -Wall -Werror -std=c++0x -pedantic -Wno-deprecated-copy \
|
2014-10-29 10:14:45 +00:00
|
|
|
`'$(TARGET)-pkg-config' Qt5Widgets --cflags` \
|
2017-09-01 09:45:30 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-qscintilla2.exe' -lqscintilla2_qt5 \
|
2014-10-29 10:14:45 +00:00
|
|
|
`'$(TARGET)-pkg-config' Qt5Widgets --libs`
|
2014-06-12 21:26:11 +01:00
|
|
|
endef
|