Skip to content

Commit

Permalink
Merge pull request #26798 from mtelvers/libcurl.2
Browse files Browse the repository at this point in the history
libcurl for mingw
  • Loading branch information
mseri authored Oct 29, 2024
2 parents 56e31a3 + 2de4b00 commit 2dc65bc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/conf-libcurl/conf-libcurl.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand All @@ -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."
Expand Down
19 changes: 19 additions & 0 deletions packages/conf-mingw-w64-curl-i686/conf-mingw-w64-curl-i686.1/opam
Original file line number Diff line number Diff line change
@@ -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 <david@tarides.com>"
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"}
]
Original file line number Diff line number Diff line change
@@ -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 <david@tarides.com>"
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"}
]

0 comments on commit 2dc65bc

Please sign in to comment.