Skip to content

Commit

Permalink
Update conf-libssl for the mingw-w64 ports
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed May 12, 2024
1 parent f34d845 commit 7773d43
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/conf-libssl/conf-libssl.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ description:
"This package can only install if the OpenSSL library is installed on the system."
extra-files: ["osx-build.sh" "md5=faf81a6bf30e346abe94610f136c6193"]
flags: conf
available: os != "win32" | os-distribution = "cygwinports"
1 change: 1 addition & 0 deletions packages/conf-libssl/conf-libssl.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ synopsis: "Virtual package relying on an OpenSSL library system installation"
description:
"This package can only install if the OpenSSL library is installed on the system."
flags: conf
available: os != "win32" | os-distribution = "cygwinports"
1 change: 1 addition & 0 deletions packages/conf-libssl/conf-libssl.3/opam
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ description:
"This package can only install if the OpenSSL library is installed on the system."
flags: conf
extra-files: ["homebrew.sh" "md5=a524c7b9cb12a5be63c7d5933ccd1c43"]
available: os != "win32" | os-distribution = "cygwinports"
8 changes: 7 additions & 1 deletion packages/conf-libssl/conf-libssl.4/opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ build-env: [
[HOMEBREW_NO_AUTO_UPDATE = "1"]
]
build: [
["pkg-config" "--print-errors" "--exists" "openssl"]
["pkgconf" {os = "win32" & os-distribution = "cygwin"}
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
"pkg-config" {os != "win32" | os-distribution != "cygwin"}
"--print-errors" "--exists" "openssl"]
{os != "freebsd" & os != "openbsd" & os != "netbsd" & # libssl is provided by base system on BSDs
os-distribution != "homebrew"}
["sh" "-ex" "./homebrew.sh" "check"] {os-distribution = "homebrew"}
Expand All @@ -18,6 +22,8 @@ install: [
]
depends: [
"conf-pkg-config" {build}
("host-arch-x86_32" {os = "win32" & os-distribution = "cygwin"} & "conf-mingw-w64-openssl-i686" {os = "win32" & os-distribution = "cygwin"} |
"host-arch-x86_64" {os = "win32" & os-distribution = "cygwin"} & "conf-mingw-w64-openssl-x86_64" {os = "win32" & os-distribution = "cygwin"})
]
depexts: [
["libssl-dev"] {os-family = "debian"}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
opam-version: "2.0"
synopsis: "libssl for i686 mingw-w64 (32-bit x86)"
description: "Ensures the i686 version of libssl for the mingw-w64 project is available"
maintainer: "David Allsopp <david@tarides.com>"
authors: "The OpenSSL Project"
license: "Apache-1.0"
homepage: "https://www.openssl.org"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
flags: conf
available: os = "win32" & os-distribution = "cygwin"
build: ["pkgconf" "--personality=i686-w64-mingw32" "openssl"]
depends: [
"conf-pkg-config" {build}
"conf-mingw-w64-gcc-i686" {build}
]
depexts: [
["mingw64-i686-openssl"] {os = "win32" & os-distribution = "cygwin"}
["mingw-w64-i686-openssl"] {os = "win32" & os-distribution = "msys2"}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
opam-version: "2.0"
synopsis: "libssl for x86_64 mingw-w64 (64-bit x86_64)"
description: "Ensures the x86_64 version of libssl for the mingw-w64 project is available"
maintainer: "David Allsopp <david@tarides.com>"
authors: "The OpenSSL Project"
license: "Apache-1.0"
homepage: "https://www.openssl.org"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
flags: conf
available: os = "win32" & os-distribution = "cygwin"
build: ["pkgconf" "--personality=x86_64-w64-mingw32" "openssl"]
depends: [
"conf-pkg-config" {build}
"conf-mingw-w64-gcc-x86_64" {build}
]
depexts: [
["mingw64-x86_64-openssl"] {os = "win32" & os-distribution = "cygwin"}
["mingw-w64-x86_64-openssl"] {os = "win32" & os-distribution = "msys2"}
]

0 comments on commit 7773d43

Please sign in to comment.