1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/math/py-CyLP/Makefile

38 lines
1023 B
Makefile
Raw Normal View History

# $FreeBSD$
2018-09-23 20:09:36 +00:00
PORTNAME= CyLP
DISTVERSION= 0.7.2-30
PORTREVISION= 2
DISTVERSIONSUFFIX= -g65a985b
CATEGORIES= math python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python interface to CLP, CBC, and CGL to solve LPs and MIPs
LICENSE= CPL10
LICENSE_NAME= Common Public License Version 1.0
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= auto-accept dist-mirror dist-sell pkg-mirror pkg-sell
BUILD_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>=0.10.0:science/py-scipy@${PY_FLAVOR}
LIB_DEPENDS= libblas.so:math/blas \
libCbc.so:math/cbc \
libCgl.so:math/cgl \
libClp.so:math/clp \
liblapack.so:math/lapack
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= compiler:c++11-lang python:2.7 # 3.X support is still in the pull request: https://github.com/coin-or/CyLP/pull/28
USE_GITHUB= yes
GH_ACCOUNT= coin-or
USE_PYTHON= distutils cython autoplist
MAKE_ENV= COIN_INSTALL_DIR=${LOCALBASE}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cylp/cy/Cy*.so
.include <bsd.port.mk>