diff --git a/science/gdma/Makefile b/science/gdma/Makefile index f6c77be58a91..2af8978ca9cd 100644 --- a/science/gdma/Makefile +++ b/science/gdma/Makefile @@ -1,23 +1,27 @@ PORTNAME= gdma DISTVERSIONPREFIX= v DISTVERSION= 2.2.6 PORTREVISION= 5 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Anthony Stone's Gaussian Distributed Multipole Analysis WWW= https://github.com/psi4/gdma LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake fortran USE_GITHUB= yes GH_ACCOUNT= psi4 USE_LDCONFIG= yes CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON \ - -DENABLE_XHOST:BOOL=OFF \ - -DENABLE_OPENMP:BOOL=ON + -DENABLE_XHOST:BOOL=OFF +.if !exists(/usr/include/omp.h) +CMAKE_ARGS+= -DENABLE_OPENMP:BOOL=OFF +.else +CMAKE_ARGS+= -DENABLE_OPENMP:BOOL=ON +.endif .include