aboutsummaryrefslogtreecommitdiffstats
path: root/math/matio/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/matio/Makefile')
-rw-r--r--math/matio/Makefile40
1 files changed, 40 insertions, 0 deletions
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>