git: d599b9c1d5d5 - main - science/libxc: Change to cmake; Install cmake files
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Aug 2022 22:30:25 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d599b9c1d5d5fe828fbf6243987c6d503769820d
commit d599b9c1d5d5fe828fbf6243987c6d503769820d
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-13 22:27:49 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-13 22:30:23 +0000
science/libxc: Change to cmake; Install cmake files
Reason - the Psi4 project requires .cmake files to be installed
in order to find libxc.
PR: 265782
Approved by: jmd@ (maintainer)
---
science/libxc/Makefile | 9 ++++-----
science/libxc/pkg-plist | 11 ++++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/science/libxc/Makefile b/science/libxc/Makefile
index 944edb156e14..8db4cfcd5113 100644
--- a/science/libxc/Makefile
+++ b/science/libxc/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libxc
DISTVERSION= 5.2.3
+PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= https://www.tddft.org/programs/${PORTNAME}/down/${DISTVERSION}/
@@ -9,12 +10,10 @@ COMMENT= Library of exchange-correlation functionals for DFT
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= fortran gmake libtool perl5
+USES= cmake:testing fortran
USE_LDCONFIG= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-shared --disable-static
-
-INSTALL_TARGET= install-strip
+CMAKE_ON= BUILD_SHARED_LIBS ENABLE_FORTRAN
+CMAKE_OFF= BUILD_TESTING
.include <bsd.port.mk>
diff --git a/science/libxc/pkg-plist b/science/libxc/pkg-plist
index d863d7e644b5..f7f659ad4fce 100644
--- a/science/libxc/pkg-plist
+++ b/science/libxc/pkg-plist
@@ -1,6 +1,4 @@
bin/xc-info
-bin/xc-threshold
-include/libxc.bib
include/xc.h
include/xc_f03_lib_m.mod
include/xc_f90_lib_m.mod
@@ -10,13 +8,16 @@ include/xc_funcs_worker.h
include/xc_version.h
lib/libxc.so
lib/libxc.so.9
-lib/libxc.so.9.2.3
lib/libxcf03.so
lib/libxcf03.so.9
-lib/libxcf03.so.9.2.3
lib/libxcf90.so
lib/libxcf90.so.9
-lib/libxcf90.so.9.2.3
libdata/pkgconfig/libxc.pc
libdata/pkgconfig/libxcf03.pc
libdata/pkgconfig/libxcf90.pc
+share/cmake/Libxc/LibxcConfig.cmake
+share/cmake/Libxc/LibxcConfigVersion.cmake
+share/cmake/Libxc/LibxcTargets-C-%%CMAKE_BUILD_TYPE%%.cmake
+share/cmake/Libxc/LibxcTargets-C.cmake
+share/cmake/Libxc/LibxcTargets-Fortran-%%CMAKE_BUILD_TYPE%%.cmake
+share/cmake/Libxc/LibxcTargets-Fortran.cmake