diff options
Diffstat (limited to 'src/qwt_qt4.mk')
-rw-r--r-- | src/qwt_qt4.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/qwt_qt4.mk b/src/qwt_qt4.mk new file mode 100644 index 0000000..f2f7123 --- /dev/null +++ b/src/qwt_qt4.mk @@ -0,0 +1,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 |