summaryrefslogtreecommitdiff
path: root/math/py-cyipopt/Makefile
blob: e1d6d84e4feaa36b7197314b5f790bb9addac616 (plain)
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=	cyipopt
DISTVERSIONPREFIX=	v
DISTVERSION=	0.1.9
PORTREVISION=	3
CATEGORIES=	math python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Cython interface for the interior point optimizer IPOPT

LICENSE=	EPL

BUILD_DEPENDS=	${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
LIB_DEPENDS=	libblas.so:math/blas \
		libcoinmetis.so:math/ipopt \
		liblapack.so:math/lapack
RUN_DEPENDS=	${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

USES=		fortran python:3.6+ pkgconfig # fortran because ipopt's pkg-config returns gcc libs
USE_GITHUB=	yes
GH_ACCOUNT=	matthias-k
USE_PYTHON=	distutils cython autoplist

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}*.so

.include <bsd.port.mk>