1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

New port: science/libcint: General GTO integrals for quantum chemistry

This commit is contained in:
Yuri Victorovich 2018-03-26 23:13:45 +00:00
parent 43e7d70764
commit 89e7355c19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=465645
6 changed files with 59 additions and 0 deletions

View File

@ -82,6 +82,7 @@
SUBDIR += kst2
SUBDIR += lamprop
SUBDIR += libaec
SUBDIR += libcint
SUBDIR += libctl
SUBDIR += libefp
SUBDIR += libgeodecomp

25
science/libcint/Makefile Normal file
View File

@ -0,0 +1,25 @@
# $FreeBSD$
PORTNAME= libcint
DISTVERSIONPREFIX= v
DISTVERSION= 3.0.10
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
COMMENT= General GTO integrals for quantum chemistry
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libopenblas.so:math/openblas
USES= cmake:outsource blaslapack:openblas
USE_GITHUB= yes
GH_ACCOUNT= sunqm
USE_LDCONFIG= yes
PLIST_FILES= include/cint.h \
lib/libcint.so \
lib/libcint.so.3.0.6
.include <bsd.port.mk>

3
science/libcint/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1522103933
SHA256 (sunqm-libcint-v3.0.10_GH0.tar.gz) = aac6d9630dc4c62840f03262166e877d3aeaf27b6b33498fb490fa3428f12fe4
SIZE (sunqm-libcint-v3.0.10_GH0.tar.gz) = 38801760

View File

@ -0,0 +1,15 @@
--- CMakeLists.txt.orig 2018-03-26 22:49:26 UTC
+++ CMakeLists.txt
@@ -25,7 +25,11 @@ if(QUADMATH_FOUND)
set(HAVE_QUADMATH_H 1 CACHE INTERNAL "Have QUADMATH")
endif()
-find_package(BLAS REQUIRED)
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226959
+#find_package(BLAS REQUIRED)
+set(BLAS_FOUND ON)
+set(BLAS_LINKER_FLAGS -L${CMAKE_INSTALL_PREFIX}/lib -lopenblas -lopenblasp)
+set(BLAS_LIBRARIES ${CMAKE_INSTALL_PREFIX}/lib/libopenblas.so ${CMAKE_INSTALL_PREFIX}/lib/libopenblasp.so)
include(CheckFunctionExists)
set(CMAKE_REQUIRED_INCLUDES math.h)

View File

@ -0,0 +1,10 @@
--- src/c2f.h.orig 2018-03-21 00:24:56 UTC
+++ src/c2f.h
@@ -4,6 +4,7 @@
*/
#include "config.h"
+#include <sys/types.h>
#define ALL_CINT_FORTRAN_(NAME) \
int c##NAME##_sph_(double *out, int *shls, int *atm, int *natm, \

View File

@ -0,0 +1,5 @@
libcint is an open source library for analytical Gaussian integrals.
It provides C/Fortran API to evaluate one-electron/two-electron
integrals for Cartesian/real-spheric/spinor Gaussian type functions.
WWW: https://github.com/sunqm/libcint