description = "The GNU Multiple Precision Arithmetic Library"
name = "libgmp"
licenses = "LGPL-3.0-only"
maintainers = ["derodat@adacore.com", "chouteau@adacore.com"]
maintainers-logins = ["pmderodat", "Fabien-Chouteau"]

[[external]]
kind = "system"
[external.origin."case(distribution)"]
"debian|ubuntu" = ["libgmp-dev"]
arch = ["gmp"]
msys2 = ["mingw-w64-x86_64-gmp"]
homebrew = ["gmp"]
macports = ["gmp"]
fedora = ["gmp-devel"]
suse = ["gmp-devel"]

[[external]]
kind = "version-output"
version-command = [ "pkg-config", "--modversion", "gmp" ]
version-regexp = "([\\d\\.]+)"

# pkg-config requires further steps to make packages findable by
# dependencies that Alire does not yet support
available = false
