science/pcmsolver: Small fixes

* fix build with git present
* remove noninja (no longer needed)
* force python version
This commit is contained in:
Yuri Victorovich 2022-05-20 21:33:33 -07:00
parent b308fbec7c
commit e4fe11f836

View file

@ -9,12 +9,14 @@ COMMENT= API for the Polarizable Continuum Model
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake:noninja compiler:c11 fortran python
USES= cmake compiler:c11 fortran python
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= PCMSolver
BINARY_ALIAS= git=true # see https://github.com/PCMSolver/pcmsolver/issues/198
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} && \
@ -25,6 +27,7 @@ do-configure: # full CMAKE_ARGS breaks configure: -DCMAKE_EXE_LINKER_FLAGS="${LD
-DCMAKE_EXE_LINKER_FLAGS:STRING="${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so" \
-DCMAKE_C_COMPILER:STRING="${CC}" \
-DCMAKE_CXX_COMPILER:STRING="${CXX}" \
-DPYTHON_INTERPRETER:STRING="${PYTHON_CMD}" \
${CMAKE_SOURCE_PATH}
.include <bsd.port.mk>