blob: b95688d1a12ba541f624bf00670fe1bd16313de5 (
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
|
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
PKG := qwtplot3d
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.2.7
$(PKG)_CHECKSUM := 4463fafb8420a91825e165da7a296aaabd70abea
$(PKG)_SUBDIR := $(PKG)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz
$(PKG)_WEBSITE := http://$(PKG).sourceforge.net/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc qt zlib
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/projects/$(PKG)/files/$(PKG)/' | \
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && '$(PREFIX)/bin/$(TARGET)-qmake'
cd '$(1)' && make -C '$(1)' -j '$(JOBS)'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
$(INSTALL) -m644 '$(1)/lib/libqwtplot3d.a' '$(PREFIX)/$(TARGET)/lib/'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include/qwtplot3d'
$(INSTALL) -m644 '$(1)/include'/*.h '$(PREFIX)/$(TARGET)/include/qwtplot3d/'
endef
|