blob: c1c2fce02b2a647529db13d1b74fa9e8e72b7565 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := qwt_qt4
$(PKG)_WEBSITE := https://qwt.sourceforge.io/
$(PKG)_DESCR := Qwt-qt4
$(PKG)_VERSION = $(qwt_VERSION)
$(PKG)_CHECKSUM = $(qwt_CHECKSUM)
$(PKG)_SUBDIR = $(qwt_SUBDIR)
$(PKG)_FILE = $(qwt_FILE)
$(PKG)_WEBSITE = $(qwt_WEBSITE)
$(PKG)_URL = $(qwt_URL)
$(PKG)_DEPS := gcc qt
define $(PKG)_UPDATE
echo $(qwt_VERSION)
endef
define $(PKG)_BUILD
$(if $(BUILD_STATIC),\
echo "QWT_CONFIG -= QwtDll" >> '$(1)/qwtconfig.pri')
# build
cd '$(1)/src' && $(PREFIX)/$(TARGET)/qt/bin/qmake
$(MAKE) -C '$(1)/src' -f 'Makefile.Release' -j '$(JOBS)' install
#build sinusplot example to test linkage
cd '$(1)/examples/sinusplot' && $(PREFIX)/$(TARGET)/qt/bin/qmake
$(MAKE) -C '$(1)/examples/sinusplot' -f 'Makefile.Release' -j '$(JOBS)'
# install
$(INSTALL) -m755 '$(1)/examples/bin/sinusplot.exe' '$(PREFIX)/$(TARGET)/bin/test-qwt-qt4.exe'
endef
|