This Homebrew formula installs provides recipes to build openPMD libraries and tools on your macOS or Linux system.
TL;DR: Just execute
brew update
brew tap openpmd/openpmd
brew install openpmd-api
If you are not using CMake, you might want to set this environment hint:
export PKG_CONFIG_PATH=$(brew --prefix openpmd-api)/lib/pkgconfig:$PKG_CONFIG_PATH
This is quite an experimental installation method. Please open an issue in any case when trying this, we welcome any feedback on it!
- set pkg-config environment helpers... but brew does not set
PKG_CONFIG_PATH
user-side work-around: export PKG_CONFIG_PATH=$(brew --prefix openpmd-api)/lib/pkgconfig:$PKG_CONFIG_PATH
brew help
, man brew
or check Homebrew's documentation.
With brew test openpmd-api
you can check if the formula is working properly. Note the formula needs to be installed before it can be tested.