1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

- Do not enable GIAC by default: it is broken on 11.3, and anyway it is

not very useful with SageMath;

- Fix pkg-config when GIAC is selected.
This commit is contained in:
Thierry Thomas 2020-04-21 10:10:21 +00:00
parent 4e3bd299a3
commit 0459b5cff6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=532263

View File

@ -3,6 +3,7 @@
PORTNAME= pynac
PORTVERSION= 0.7.26
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTNAME}/
@ -19,7 +20,7 @@ LIB_DEPENDS= libgmp.so:math/gmp \
USES= compiler:c++11-lang libtool localbase pkgconfig python:3.6+ tar:bz2
OPTIONS_DEFINE= GIAC
OPTIONS_DEFAULT= GIAC
OPTIONS_DEFAULT=
GIAC_DESC= Use giac for polynomial manipulations
GIAC_LIB_DEPENDS= libgiac.so:math/giacxcas
GIAC_CONFIGURE_ON= --with-giac
@ -30,4 +31,13 @@ GNU_CONFIGURE= yes
USE_LDCONFIG= yes
TEST_TARGET= check
pre-configure-GIAC-on:
${REINPLACE_CMD} -e 's|-lpynac|-lpynac -lgiac|' ${WRKSRC}/pynac.pc.in
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGIAC}
BROKEN_FreeBSD_11= libgiac is broken (undefined reference to `__divmodti4@GCC_7.0.0')
.endif
.include <bsd.port.mk>