···11+opam-version: "2.0"
22+synopsis: "Configuration for the mingw-w64 Cygwin packages in opam"
33+description: """
44+The mingw-w64 ports of OCaml require access to both GCC and the assembler. This
55+package performs two tasks. Firstly, it adds the directory containing the
66+runtime DLLS to PATH; for example, a typical Cygwin installation requires
77+C:\\cygwin64\\usr\\x86_64-w64-mingw32\\sys-root\\mingw\\bin
88+to be added to PATH.
99+1010+Secondly, for opam's internally managed Cygwin installation, it installs shim
1111+executables to provide the cygpath utility along with all tool-prefixed
1212+programs from the -gcc-core, -gcc-g++ and -binutils packages from the
1313+mingw64-i686 and mingw64-x86_64 package sets."""
1414+maintainer: "David Allsopp <david@tarides.com>"
1515+authors: "David Allsopp"
1616+license: "CC0-1.0+"
1717+homepage: "https://opam.ocaml.org"
1818+bug-reports: "https://github.com/ocaml/opam-repository/issues"
1919+# os = "win32" & os-distribution = "cygwin" => opam-version >= "2.2.0"
2020+available: os = "win32" & os-distribution = "cygwin"
2121+dev-repo: "git+https://github.com/dra27/mingw-w64-shims.git"
2222+build: [
2323+ # i686-gcc-core must appear before x86_64-gcc-core in this list
2424+ ["sh" "./gen_config.sh" name
2525+ "i686-binutils" {conf-mingw-w64-gcc-i686:installed}
2626+ "i686-gcc-core" {conf-mingw-w64-gcc-i686:installed}
2727+ "i686-gcc-g++-%{?conf-mingw-w64-g++-i686:installed:}%"
2828+ "x86_64-binutils" {conf-mingw-w64-gcc-x86_64:installed}
2929+ "x86_64-gcc-core" {conf-mingw-w64-gcc-x86_64:installed}
3030+ "x86_64-gcc-g++-%{?conf-mingw-w64-g++-x86_64:installed:}%"
3131+ "pkgconf" {conf-pkg-config:installed}]
3232+]
3333+depends: ("conf-mingw-w64-gcc-x86_64" | "conf-mingw-w64-gcc-i686")
3434+depopts: [
3535+ "conf-mingw-w64-g++-i686"
3636+ "conf-mingw-w64-g++-x86_64"
3737+ "conf-pkg-config"
3838+]
3939+setenv: [
4040+ [ PATH += "%{_:runtime-x86_64}%" ]
4141+ [ PATH += "%{_:runtime-i686}%" ]
4242+]
4343+url {
4444+ src:
4545+ "https://github.com/dra27/mingw-w64-shims/archive/refs/tags/0.2.0.tar.gz"
4646+ checksum: [
4747+ "sha256=c152e3fcc7f22d61880a2f7f044027e6707ad7c22e5a75651e99925cc09ad5b8"
4848+ "sha512=8390a07266755f284c8cb8c57e821ec19b2abf3a0d278c48799b4c038585a5607f98cc3ea57fa06323d176a86013fd1fd05321daab6e539d914c0477befa2f20"
4949+ ]
5050+}