aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/matio/Makefile40
-rw-r--r--math/matio/distinfo3
-rw-r--r--math/matio/pkg-descr4
4 files changed, 48 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 0cd7eab53ed9..af6748a39190 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 000000000000..74a1da9c060f
--- /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 000000000000..dd9be823b312
--- /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 000000000000..584ab07814a4
--- /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/