2534
|
1 # This file is part of MXE. |
|
2 # See index.html for further information. |
|
3 |
|
4 # Qwt - Qt widgets for technical applications |
|
5 PKG := qwt |
|
6 $(PKG)_CHECKSUM := 7ea84ee47339809c671a456b5363d941c45aea92 |
|
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
|
8 $(PKG)_FILE := $($(PKG)_SUBDIR).zip |
|
9 $(PKG)_WEBSITE := http://qwt.sourceforge.net/ |
|
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) |
|
11 $(PKG)_DEPS := gcc qt |
|
12 |
|
13 define $(PKG)_UPDATE |
|
14 $(WGET) -q -O- 'http://sourceforge.net/projects/qwt/files/qwt/' | \ |
|
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ |
|
16 head -1 |
|
17 endef |
|
18 |
|
19 define $(PKG)_BUILD |
|
20 # build |
|
21 cd '$(1)/src' && $(PREFIX)/bin/$(TARGET)-qmake |
|
22 $(MAKE) -C '$(1)/src' -f 'Makefile.Release' -j '$(JOBS)' install |
|
23 |
|
24 #build sinusplot example to test linkage |
|
25 cd '$(1)/examples/sinusplot' && $(PREFIX)/bin/$(TARGET)-qmake |
|
26 $(MAKE) -C '$(1)/examples/sinusplot' -f 'Makefile.Release' -j '$(JOBS)' |
|
27 |
|
28 # install |
|
29 $(INSTALL) -m755 '$(1)/examples/bin/sinusplot.exe' '$(PREFIX)/$(TARGET)/bin/test-qwt.exe' |
|
30 endef |