summaryrefslogtreecommitdiffstats
path: root/src/qwt_qt4.mk
blob: f2f71237dc01cea12e3d713732fbbaca1835d076 (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
# 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
    $(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