mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 19:36:28 -04:00
FLAVOR is the current port's flavor, it should not be used outside of this scope. Sponsored by: Absolight
30 lines
778 B
Makefile
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>
|