Skip to content

Commit 7773d43

Browse files
committed
Update conf-libssl for the mingw-w64 ports
1 parent f34d845 commit 7773d43

File tree

6 files changed

+48
-1
lines changed
  • packages
    • conf-libssl
    • conf-mingw-w64-openssl-i686/conf-mingw-w64-openssl-i686.1
    • conf-mingw-w64-openssl-x86_64/conf-mingw-w64-openssl-x86_64.1

6 files changed

+48
-1
lines changed

packages/conf-libssl/conf-libssl.1/opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ description:
3131
"This package can only install if the OpenSSL library is installed on the system."
3232
extra-files: ["osx-build.sh" "md5=faf81a6bf30e346abe94610f136c6193"]
3333
flags: conf
34+
available: os != "win32" | os-distribution = "cygwinports"

packages/conf-libssl/conf-libssl.2/opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ synopsis: "Virtual package relying on an OpenSSL library system installation"
3838
description:
3939
"This package can only install if the OpenSSL library is installed on the system."
4040
flags: conf
41+
available: os != "win32" | os-distribution = "cygwinports"

packages/conf-libssl/conf-libssl.3/opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ description:
3838
"This package can only install if the OpenSSL library is installed on the system."
3939
flags: conf
4040
extra-files: ["homebrew.sh" "md5=a524c7b9cb12a5be63c7d5933ccd1c43"]
41+
available: os != "win32" | os-distribution = "cygwinports"

packages/conf-libssl/conf-libssl.4/opam

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ build-env: [
88
[HOMEBREW_NO_AUTO_UPDATE = "1"]
99
]
1010
build: [
11-
["pkg-config" "--print-errors" "--exists" "openssl"]
11+
["pkgconf" {os = "win32" & os-distribution = "cygwin"}
12+
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
13+
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
14+
"pkg-config" {os != "win32" | os-distribution != "cygwin"}
15+
"--print-errors" "--exists" "openssl"]
1216
{os != "freebsd" & os != "openbsd" & os != "netbsd" & # libssl is provided by base system on BSDs
1317
os-distribution != "homebrew"}
1418
["sh" "-ex" "./homebrew.sh" "check"] {os-distribution = "homebrew"}
@@ -18,6 +22,8 @@ install: [
1822
]
1923
depends: [
2024
"conf-pkg-config" {build}
25+
("host-arch-x86_32" {os = "win32" & os-distribution = "cygwin"} & "conf-mingw-w64-openssl-i686" {os = "win32" & os-distribution = "cygwin"} |
26+
"host-arch-x86_64" {os = "win32" & os-distribution = "cygwin"} & "conf-mingw-w64-openssl-x86_64" {os = "win32" & os-distribution = "cygwin"})
2127
]
2228
depexts: [
2329
["libssl-dev"] {os-family = "debian"}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
opam-version: "2.0"
2+
synopsis: "libssl for i686 mingw-w64 (32-bit x86)"
3+
description: "Ensures the i686 version of libssl for the mingw-w64 project is available"
4+
maintainer: "David Allsopp <david@tarides.com>"
5+
authors: "The OpenSSL Project"
6+
license: "Apache-1.0"
7+
homepage: "https://www.openssl.org"
8+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
9+
flags: conf
10+
available: os = "win32" & os-distribution = "cygwin"
11+
build: ["pkgconf" "--personality=i686-w64-mingw32" "openssl"]
12+
depends: [
13+
"conf-pkg-config" {build}
14+
"conf-mingw-w64-gcc-i686" {build}
15+
]
16+
depexts: [
17+
["mingw64-i686-openssl"] {os = "win32" & os-distribution = "cygwin"}
18+
["mingw-w64-i686-openssl"] {os = "win32" & os-distribution = "msys2"}
19+
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
opam-version: "2.0"
2+
synopsis: "libssl for x86_64 mingw-w64 (64-bit x86_64)"
3+
description: "Ensures the x86_64 version of libssl for the mingw-w64 project is available"
4+
maintainer: "David Allsopp <david@tarides.com>"
5+
authors: "The OpenSSL Project"
6+
license: "Apache-1.0"
7+
homepage: "https://www.openssl.org"
8+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
9+
flags: conf
10+
available: os = "win32" & os-distribution = "cygwin"
11+
build: ["pkgconf" "--personality=x86_64-w64-mingw32" "openssl"]
12+
depends: [
13+
"conf-pkg-config" {build}
14+
"conf-mingw-w64-gcc-x86_64" {build}
15+
]
16+
depexts: [
17+
["mingw64-x86_64-openssl"] {os = "win32" & os-distribution = "cygwin"}
18+
["mingw-w64-x86_64-openssl"] {os = "win32" & os-distribution = "msys2"}
19+
]

0 commit comments

Comments
 (0)