aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-CyLP/Makefile
blob: a0249a4237a6563a53e01e5bdc42f308535173ca (plain) (blame)
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
33
34
35
36
37
# $FreeBSD$

PORTNAME=   CyLP
DISTVERSION=    0.7.2-30
PORTREVISION=   1
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=       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>