libxc: new build-block added

This commit is contained in:
2019-09-20 16:42:51 +02:00
parent f2204e4fc3
commit d3cbd35bc1
3 changed files with 46 additions and 0 deletions

32
Compiler/libxc/build Normal file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/env modbuild
pbuild::set_download_url "https://gitlab.com/$P/$P/-/archive/${V_PKG}/$P-${V_PKG}.tar.gz"
pbuild::add_to_group 'Compiler'
pbuild::use_autotools
pbuild::install_docfiles 'AUTHORS'
pbuild::install_docfiles 'COPYING'
pbuild::install_docfiles 'KNOWN_ISSUES'
pbuild::install_docfiles 'NEWS'
pbuild::install_docfiles 'PACKAGING'
pbuild::install_docfiles 'README'
pbuild::install_docfiles 'TODO'
pbuild::post_prep() {
libtoolize
aclocal
autoheader
automake --add-missing
autoconf
}
pbuild::pre_configure() {
local -r cflags="-O2 -fPIC -fp-model precise -funroll-loops -g -traceback -xHost"
local -r fcflags="-O2 -fPIC -fp-model precise -fpp -free -funroll-loops -g -traceback -xHost"
pbuild::add_configure_args "CC=${CC}"
pbuild::add_configure_args "CXX=${CXX}"
pbuild::add_configure_args "FC=${FC}"
pbuild::add_configure_args "CFLAGS=${cflags}"
pbuild::add_configure_args "CXXFLAGS=${cflags}"
pbuild::add_configure_args "FCFLAGS=${fcflags}"
}

View File

@@ -0,0 +1 @@
libxc/4.3.4 unstable intel/19.4 b:autoconf/2.69 b:automake/1.16.1 b:libtool/2.4.6-1

13
Compiler/libxc/modulefile Normal file
View File

@@ -0,0 +1,13 @@
#%Module1.0
module-whatis "library of exchange-correlation functionals for density-functional theory"
module-url "https://gitlab.com/libxc/libxc"
module-license "Mozilla Public License Version 2.0"
module-maintainer "Achim Gsell <achim.gsell@psi.ch>"
module-help "
Libxc is a library of exchange-correlation functionals for
density-functional theory. The aim is to provide a portable, well
tested and reliable set of exchange and correlation functionals that
can be used by a variety of programs.
"