···
2
+
synopsis: "Configuration for the mingw-w64 Cygwin packages in opam"
4
+
The mingw-w64 ports of OCaml require access to both GCC and the assembler. This
5
+
package performs two tasks. Firstly, it adds the directory containing the
6
+
runtime DLLS to PATH; for example, a typical Cygwin installation requires
7
+
C:\\cygwin64\\usr\\x86_64-w64-mingw32\\sys-root\\mingw\\bin
10
+
Secondly, for opam's internally managed Cygwin installation, it installs shim
11
+
executables to provide the cygpath utility along with all tool-prefixed
12
+
programs from the -gcc-core, -gcc-g++ and -binutils packages from the
13
+
mingw64-i686 and mingw64-x86_64 package sets."""
14
+
maintainer: "David Allsopp <david@tarides.com>"
15
+
authors: "David Allsopp"
17
+
homepage: "https://opam.ocaml.org"
18
+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
19
+
# os = "win32" & os-distribution = "cygwin" => opam-version >= "2.2.0"
20
+
available: os = "win32" & os-distribution = "cygwin"
21
+
dev-repo: "git+https://github.com/dra27/mingw-w64-shims.git"
23
+
# i686-gcc-core must appear before x86_64-gcc-core in this list
24
+
["sh" "./gen_config.sh" name
25
+
"i686-binutils" {conf-mingw-w64-gcc-i686:installed}
26
+
"i686-gcc-core" {conf-mingw-w64-gcc-i686:installed}
27
+
"i686-gcc-g++-%{?conf-mingw-w64-g++-i686:installed:}%"
28
+
"x86_64-binutils" {conf-mingw-w64-gcc-x86_64:installed}
29
+
"x86_64-gcc-core" {conf-mingw-w64-gcc-x86_64:installed}
30
+
"x86_64-gcc-g++-%{?conf-mingw-w64-g++-x86_64:installed:}%"
31
+
"pkgconf" {conf-pkg-config:installed}]
33
+
depends: ("conf-mingw-w64-gcc-x86_64" | "conf-mingw-w64-gcc-i686")
35
+
"conf-mingw-w64-g++-i686"
36
+
"conf-mingw-w64-g++-x86_64"
40
+
[ PATH += "%{_:runtime-x86_64}%" ]
41
+
[ PATH += "%{_:runtime-i686}%" ]
45
+
"https://github.com/dra27/mingw-w64-shims/archive/refs/tags/0.2.0.tar.gz"
47
+
"sha256=c152e3fcc7f22d61880a2f7f044027e6707ad7c22e5a75651e99925cc09ad5b8"
48
+
"sha512=8390a07266755f284c8cb8c57e821ec19b2abf3a0d278c48799b4c038585a5607f98cc3ea57fa06323d176a86013fd1fd05321daab6e539d914c0477befa2f20"