summaryrefslogtreecommitdiff
path: root/math/py-CyLP/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-CyLP/Makefile')
-rw-r--r--math/py-CyLP/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/math/py-CyLP/Makefile b/math/py-CyLP/Makefile
new file mode 100644
index 000000000000..1a81629ad17c
--- /dev/null
+++ b/math/py-CyLP/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME= cylp
+DISTVERSION= 0.7.2-30
+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@${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= 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
+GH_PROJECT= CyLP
+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>