git: 983b6f6c72c8 - main - math/adol-c: Enable the SPARSE option by default
Yuri Victorovich
yuri at FreeBSD.org
Wed Jul 21 02:29:04 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=983b6f6c72c81933f5c5eb5b53495763adf83d71
commit 983b6f6c72c81933f5c5eb5b53495763adf83d71
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-07-19 09:48:21 +0000
Commit: Yuri Victorovich <yuri at 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>
More information about the dev-commits-ports-all
mailing list