Date: Sat, 22 Dec 2018 08:30:19 +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: r488077 - head/science/pcmsolver Message-ID: <201812220830.wBM8UJrI092282@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Sat Dec 22 08:30:19 2018 New Revision: 488077 URL: https://svnweb.freebsd.org/changeset/ports/488077 Log: science/pcmsolver: Unbreak: supply the minimal CMAKE_EXE_LINKER_FLAGS Also pass C/CXX flags to enable optimization. Reported by: fallout Modified: head/science/pcmsolver/Makefile Modified: head/science/pcmsolver/Makefile ============================================================================== --- head/science/pcmsolver/Makefile Sat Dec 22 08:26:53 2018 (r488076) +++ head/science/pcmsolver/Makefile Sat Dec 22 08:30:19 2018 (r488077) @@ -3,7 +3,7 @@ PORTNAME= pcmsolver DISTVERSIONPREFIX= v DISTVERSION= 1.2.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org @@ -19,9 +19,15 @@ USE_GITHUB= yes GH_ACCOUNT= PCMSolver USE_LDCONFIG= yes -do-configure: # full CMAKE_ARGS breaks configure: it can't find fortran's libraries +do-configure: # full CMAKE_ARGS breaks configure: -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" causes configure to fail to find fortran's libraries @${MKDIR} ${CONFIGURE_WRKSRC} - @cd ${CONFIGURE_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} -DCMAKE_BUILD_TYPE:STRING="Release" ${CMAKE_SOURCE_PATH} + @cd ${CONFIGURE_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} \ + -DCMAKE_BUILD_TYPE:STRING="Release" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="${CFLAGS}" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="${CXXFLAGS}" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so" \ + ${CMAKE_SOURCE_PATH} post-patch: @${REINPLACE_CMD} -e 's|"-O3 |"$${CMAKE_C_FLAGS} |' \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812220830.wBM8UJrI092282>