summaryrefslogtreecommitdiffstats
path: root/src/matio.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-07-16 16:04:52 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-07-16 16:04:52 (GMT)
commitd127264dd85119ca57d2ba3804c19f1428e1123e (patch)
treee89bfbec85b25263ca2f7bc43b0f0ca88d332a49 /src/matio.mk
parentae8bd476778373785adcdc6bc638e97e5dc7c77c (diff)
downloadmxe-d127264dd85119ca57d2ba3804c19f1428e1123e.zip
mxe-d127264dd85119ca57d2ba3804c19f1428e1123e.tar.gz
mxe-d127264dd85119ca57d2ba3804c19f1428e1123e.tar.bz2
new package: matio (by Martin Lambers)
Diffstat (limited to 'src/matio.mk')
-rw-r--r--src/matio.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/matio.mk b/src/matio.mk
new file mode 100644
index 0000000..a167758
--- /dev/null
+++ b/src/matio.mk
@@ -0,0 +1,30 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# matio
+PKG := matio
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 1.3.4
+$(PKG)_CHECKSUM := 721b9b57f2437850dd114acca1f422622e2c47e2
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://sourceforge.net/projects/matio/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib
+
+define $(PKG)_UPDATE
+ $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/matio/files/matio/) | \
+ $(SED) -n 's,.*matio-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ tail -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --disable-shared \
+ --disable-test \
+ --disable-docs
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+endef