Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a recipe for elk (https://sourceforge.net/projects/elk/) #28798

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions recipes/elk/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash

set -xe

F90_OPTS="-O3 -ffast-math -funroll-loops -fopenmp -fallow-argument-mismatch"
F77_OPTS=$F90_OPTS
LIB_LPK="lapack.a blas.a"
LIB_FFT="fftlib.a"

echo > make.inc
echo "MAKE = make" >> make.inc
echo "F90 = $F90" >> make.inc
echo "F90_OPTS = $F90_OPTS" >> make.inc
echo "F77 = $F77" >> make.inc
echo "F77_OPTS = $F77_OPTS" >> make.inc
echo "AR = $AR" >> make.inc
echo "LIB_SYS = " >> make.inc
echo "# LAPACK and BLAS libraries" >> make.inc
echo "LIB_LPK = $LIB_LPK" >> make.inc
echo "LIB_FFT = $LIB_FFT" >> make.inc
echo "SRC_OMP = " >> make.inc
cat make.def >> make.inc

make all

install -m 0755 src/elk ${PREFIX}/bin/
install -m 0755 src/eos/eos ${PREFIX}/bin/
install -m 0755 src/spacegroup/spacegroup ${PREFIX}/bin/
44 changes: 44 additions & 0 deletions recipes/elk/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% set name = "elk" %}
{% set version = "8.4.21" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://sourceforge.net/projects/elk/files/elk-{{ version }}.tgz
sha256: 4e04f87a3bf9e16c3839b4b16a222b4ef92d11a18b0b472fb196c23d39bdb4df

build:
skip: True # [not linux]
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin='x') }}

requirements:
build:
- make
- {{ stdlib('c') }}
- {{ compiler('c') }}
- {{ compiler('fortran') }}
host:
- perl
- libgomp # [linux]
- llvm-openmp # [osx]
run:

test:
commands:
- elk --help

about:
home: https://sourceforge.net/projects/elk/
license: GPL-3.0-or-later
license_family: GPL3
license_file: COPYING
summary: An all-electron full-potential linearised augmented-planewave (FP-LAPW) code
dev_url: https://sourceforge.net/projects/elk/

extra:
recipe-maintainers:
- martin-g
Loading