From patchwork Fri Apr 24 08:56:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwenhael Goavec-Merou X-Patchwork-Id: 1276281 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=trabucayre.com Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 497p3p6PdYz9sSM for ; Fri, 24 Apr 2020 18:58:14 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 43F5B24B99; Fri, 24 Apr 2020 08:58:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7w2cpUjLNLv0; Fri, 24 Apr 2020 08:58:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1FA51203E7; Fri, 24 Apr 2020 08:58:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 546261BF421 for ; Fri, 24 Apr 2020 08:58:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4E5F620131 for ; Fri, 24 Apr 2020 08:58:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WytqB86zkot5 for ; Fri, 24 Apr 2020 08:58:06 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by silver.osuosl.org (Postfix) with ESMTPS id 76E5F20338 for ; Fri, 24 Apr 2020 08:58:06 +0000 (UTC) Received: from x230.trabucayre.com (unknown [IPv6:2a01:e34:efc8:1080:3e97:eff:fe89:644f]) by smtp2-g21.free.fr (Postfix) with ESMTP id 84E3E2003F6; Fri, 24 Apr 2020 10:58:01 +0200 (CEST) From: Gwenhael Goavec-Merou To: buildroot@buildroot.org Date: Fri, 24 Apr 2020 10:56:24 +0200 Message-Id: <20200424085624.23908-1-gwenj@trabucayre.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] package/matio: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Thiery , Gwenhael Goavec-Merou Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Gwenhael Goavec-Merou matio is an C library for reading and writing MATLAB MAT files. Signed-off-by: Gwenhael Goavec-Merou --- Changes v1 -> v2: * add one blank line befor URL (Heiko) * drop blank lines around MATIO_DEPENDENCIES and MATIO_INSTALL_STAGING (Heiko) * drop comment about STAGING (Heiko) * += -> + for MATIO_CONF_ENV (Heiko) --- DEVELOPERS | 1 + package/Config.in | 1 + package/matio/Config.in | 15 +++++++++++++++ package/matio/matio.hash | 5 +++++ package/matio/matio.mk | 25 +++++++++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 package/matio/Config.in create mode 100644 package/matio/matio.hash create mode 100644 package/matio/matio.mk diff --git a/DEVELOPERS b/DEVELOPERS index c57bc1c5c9..6cd115be38 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1101,6 +1101,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/ diff --git a/package/Config.in b/package/Config.in index a9c6f6fcbc..f7c48d2d9e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1868,6 +1868,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 index 0000000000..b6c4223e44 --- /dev/null +++ b/package/matio/Config.in @@ -0,0 +1,15 @@ +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 + +if BR2_PACKAGE_MATIO + +config BR2_PACKAGE_MATIO_SPARSE + bool "sparse support" + +endif diff --git a/package/matio/matio.hash b/package/matio/matio.hash new file mode 100644 index 0000000000..d84f50e0b2 --- /dev/null +++ b/package/matio/matio.hash @@ -0,0 +1,5 @@ +# From https://sourceforge.net/projects/matio/files/matio/1.5.17/ +sha512 af8ff11c7c44fea9ea6886e381f49ef9186946f3def98ad9695f2d5d1df045c35e8f4ceac12a44be397f7bbd708b4803762b5ce54c45b60a9f446d551c04f5d2 matio-1.5.17.tar.gz +# Locally computed +sha256 5e455527d370ab297c4abe5a2ab4d599c93ac7c1a0c85d841cc5c22f8221c400 matio-1.5.17.tar.gz +sha256 62a0cab69eeadb3697a2249d5a869915b89e62b59b794dd70802c2b8624ed374 COPYING diff --git a/package/matio/matio.mk b/package/matio/matio.mk new file mode 100644 index 0000000000..2ac46f10ad --- /dev/null +++ b/package/matio/matio.mk @@ -0,0 +1,25 @@ +################################################################################ +# +# 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 + +MATIO_CONF_OPTS = --enable-mat73=no + +ifeq ($(BR2_PACKAGE_MATIO_SPARSE),y) +MATIO_CONF_OPTS += --enable-extended-sparse=yes +else +MATIO_CONF_OPTS += --enable-extended-sparse=no +endif + +$(eval $(autotools-package))