diff --git a/math/matio/Makefile b/math/matio/Makefile new file mode 100644 index 00000000000..66d8985a08f --- /dev/null +++ b/math/matio/Makefile @@ -0,0 +1,40 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/10/19 10:51:01 steven Exp $ + +COMMENT= "library for reading and writing Matlab MAT files" + +DISTNAME= matio-1.3.1 +SHARED_LIBS= matio 0.0 +CATEGORIES= math + +HOMEPAGE= http://sourceforge.net/projects/matio/ + +# LGPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=matio/} + +USE_LIBTOOL= Yes +CONFIGURE_STYLE=gnu +CONFIGURE_ARGS= ${CONFIGURE_SHARED} \ + --enable-fortran=no \ + --enable-test=yes + +TESTS= copy write writecompressed writestruct writecell readslab \ + writeslab writesparse writenan writeinf readslab4 ind2sub sub2ind + +do-regress: +.for t in ${TESTS} + @echo "Testing ${t}" + @cd ${WRKBUILD}/test && ./test_mat ${t} +.endfor + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/matio + ${INSTALL_DATA} ${WRKSRC}/libmatio.pdf ${PREFIX}/share/doc/matio + @rm -rf ${PREFIX}/share/matio + @rm -rf ${PREFIX}/bin/test_* + +.include diff --git a/math/matio/distinfo b/math/matio/distinfo new file mode 100644 index 00000000000..56853869ac3 --- /dev/null +++ b/math/matio/distinfo @@ -0,0 +1,4 @@ +MD5 (matio-1.3.1.tar.gz) = 8fd9a3a6c2587deade56b0846642ebd3 +RMD160 (matio-1.3.1.tar.gz) = 64e12e1774db3054ce11f6efd15686c8432a3197 +SHA1 (matio-1.3.1.tar.gz) = 70af161a788f7f5e171f27e2655763454ec33839 +SIZE (matio-1.3.1.tar.gz) = 938713 diff --git a/math/matio/patches/patch-test_test_mat_c b/math/matio/patches/patch-test_test_mat_c new file mode 100644 index 00000000000..eebe2f35bd5 --- /dev/null +++ b/math/matio/patches/patch-test_test_mat_c @@ -0,0 +1,13 @@ +$OpenBSD: patch-test_test_mat_c,v 1.1.1.1 2006/10/19 10:51:01 steven Exp $ +--- test/test_mat.c.orig Wed Oct 18 17:21:19 2006 ++++ test/test_mat.c Wed Oct 18 17:22:32 2006 +@@ -1197,6 +1197,9 @@ int main (int argc, char *argv[]) + } + + printf("%d of %d tests completed successfully\n",ntests-err,ntests); ++ ++ if (err > 0) ++ return 1; + + return 0; + } diff --git a/math/matio/pkg/DESCR b/math/matio/pkg/DESCR new file mode 100644 index 00000000000..ace574056f0 --- /dev/null +++ b/math/matio/pkg/DESCR @@ -0,0 +1,3 @@ +matio is an ISO C library for reading and writing Matlab MAT files. +The library is intended for programs/libraries that do not have access +or want to rely on Matlab's shared libraries. diff --git a/math/matio/pkg/PFRAG.shared b/math/matio/pkg/PFRAG.shared new file mode 100644 index 00000000000..3c7d3d375c7 --- /dev/null +++ b/math/matio/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/10/19 10:51:01 steven Exp $ +@lib lib/libmatio.so.${LIBmatio_VERSION} diff --git a/math/matio/pkg/PLIST b/math/matio/pkg/PLIST new file mode 100644 index 00000000000..3089b29eb8f --- /dev/null +++ b/math/matio/pkg/PLIST @@ -0,0 +1,10 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/19 10:51:01 steven Exp $ +%%SHARED%% +include/matio.h +include/matioConfig.h +lib/libmatio.a +lib/libmatio.la +lib/pkgconfig/ +lib/pkgconfig/matio.pc +share/doc/matio/ +share/doc/matio/libmatio.pdf