Date: Wed, 24 Apr 2019 22:11:06 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499916 - head/science/chrono Message-ID: <201904242211.x3OMB61d026815@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Wed Apr 24 22:11:06 2019 New Revision: 499916 URL: https://svnweb.freebsd.org/changeset/ports/499916 Log: science/chrono: fix build with GCC-based architectures PR: 236847 Submitted by: pkubaj Modified: head/science/chrono/Makefile Modified: head/science/chrono/Makefile ============================================================================== --- head/science/chrono/Makefile Wed Apr 24 21:35:58 2019 (r499915) +++ head/science/chrono/Makefile Wed Apr 24 22:11:06 2019 (r499916) @@ -33,10 +33,20 @@ DEMOS_CMAKE_BOOL= BUILD_DEMOS TESTS_DESC= Build and install unit test programs TESTS_CMAKE_BOOL= BUILD_TESTING +.include <bsd.port.pre.mk> + +.if ${CHOSEN_COMPILER_TYPE} == gcc +CXXFLAGS+= -Wno-error=narrowing +.endif + post-extract: @${RM} ${WRKSRC}/data/opensim/Rajagopal2015.orig post-patch: @${FIND} ${WRKSRC} -name CMakeLists.txt -o -name "*.cmake*" | ${XARGS} ${REINPLACE_CMD} -i '' 's|lib64|lib|' + @${REINPLACE_CMD} -e 's/ -march=native//' \ + ${WRKSRC}/cmake/FindAVX.cmake \ + ${WRKSRC}/cmake/FindFMA.cmake \ + ${WRKSRC}/cmake/FindSSE.cmake -.include <bsd.port.mk> +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904242211.x3OMB61d026815>