aboutsummaryrefslogtreecommitdiff
path: root/math/matio/Makefile
blob: 470324862c2eb478d8b0e213b55956ac7807dccb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PORTNAME=	matio
PORTVERSION=	1.6.0
CATEGORIES=	math
MASTER_SITES=	https://github.com/tbeu/matio/releases/download/v${PORTVERSION}/

MAINTAINER=	makc@FreeBSD.org
COMMENT=	Library for reading and writing Matlab MAT files
WWW=		https://github.com/tbeu/matio/

LICENSE=	BSD2CLAUSE

USES=		compiler:c11 cpe libtool pathfix

CPE_VENDOR=	matio_project

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip
PLIST_SUB=	SHLIB_VER=14.1.0

OPTIONS_DEFINE=	HDF5
OPTIONS_DEFAULT=	HDF5

HDF5_DESC=	Support for MAT file version 7.3
HDF5_LIB_DEPENDS=	libhdf5.so:science/hdf5
HDF5_CONFIGURE_ON=	--enable-mat73=yes \
			--with-hdf5=${LOCALBASE}

post-extract:
	@${CHMOD} +x ${WRKSRC}/configure

.include <bsd.port.mk>