ports/science/spglib/Makefile
Yuri Victorovich ed130bccc5 science/{,py-}spglib: update 2.4.0 → 2.5.0
Reported by:	portscout
2024-07-12 02:01:04 -07:00

35 lines
742 B
Makefile

PORTNAME= spglib
DISTVERSIONPREFIX= v
DISTVERSION= 2.5.0
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
COMMENT= C library for finding and handling crystal symmetries
WWW= https://spglib.github.io/spglib/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake:testing
USE_GITHUB= yes
USE_LDCONFIG= yes
TEST_DEPENDS= googletest>0:devel/googletest
CMAKE_OFF= SPGLIB_WITH_TESTS
CMAKE_TESTING_ON= SPGLIB_WITH_TESTS
.if !exists(/usr/include/omp.h)
CMAKE_OFF+= SPGLIB_USE_OMP
.else
FORTRAN_LDFLAGS= -lomp # workaround for: undefined reference to `__kmpc_fork_call'
.endif
OPTIONS_DEFINE= FORTRAN
OPTIONS_DEFAULT= FORTRAN
OPTIONS_SUB= yes
FORTRAN_USES= fortran
FORTRAN_CMAKE_BOOL= SPGLIB_WITH_Fortran
.include <bsd.port.mk>