ports/math/py-cyipopt/Makefile
Mathieu Arnold 4376dbbb58 Use PY_FLAVOR for dependencies.
FLAVOR is the current port's flavor, it should not be used outside of
this scope.

Sponsored by:	Absolight
2018-06-20 17:05:41 +00:00

30 lines
778 B
Makefile

# $FreeBSD$
PORTNAME= cyipopt
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.7
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}scipy>0:science/py-scipy@${PY_FLAVOR}
USES= fortran python 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>