2018-09-23 20:02:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2018-09-23 20:09:36 +00:00
|
|
|
PORTNAME= CyLP
|
2018-09-23 20:02:46 +00:00
|
|
|
DISTVERSION= 0.7.2-30
|
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
2019-07-26 20:46:53 +00:00
|
|
|
PORTREVISION= 2
|
2018-09-23 20:02:46 +00:00
|
|
|
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} \
|
2018-12-13 09:16:48 +00:00
|
|
|
${PYTHON_PKGNAMEPREFIX}scipy>=0.10.0:science/py-scipy@${PY_FLAVOR}
|
2018-09-23 20:02:46 +00:00
|
|
|
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}
|
|
|
|
|
2019-07-10 12:20:36 +00:00
|
|
|
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
|
2018-09-23 20:02:46 +00:00
|
|
|
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>
|