Skip to content

Commit e8b929d

Browse files
committed
Update libevent under Windows
1 parent 64a9d67 commit e8b929d

File tree

3 files changed

+56
-1
lines changed
  • packages
    • conf-libevent/conf-libevent.1
    • conf-mingw-w64-libevent-i686/conf-mingw-w64-libevent-i686.1
    • conf-mingw-w64-libevent-x86_64/conf-mingw-w64-libevent-x86_64.1

3 files changed

+56
-1
lines changed

packages/conf-libevent/conf-libevent.1/opam

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,24 @@ bug-reports: "https://github.com/ocaml/opam-repository/issues"
55
authors: "Libevent dev team"
66
license: "BSD-3-clause"
77
build: [
8-
["pkg-config" "--exists" "libevent"]
8+
"pkgconf" {os = "win32" & os-distribution != "cygwinports"}
9+
"--personality=i686-w64-mingw32"
10+
{os = "win32" & os-distribution != "cygwinports" &
11+
host-arch-x86_32:installed}
12+
"--personality=x86_64-w64-mingw32"
13+
{os = "win32" & os-distribution != "cygwinports" &
14+
host-arch-x86_64:installed}
15+
"pkg-config" {os != "Win32" | os-distribution != "cygwin"}
16+
"libevent"
917
]
1018
depends: [
1119
"conf-pkg-config" {build}
20+
("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} &
21+
"conf-mingw-w64-libevent-i686"
22+
{os = "win32" & os-distribution != "cygwinports"} |
23+
"host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} &
24+
"conf-mingw-w64-libevent-x86_64"
25+
{os = "win32" & os-distribution != "cygwinports"})
1226
]
1327
depexts: [
1428
["libevent-dev"] {os-family = "debian"}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
opam-version: "2.0"
2+
homepage: "https://libevent.org"
3+
authors: ["Libevent dev team"]
4+
license: "BSD-3-clause"
5+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
6+
flags: conf
7+
available: os = "win32"
8+
build: ["pkgconf" "--personality=i686-w64-mingw32" "libevent"]
9+
depends: [
10+
"conf-pkg-config" {build}
11+
"conf-mingw-w64-gcc-i686" {build}
12+
]
13+
synopsis: "Libevent for i686 mingw-w64"
14+
description:
15+
"Ensure the i686 version of libevent for the mingw-w64 project is available"
16+
maintainer: "David Allsopp <[email protected]>"
17+
depexts: [
18+
["mingw64-i686-libevent"] {os = "win32" & os-distribution = "cygwin"}
19+
["mingw-w64-i686-libevent"] {os = "win32" & os-distribution = "msys2"}
20+
]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
opam-version: "2.0"
2+
homepage: "https://libevent.org"
3+
authors: ["Libevent dev team"]
4+
license: "BSD-3-clause"
5+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
6+
flags: conf
7+
available: os = "win32"
8+
build: ["pkgconf" "--personality=x86_64-w64-mingw32" "libevent"]
9+
depends: [
10+
"conf-pkg-config" {build}
11+
"conf-mingw-w64-gcc-x86_64" {build}
12+
]
13+
synopsis: "Libevent for x86_64 mingw-w64"
14+
description:
15+
"Ensure the x86_64 version of libevent for the mingw-w64 project is available"
16+
maintainer: "David Allsopp <[email protected]>"
17+
depexts: [
18+
["mingw64-x86_64-libevent"] {os = "win32" & os-distribution = "cygwin"}
19+
["mingw-w64-x86_64-libevent"] {os = "win32" & os-distribution = "msys2"}
20+
]
21+

0 commit comments

Comments
 (0)