this repo has no description

Add configuration for gmp under mingw

Co-authored-by: David Allsopp <david.allsopp@metastack.com>

Changed files
+60 -2
packages
conf-gmp
conf-gmp.4
conf-gmp-powm-sec
conf-gmp-powm-sec.3
conf-mingw-w64-gmp-i686
conf-mingw-w64-gmp-i686.1
conf-mingw-w64-gmp-x86_64
conf-mingw-w64-gmp-x86_64.1
+9 -2
packages/conf-gmp-powm-sec/conf-gmp-powm-sec.3/opam
···
bug-reports: "https://github.com/ocaml/opam-repository/issues"
license: "GPL-1.0-or-later"
build: [
-
["sh" "-exc" "cc -c $CFLAGS -I/usr/local/include test.c"] {os != "macos"}
[
"sh"
"-exc"
"cc -c $CFLAGS -I/opt/homebrew/include -I/opt/local/include -I/usr/local/include test.c"
] {os = "macos"}
]
-
depends: ["conf-gmp"]
synopsis:
"Virtual package relying on a GMP lib with constant-time modular exponentiation"
description: """
···
bug-reports: "https://github.com/ocaml/opam-repository/issues"
license: "GPL-1.0-or-later"
build: [
+
["sh" "-exc" "cc -c $CFLAGS -I/usr/local/include test.c"] {os != "macos" & os != "win32"}
+
["sh" "-exc"
+
"%{host-arch-x86_64:installed?x86_64:}%%{host-arch-x86_32:installed?i686:}%-w64-mingw32-gcc -c $CFLAGS test.c"
+
] {os = "win32"}
[
"sh"
"-exc"
"cc -c $CFLAGS -I/opt/homebrew/include -I/opt/local/include -I/usr/local/include test.c"
] {os = "macos"}
]
+
depends: [
+
"conf-gmp"
+
("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} |
+
"host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"})
+
]
synopsis:
"Virtual package relying on a GMP lib with constant-time modular exponentiation"
description: """
+9
packages/conf-gmp/conf-gmp.4/opam
···
"-exc"
"cc -c $CFLAGS -I/opt/homebrew/include -I/opt/local/include -I/usr/local/include test.c"
] {os = "macos"}
]
depexts: [
["libgmp-dev"] {os-family = "debian"}
···
"-exc"
"cc -c $CFLAGS -I/opt/homebrew/include -I/opt/local/include -I/usr/local/include test.c"
] {os = "macos"}
+
[
+
"sh"
+
"-exc"
+
"%{host-arch-x86_64:installed?x86_64:}%%{host-arch-x86_32:installed?i686:}%-w64-mingw32-gcc -c $CFLAGS test.c"
+
] {os = "win32" & os-distribution != "cygwinports"}
+
]
+
depends: [
+
(("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-gmp-i686" {os = "win32" & os-distribution != "cygwinports"}) |
+
("host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-gmp-x86_64" {os = "win32" & os-distribution != "cygwinports"}))
]
depexts: [
["libgmp-dev"] {os-family = "debian"}
+21
packages/conf-mingw-w64-gmp-i686/conf-mingw-w64-gmp-i686.1/opam
···
···
+
opam-version: "2.0"
+
synopsis: "Virtual package for libgmp on i686 mingw-w64 (32-bit x86)"
+
description: "Ensures the i686 version of libgmp for the mingw-w64 project is available"
+
maintainer: "David Allsopp <david@tarides.com>"
+
authors: "Torbjörn Granlund et al"
+
license: "GPL-1.0-or-later"
+
homepage: "http://gmplib.org/"
+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
+
flags: conf
+
available: os = "win32"
+
build: ["pkgconf" "--personality=i686-w64-mingw32" {os-distribution = "cygwin"} "gmp"]
+
depends: [
+
"msys2" {build & os = "win32" & os-distribution = "msys2"}
+
"msys2-mingw32" {os = "win32" & os-distribution = "msys2"}
+
"conf-pkg-config" {build}
+
"conf-mingw-w64-gcc-i686" {build}
+
]
+
depexts: [
+
["mingw64-i686-gmp"] {os = "win32" & os-distribution = "cygwin"}
+
["mingw-w64-i686-gmp"] {os = "win32" & os-distribution = "msys2"}
+
]
+21
packages/conf-mingw-w64-gmp-x86_64/conf-mingw-w64-gmp-x86_64.1/opam
···
···
+
opam-version: "2.0"
+
synopsis: "Virtual package for libgmp on x86_64 mingw-w64 (64-bit x86_64)"
+
description: "Ensures the x86_64 version of libgmp for the mingw-w64 project is available"
+
maintainer: "David Allsopp <david@tarides.com>"
+
authors: "Torbjörn Granlund et al"
+
license: "GPL-1.0-or-later"
+
homepage: "http://gmplib.org/"
+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
+
flags: conf
+
available: os = "win32"
+
build: ["pkgconf" "--personality=x86_64-w64-mingw32" {os-distribution = "cygwin"} "gmp"]
+
depends: [
+
"msys2" {build & os = "win32" & os-distribution = "msys2"}
+
"msys2-mingw32" {os = "win32" & os-distribution = "msys2"}
+
"conf-pkg-config" {build}
+
"conf-mingw-w64-gcc-x86_64" {build}
+
]
+
depexts: [
+
["mingw64-x86_64-gmp"] {os = "win32" & os-distribution = "cygwin"}
+
["mingw-w64-x86_64-gmp"] {os = "win32" & os-distribution = "msys2"}
+
]