aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2014-03-28 17:22:37 +0800
committermakc <makc@FreeBSD.org>2014-03-28 17:22:37 +0800
commit1a7b7ff2441bc557343b641838a83f54cd232a2f (patch)
tree01370877a366eef8dfd36a498d95b5d83da57a9f /math
parent193e5676590763111b7d1c04a19c650c24ef5244 (diff)
downloadfreebsd-ports-graphics-1a7b7ff2441bc557343b641838a83f54cd232a2f.tar.gz
freebsd-ports-graphics-1a7b7ff2441bc557343b641838a83f54cd232a2f.tar.zst
freebsd-ports-graphics-1a7b7ff2441bc557343b641838a83f54cd232a2f.zip
math/matio:
- Update to 1.5.2 - Remove FORTRAN option (not supported anymore) - Add HDF5 option (support for MAT v7.3 files) - Add LICENSE - Update COMMENT and description - Use pkg-plist - Take maintainership
Diffstat (limited to 'math')
-rw-r--r--math/matio/Makefile46
-rw-r--r--math/matio/distinfo4
-rw-r--r--math/matio/pkg-descr3
-rw-r--r--math/matio/pkg-plist29
4 files changed, 45 insertions, 37 deletions
diff --git a/math/matio/Makefile b/math/matio/Makefile
index a27641abc1c..0f101cced1b 100644
--- a/math/matio/Makefile
+++ b/math/matio/Makefile
@@ -2,46 +2,26 @@
# $FreeBSD$
PORTNAME= matio
-PORTVERSION= 1.3.4
-PORTREVISION= 1
+PORTVERSION= 1.5.2
CATEGORIES= math
MASTER_SITES= SF
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Library for reading/writing Matlab files
+MAINTAINER= makc@FreeBSD.org
+COMMENT= Library for reading and writing Matlab MAT files
+
+LICENSE= BSD2CLAUSE
GNU_CONFIGURE= yes
-USES= pathfix
+USES= libtool pathfix
USE_LDCONFIG= yes
+INSTALL_TARGET= install-strip
-OPTIONS_DEFINE= FORTRAN
-FORTRAN_DESC= Build Fortran bindings
-
-CONFIGURE_ARGS= --enable-shared
-
-PLIST_FILES= include/matio.h \
- include/matioConfig.h \
- lib/libmatio.a \
- lib/libmatio.la \
- lib/libmatio.so \
- lib/libmatio.so.1 \
- libdata/pkgconfig/matio.pc
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MFORTRAN}
-USES+= fortran
-
-CONFIGURE_ARGS+= --enable-fortran
-CONFIGURE_ENV+= FCFLAGS="${FFLAGS}"
-
-PLIST_FILES+= include/matio.mod
-
-MAKE_JOBS_UNSAFE=yes
-.endif
+OPTIONS_DEFINE= HDF5
+OPTIONS_DEFAULT= HDF5
-post-patch:
- @${REINPLACE_CMD} -e '/AM_LDFLAGS = /s/$$/ -version-info 1/' \
- ${WRKSRC}/src/Makefile.in
+HDF5_DESC= Support for MAT file version 7.3
+HDF5_LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5-18
+HDF5_CONFIGURE_ON= --enable-mat73=yes \
+ --with-hdf5=${LOCALBASE}
.include <bsd.port.mk>
diff --git a/math/matio/distinfo b/math/matio/distinfo
index a3aa12181ee..513aa8701cf 100644
--- a/math/matio/distinfo
+++ b/math/matio/distinfo
@@ -1,2 +1,2 @@
-SHA256 (matio-1.3.4.tar.gz) = 7261880b18a661e5d206b4e479d4334b47549f093130df42f7204fd05dfe0bc5
-SIZE (matio-1.3.4.tar.gz) = 450343
+SHA256 (matio-1.5.2.tar.gz) = db02d0fb3373c3d766a606309b17e64a5d8da55610e921a9f1a0ec171e911d45
+SIZE (matio-1.5.2.tar.gz) = 8179926
diff --git a/math/matio/pkg-descr b/math/matio/pkg-descr
index 584ab07814a..5656dd49626 100644
--- a/math/matio/pkg-descr
+++ b/math/matio/pkg-descr
@@ -1,4 +1,3 @@
-matio is an ISO C library (with a limited Fortran 90 interface) for reading
-and writing Matlab MAT files.
+matio is an ISO C library for reading and writing Matlab MAT files.
WWW: http://sourceforge.net/projects/matio/
diff --git a/math/matio/pkg-plist b/math/matio/pkg-plist
new file mode 100644
index 00000000000..75ddf8e2d8b
--- /dev/null
+++ b/math/matio/pkg-plist
@@ -0,0 +1,29 @@
+bin/matdump
+include/matio.h
+include/matio_pubconf.h
+lib/libmatio.a
+lib/libmatio.la
+lib/libmatio.so
+lib/libmatio.so.2
+lib/libmatio.so.2.0.2
+libdata/pkgconfig/matio.pc
+man/man3/Mat_Close.3.gz
+man/man3/Mat_CreateVer.3.gz
+man/man3/Mat_GetFilename.3.gz
+man/man3/Mat_GetLibraryVersion.3.gz
+man/man3/Mat_GetVersion.3.gz
+man/man3/Mat_Open.3.gz
+man/man3/Mat_Rewind.3.gz
+man/man3/Mat_VarAddStructField.3.gz
+man/man3/Mat_VarCreate.3.gz
+man/man3/Mat_VarCreateStruct.3.gz
+man/man3/Mat_VarFree.3.gz
+man/man3/Mat_VarGetNumberOfFields.3.gz
+man/man3/Mat_VarGetStructFieldnames.3.gz
+man/man3/Mat_VarGetStructs.3.gz
+man/man3/Mat_VarGetStructsLinear.3.gz
+man/man3/Mat_VarRead.3.gz
+man/man3/Mat_VarReadInfo.3.gz
+man/man3/Mat_VarReadNext.3.gz
+man/man3/Mat_VarReadNextInfo.3.gz
+man/man3/Mat_VarWrite.3.gz