diff --git a/math/adol-c/Makefile b/math/adol-c/Makefile index 9253500bb230..d5c1ae42016a 100644 --- a/math/adol-c/Makefile +++ b/math/adol-c/Makefile @@ -1,37 +1,44 @@ PORTNAME= adol-c DISTVERSION= 2.7.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= https://www.coin-or.org/download/source/${PORTNAME:tu}/ DISTNAME= ${PORTNAME:tu}-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Automatic differentiation library LICENSE= EPL LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libboost_system.so:devel/boost-libs -USES= compiler:c++11-lang gmake libtool python:3.7+,build tar:tgz +USES= compiler:c++11-lang gmake libtool tar:tgz USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_SHELL= ${LOCALBASE}/bin/bash -CONFIGURE_ENV= PYTHON=${PYTHON_CMD} - INSTALL_TARGET= install-strip -OPTIONS_DEFINE= SPARSE # also uses AMPI, a seemingly obscure MPI implementation +BINARY_ALIAS= swig=false + +OPTIONS_DEFINE= PYTHON SPARSE # also uses AMPI, a seemingly obscure MPI implementation OPTIONS_DEFAULT= SPARSE OPTIONS_SUB= yes +PYTHON_USES= python:build +PYTHON_CONFIGURE_ENV= PYTHON=${PYTHON_CMD} +PYTHON_BROKEN= https://github.com/coin-or/ADOL-C/issues/42 + SPARSE_DESC= Build sparse drivers SPARSE_CONFIGURE_ENABLE= sparse post-patch: # broken with ColPack: https://github.com/coin-or/ADOL-C/issues/40 @${REINPLACE_CMD} -e 's|with_colpack|with_colpackx| ; s|-lColPack||' ${WRKSRC}/configure +post-patch-PYTHON-off: + @${REINPLACE_CMD} -e 's|test x$$python_found = xyes|false \&\& &|' ${WRKSRC}/configure + .include diff --git a/math/adol-c/pkg-descr b/math/adol-c/pkg-descr index 994376825b57..361823426fb2 100644 --- a/math/adol-c/pkg-descr +++ b/math/adol-c/pkg-descr @@ -1,11 +1,11 @@ The package ADOL-C (Automatic Differentiation by OverLoading in C++) facilitates the evaluation of first and higher derivatives of vector functions that are defined by computer programs written in C or C++. The resulting derivative evaluation routines may be called from C/C++, Fortran, or any other language that can be linked with C. The numerical values of derivative vectors are obtained free of truncation errors at a small multiple of the run time and randomly accessed memory of the given function evaluation program. -WWW: https://projects.coin-or.org/ADOL-C +WWW: https://github.com/coin-or/ADOL-C