Skip to content

Commit 54023cb

Browse files
conf-gtk4: add pkg-config and correct mingw dependency
1 parent 8098f26 commit 54023cb

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • packages/conf-gtk4/conf-gtk4.1

packages/conf-gtk4/conf-gtk4.1/opam

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ authors: ["Chris Armstrong"]
77
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
88
homepage: "https://github.com/chris-armstrong/ocgtk"
99
bug-reports: "https://github.com/chris-armstrong/ocgtk/issues"
10-
10+
depends: [
11+
"conf-pkg-config" {build}
12+
("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-gtk3-i686" {os = "win32" & os-distribution != "cygwinports"} |
13+
"host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-gtk3-x86_64" {os = "win32" & os-distribution != "cygwinports"})
14+
]
1115
# System package dependencies for GTK4
1216
depexts: [
1317
# Debian/Ubuntu
@@ -31,12 +35,14 @@ depexts: [
3135
["gtk4"] {os = "macos" & os-distribution = "macports"}
3236

3337
# Windows via mingw
34-
["mingw-w64-x86_64-gtk4"] {os = "win32" & os-distribution = "cygwinports"}
38+
["gtk4"] {os = "win32" & os-distribution = "cygwinports"}
39+
["gtk4"] {os = "freebsd"}
3540
]
3641

3742
# Check that pkg-config can find gtk4
3843
build: [
39-
["pkg-config" "--print-errors" "--exists" "gtk4"]
44+
["pkgconf" "--personality=x86_64-w64-mingw32" "--print-errors" "--exists" "gtk4"] {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_64:installed}
45+
["pkg-config" "--short-errors" "--print-errors" "--atleast-version" "4.10" "gtk4"] {os != "win32" | os-distribution = "cygwinports"}
4046
]
4147

4248
flags: conf

0 commit comments

Comments
 (0)