Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2021 02:29:03 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 983b6f6c72c8 - main - math/adol-c: Enable the SPARSE option by default
Message-ID:  <202107210229.16L2T3xu069363@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=983b6f6c72c81933f5c5eb5b53495763adf83d71

commit 983b6f6c72c81933f5c5eb5b53495763adf83d71
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-07-19 09:48:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-07-21 02:28:56 +0000

    math/adol-c: Enable the SPARSE option by default
    
    Reason: new version of science/opensim-core expects it.
    
    While here:
    * strip binaries
    * disable ColPack detection because it breaks with ColPack
---
 math/adol-c/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/math/adol-c/Makefile b/math/adol-c/Makefile
index 5487f77f945c..b1fa646f7ae3 100644
--- a/math/adol-c/Makefile
+++ b/math/adol-c/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	adol-c
 DISTVERSION=	2.7.2
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	https://www.coin-or.org/download/source/${PORTNAME:tu}/
 DISTNAME=	${PORTNAME:tu}-${DISTVERSION}
@@ -14,14 +15,21 @@ BUILD_DEPENDS=	bash:shells/bash
 LIB_DEPENDS=	libboost_system.so:devel/boost-libs
 
 USES=		compiler:c++11-lang gmake libtool tar:tgz
+USE_LDCONFIG=	yes
+
 GNU_CONFIGURE=	yes
 CONFIGURE_SHELL=	${LOCALBASE}/bin/bash
-USE_LDCONFIG=	yes
+
+INSTALL_TARGET=	install-strip
 
 OPTIONS_DEFINE=			SPARSE # also uses AMPI, a seemingly obscure MPI implementation
+OPTIONS_DEFAULT=		SPARSE
 OPTIONS_SUB=			yes
 
 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
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107210229.16L2T3xu069363>