summaryrefslogtreecommitdiffstats
path: root/src/qwtplot3d.mk
diff options
context:
space:
mode:
authorGareth Coco <garethcoco@gmail.com>2011-10-20 19:57:38 (GMT)
committerGareth Coco <garethcoco@gmail.com>2011-10-20 19:57:38 (GMT)
commit7779a2f2300e1516ba486e1cafd0965d9e7a8ae5 (patch)
tree3f7563f4ec04c8e20314992f76c62f21546045e4 /src/qwtplot3d.mk
parent0ff1449f2b8f4c826d66c61d6b9ffc02c2b2bd97 (diff)
downloadmxe-7779a2f2300e1516ba486e1cafd0965d9e7a8ae5.zip
mxe-7779a2f2300e1516ba486e1cafd0965d9e7a8ae5.tar.gz
mxe-7779a2f2300e1516ba486e1cafd0965d9e7a8ae5.tar.bz2
new package qwtplot3d
Diffstat (limited to 'src/qwtplot3d.mk')
-rw-r--r--src/qwtplot3d.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/qwtplot3d.mk b/src/qwtplot3d.mk
new file mode 100644
index 0000000..b95688d
--- /dev/null
+++ b/src/qwtplot3d.mk
@@ -0,0 +1,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
+