PORTNAME=	mdp
PORTVERSION=	3.5
PORTREVISION=	7
CATEGORIES=	science python
MASTER_SITES=	SF/${PORTNAME}-toolkit/${PORTNAME}-toolkit/${PORTVERSION}
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	${PORTNAME:tu}-${PORTVERSION}

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Modular toolkit for Data Processing
WWW=		https://mdp-toolkit.sourceforge.net/

LICENSE=	BSD3CLAUSE

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}

USES=		python
USE_PYTHON=	distutils autoplist

OPTIONS_DEFINE=	LIBSVM SCIPY

LIBSVM_DESC=	Provide the LibSVMClassifier node
SCIPY_DESC=	Instal SciPy versions of eigensolver, FFT and convolution

LIBSVM_RUN_DEPENDS=	libsvm>2.91:science/libsvm \
			libsvm-python>2.91:science/libsvm-python
SCIPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}scipy>=0.5.2:science/py-scipy@${PY_FLAVOR}

.include <bsd.port.mk>
