diff options
author | wen <wen@FreeBSD.org> | 2010-02-24 13:44:03 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2010-02-24 13:44:03 +0800 |
commit | 7ca171fc122320bc440b1925e73dd123750630d5 (patch) | |
tree | 2e8fb727823c40489616d03155d6c38f80bba9af /math | |
parent | dccd7a1db4380441261132bbeb23238167126e7f (diff) | |
download | freebsd-ports-graphics-7ca171fc122320bc440b1925e73dd123750630d5.tar.gz freebsd-ports-graphics-7ca171fc122320bc440b1925e73dd123750630d5.tar.zst freebsd-ports-graphics-7ca171fc122320bc440b1925e73dd123750630d5.zip |
matio is an ISO C library (with a limited Fortran 90 interface) for reading
and writing Matlab MAT files.
WWW: http://sourceforge.net/projects/matio/
PR: ports/143928
Submitted by: Rob Farmer <rfarmer@predatorlabs.net>
Feature safe: yes
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/matio/Makefile | 40 | ||||
-rw-r--r-- | math/matio/distinfo | 3 | ||||
-rw-r--r-- | math/matio/pkg-descr | 4 |
4 files changed, 48 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 0cd7eab53ed..af6748a3919 100644 --- a/math/Makefile +++ b/math/Makefile @@ -170,6 +170,7 @@ SUBDIR += lybniz SUBDIR += matharray SUBDIR += mathomatic + SUBDIR += matio SUBDIR += matrices SUBDIR += matrix SUBDIR += maxima diff --git a/math/matio/Makefile b/math/matio/Makefile new file mode 100644 index 00000000000..74a1da9c060 --- /dev/null +++ b/math/matio/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: matio +# Date created: 14 February 2010 +# Whom: rfarmer@predatorlabs.net +# +# $FreeBSD$ +# + +PORTNAME= matio +PORTVERSION= 1.3.3 +CATEGORIES= math +MASTER_SITES= SF + +MAINTAINER= rfarmer@predatorlabs.net +COMMENT= Library for reading/writing Matlab files + +USE_FORTRAN= yes +GNU_CONFIGURE= yes +USE_LDCONFIG= yes + +CFLAGS+= -fPIC + +PLIST_FILES= include/matio.h \ + include/matioConfig.h \ + lib/libmatio.a \ + lib/libmatio.la \ + lib/libmatio.so.1 \ + libdata/pkgconfig/matio.pc + +post-build: + (cd ${WRKSRC}/src && ${CC} ${CFLAGS} -shared -o libmatio.so.1 snprintf.o endian.o io.o inflate.o read_data.o mat5.o mat4.o mat.o) + +do-install: + ${INSTALL_DATA} ${WRKSRC}/src/.libs/libmatio.lai ${PREFIX}/lib/libmatio.la + ${INSTALL_DATA} ${WRKSRC}/src/.libs/libmatio.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/src/matio.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/src/matioConfig.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/matio.pc ${PREFIX}/libdata/pkgconfig + ${INSTALL_PROGRAM} ${WRKSRC}/src/libmatio.so.1 ${PREFIX}/lib + +.include <bsd.port.mk> diff --git a/math/matio/distinfo b/math/matio/distinfo new file mode 100644 index 00000000000..dd9be823b31 --- /dev/null +++ b/math/matio/distinfo @@ -0,0 +1,3 @@ +MD5 (matio-1.3.3.tar.gz) = 5c12a98f391de000e88b5a1b20d74abf +SHA256 (matio-1.3.3.tar.gz) = 5ab18a4e31e7688623a74493f06a493b857c8a58f60c67673b7b7ff4a4cf08b0 +SIZE (matio-1.3.3.tar.gz) = 418794 diff --git a/math/matio/pkg-descr b/math/matio/pkg-descr new file mode 100644 index 00000000000..584ab07814a --- /dev/null +++ b/math/matio/pkg-descr @@ -0,0 +1,4 @@ +matio is an ISO C library (with a limited Fortran 90 interface) for reading +and writing Matlab MAT files. + +WWW: http://sourceforge.net/projects/matio/ |