package/matio: new package
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Tue, 28 Apr 2020 06:42:24 +0000 (08:42 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 28 Apr 2020 19:11:50 +0000 (21:11 +0200)
matio is an C library for reading and writing MATLAB MAT files.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
DEVELOPERS
package/Config.in
package/matio/Config.in [new file with mode: 0644]
package/matio/matio.hash [new file with mode: 0644]
package/matio/matio.mk [new file with mode: 0644]

index b36c9f561bf534131f307b04bd16b0a4410bbfb8..cc72b288be416dba299b926138b1eaabe5854b97 100644 (file)
@@ -1098,6 +1098,7 @@ F:        package/gnuradio/
 F:     package/gqrx/
 F:     package/gr-osmosdr/
 F:     package/libusbgx/
+F:     package/matio/
 F:     package/python-cheetah/
 F:     package/python-markdown/
 F:     package/python-remi/
index bf02870ea214e50a9e5229c9bfac4637e5a647aa..53c8ce0e29aa563bb40eda3cef7598f8b731b7bc 100644 (file)
@@ -1871,6 +1871,7 @@ endif
        source "package/liquid-dsp/Config.in"
        source "package/llvm/Config.in"
        source "package/lttng-libust/Config.in"
+       source "package/matio/Config.in"
        source "package/mpc/Config.in"
        source "package/mpdecimal/Config.in"
        source "package/mpfr/Config.in"
diff --git a/package/matio/Config.in b/package/matio/Config.in
new file mode 100644 (file)
index 0000000..9e2ea68
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_MATIO
+       bool "matio"
+       select BR2_PACKAGE_ZLIB
+       help
+         matio is an C library for reading and writing MATLAB MAT
+         files.
+
+         https://sourceforge.net/projects/matio
diff --git a/package/matio/matio.hash b/package/matio/matio.hash
new file mode 100644 (file)
index 0000000..65da53a
--- /dev/null
@@ -0,0 +1,4 @@
+# From https://sourceforge.net/projects/matio/files/matio/1.5.17/
+sha512  af8ff11c7c44fea9ea6886e381f49ef9186946f3def98ad9695f2d5d1df045c35e8f4ceac12a44be397f7bbd708b4803762b5ce54c45b60a9f446d551c04f5d2  matio-1.5.17.tar.gz
+# Locally computed
+sha256  62a0cab69eeadb3697a2249d5a869915b89e62b59b794dd70802c2b8624ed374  COPYING
diff --git a/package/matio/matio.mk b/package/matio/matio.mk
new file mode 100644 (file)
index 0000000..8af39ce
--- /dev/null
@@ -0,0 +1,20 @@
+################################################################################
+#
+# matio
+#
+################################################################################
+
+MATIO_VERSION = 1.5.17
+MATIO_SITE = http://downloads.sourceforge.net/project/matio/matio/$(MATIO_VERSION)
+MATIO_LICENSE = BSD-2-Clause
+MATIO_LICENSE_FILES = COPYING
+MATIO_DEPENDENCIES = zlib
+MATIO_INSTALL_STAGING = YES
+
+# va_copy()
+MATIO_CONF_ENV = ac_cv_va_copy=yes
+
+# mat73 require hdf5 (not available), extented-sparse take 2KB
+MATIO_CONF_OPTS = --disable-mat73 --enable-extended-sparse
+
+$(eval $(autotools-package))