Needed to support the psi4 quantum chemistry package
Good morning :)
It does not like 10.3:
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) (found version "1.0") -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) (found version "1.0") CMake Error at cmake/custom_cxxstandard.cmake:52 (message): CLANG version must be at least 3.6! Call Stack (most recent call first): CMakeLists.txt:74 (include) -- Configuring incomplete, errors occurred! See also "/wrkdirs/usr/ports/math/ambit/work/.build/CMakeFiles/CMakeOutput.log". See also "/wrkdirs/usr/ports/math/ambit/work/.build/CMakeFiles/CMakeError.log". *** Error code 1
|26 ↗||(On Diff #35250)|
^ I think using <bsd.port.pre.mk> (and <bsd.port.post.mk> at the bottom) would be more proper than using <bsd.options.mk>, as you are really not using any option specific stuff here.
|30 ↗||(On Diff #35250)|
I am not sure how this can be solved. Eventually, every specific version will be dropped.
The right way would have been having USES=compiler:clang>3.6.
This already came up before, without a clear solution.
|32 ↗||(On Diff #35350)|
^ you need += here. After including bsd.pre.mk BUILD_DEPENDS already contains cmake:devel/cmake from the USES=cmake line. Which you override here :)
So this port will fail to configure on FreeBSD < 11, as cmake is not installed.
root@103amd32-yuri:/usr/ports/math/ambit # make -VBUILD_DEPENDS clang38:lang/clang38 /usr/local/bin/ccache:devel/ccache