svn commit: r539959 - head/math/giacxcas
Yuri Victorovich
yuri at FreeBSD.org
Tue Jun 23 07:08:04 UTC 2020
Author: yuri
Date: Tue Jun 23 07:08:03 2020
New Revision: 539959
URL: https://svnweb.freebsd.org/changeset/ports/539959
Log:
math/giacxcas: Fix build on 13-CURRENT
giacxas expects mallinfo in malloc.h
On systems before 13 the detection of malloc.h fails, but on 13 it succeeds but compilation then fails due to a missing mallinfo function.
Reported by: thierry, fallout
Modified:
head/math/giacxcas/Makefile
Modified: head/math/giacxcas/Makefile
==============================================================================
--- head/math/giacxcas/Makefile Tue Jun 23 05:59:37 2020 (r539958)
+++ head/math/giacxcas/Makefile Tue Jun 23 07:08:03 2020 (r539959)
@@ -128,6 +128,9 @@ pre-configure:
--prefix=${FLTKDEV-GIAC} \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}")
+post-configure: # malloc.h on 13-CURRENT is missing mallinfo and compilation fails after it is discovered
+ @${FIND} ${WRKSRC} -name config.h | ${XARGS} ${REINPLACE_CMD} -e 's|#define HAVE_MALLOC_H 1|/* #undef HAVE_MALLOC_H */|'
+
pre-build:
@cd ${COCOALIB-GIAC} && ${DO_MAKE_BUILD} \
CXXFLAGS_SPECIFIC="${CXXFLAGS}" library
More information about the svn-ports-head
mailing list