apjanke / homebrew-openfoam

WIP for installing OpenFOAM using Homebrew
BSD 2-Clause "Simplified" License
4 stars 0 forks source link

additional references #2

Open olesenm opened 2 years ago

olesenm commented 2 years ago

If you are trying to build a new recipe, here are some additional reference points:

Not really sure which one fits best with homebrew, but if you want make, make install type of use - consider how the spec file is handling this:

https://develop.openfoam.com/Development/openfoam/-/wikis/packaging/common/openfoamAPI.spec

Around lines 530-540:

"$installer" -v \
    -source="$sourceDir" \
    -prefix="$targetDir" \
   -all -collate

And lines 575-580:

"$installer" -v \
    -source="$sourceDir" -platform="$WM_OPTIONS" \
    -prefix="$targetDir" \
    -no-mpi

The corresponding files of interest would be bin/tools/install-dirs and bin/tools/install-platform.

I think you can use many ideas from those.

apjanke commented 2 years ago

Excellent; thanks! These will be helpful.