blob: 4dd7266281e3affd2475833ffa441dee25071990 (
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
|
# This file is part of MXE.
# See index.html for further information.
PKG := 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
# 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
|