From 2de4b00d4f730b46d2a37b591ff41324388a64b6 Mon Sep 17 00:00:00 2001 From: Mark Elvers Date: Mon, 28 Oct 2024 10:50:56 -0700 Subject: [PATCH] libcurl for mingw --- packages/conf-libcurl/conf-libcurl.2/opam | 9 ++++++++- .../conf-mingw-w64-curl-i686.1/opam | 19 +++++++++++++++++++ .../conf-mingw-w64-curl-x86_64.1/opam | 19 +++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 packages/conf-mingw-w64-curl-i686/conf-mingw-w64-curl-i686.1/opam create mode 100644 packages/conf-mingw-w64-curl-x86_64/conf-mingw-w64-curl-x86_64.1/opam diff --git a/packages/conf-libcurl/conf-libcurl.2/opam b/packages/conf-libcurl/conf-libcurl.2/opam index 1ebd06a141f..076c1a46df2 100644 --- a/packages/conf-libcurl/conf-libcurl.2/opam +++ b/packages/conf-libcurl/conf-libcurl.2/opam @@ -3,7 +3,10 @@ maintainer: "blue-prawn" authors: ["Daniel Stenberg"] homepage: "http://curl.haxx.se/" license: "BSD-like" -build: ["curl-config" "--libs"] +build: [ + ["sh" "-exc" "curl-config --libs"] {os = "win32" & os-distribution != "cygwinports"} + ["curl-config" "--libs"] {os != "win32" | os-distribution = "cygwinports"} +] depexts: [ ["libcurl4-gnutls-dev"] {os-family = "debian"} ["libcurl4-gnutls-dev"] {os-family = "ubuntu"} @@ -20,6 +23,10 @@ depexts: [ ["curl"] {os-distribution = "macports" & os = "macos"} ["curl"] {os = "freebsd"} ] +depends: [ + ("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-curl-i686" {os = "win32" & os-distribution != "cygwinports"} | + "host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-curl-x86_64" {os = "win32" & os-distribution != "cygwinports"}) +] synopsis: "Virtual package relying on a libcurl system installation" description: "This package can only install if the libcurl is installed on the system." diff --git a/packages/conf-mingw-w64-curl-i686/conf-mingw-w64-curl-i686.1/opam b/packages/conf-mingw-w64-curl-i686/conf-mingw-w64-curl-i686.1/opam new file mode 100644 index 00000000000..9cd769e10ca --- /dev/null +++ b/packages/conf-mingw-w64-curl-i686/conf-mingw-w64-curl-i686.1/opam @@ -0,0 +1,19 @@ +opam-version: "2.0" +synopsis: "libcurl for i686 mingw-w64 (32-bit x86)" +description: "Ensures the i686 version of libcurl for the mingw-w64 project is available" +maintainer: "David Allsopp " +license: "MIT" +authors: ["Daniel Stenberg"] +homepage: "http://curl.haxx.se/" +bug-reports: "https://github.com/ocaml/opam-repository/issues" +flags: conf +available: os = "win32" +build: ["pkgconf" "--personality=i686-w64-mingw32" "libcurl"] +depends: [ + "conf-pkg-config" {build} + "conf-mingw-w64-gcc-i686" {build} +] +depexts: [ + ["mingw64-i686-curl"] {os = "win32" & os-distribution = "cygwin"} + ["mingw-w64-i686-curl"] {os = "win32" & os-distribution = "msys2"} +] diff --git a/packages/conf-mingw-w64-curl-x86_64/conf-mingw-w64-curl-x86_64.1/opam b/packages/conf-mingw-w64-curl-x86_64/conf-mingw-w64-curl-x86_64.1/opam new file mode 100644 index 00000000000..acb11142a8e --- /dev/null +++ b/packages/conf-mingw-w64-curl-x86_64/conf-mingw-w64-curl-x86_64.1/opam @@ -0,0 +1,19 @@ +opam-version: "2.0" +synopsis: "libcurl for x86_64 mingw-w64 (64-bit x86_64)" +description: "Ensures the x86_64 version of libcurl for the mingw-w64 project is available" +maintainer: "David Allsopp " +license: "MIT" +authors: ["Daniel Stenberg"] +homepage: "http://curl.haxx.se/" +bug-reports: "https://github.com/ocaml/opam-repository/issues" +flags: conf +available: os = "win32" +build: ["pkgconf" "--personality=x86_64-w64-mingw32" "libcurl"] +depends: [ + "conf-pkg-config" {build} + "conf-mingw-w64-gcc-x86_64" {build} +] +depexts: [ + ["mingw64-x86_64-curl"] {os = "win32" & os-distribution = "cygwin"} + ["mingw-w64-x86_64-curl"] {os = "win32" & os-distribution = "msys2"} +]