Skip to content

Commit 11db708

Browse files
committed
Query with 'pkg-config' on MSys2 for 'freeglut' - also in conf-mingw-w64-freeglut-* subpackages
1 parent b2e8eb2 commit 11db708

File tree

3 files changed

+10
-3
lines changed
  • packages
    • conf-freeglut/conf-freeglut.1
    • conf-mingw-w64-freeglut-i686/conf-mingw-w64-freeglut-i686.1
    • conf-mingw-w64-freeglut-x86_64/conf-mingw-w64-freeglut-x86_64.1

3 files changed

+10
-3
lines changed

packages/conf-freeglut/conf-freeglut.1/opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ homepage: "https://freeglut.sourceforge.net/"
55
license: "X11"
66
bug-reports: "https://github.com/ocaml/opam-repository/issues"
77
build: [
8-
["pkg-config" "--print-errors" "--exists" "glut"] {(os != "win32" | os-distribution != "cygwin") & os-distribution != "debian" & os-distribution != "ubuntu" & !(os-distribution = "ol" & os-version < "9")}
8+
["pkg-config" "--print-errors" "--exists" "freeglut"] {os = "win32" & os-distribution = "msys"}
9+
["pkg-config" "--print-errors" "--exists" "glut"] {os != "win32" & os-distribution != "debian" & os-distribution != "ubuntu" & !(os-distribution = "ol" & os-version < "9")}
910
]
1011
depends: [
1112
"conf-pkg-config" {build & os-distribution != "debian" & os-distribution != "ubuntu" & !(os-distribution = "ol" & os-version < "9")}

packages/conf-mingw-w64-freeglut-i686/conf-mingw-w64-freeglut-i686.1/opam

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ homepage: "https://freeglut.sourceforge.net/"
88
bug-reports: "https://github.com/ocaml/opam-repository/issues"
99
flags: conf
1010
available: os = "win32"
11-
build: ["pkgconf" "--personality=i686-w64-mingw32" "freeglut"]
11+
build: [
12+
# Cygwin is missing a pkg-config .pc file https://cygwin.com/packages/x86_64/mingw64-i686-freeglut/mingw64-i686-freeglut-2.8.1-1
13+
["pkg-config" "--personality=i686-w64-mingw32" "freeglut"] {os = "win32" & os-distribution = "msys2"}
14+
]
1215
depends: [
1316
"conf-pkg-config" {build}
1417
"conf-mingw-w64-gcc-i686" {build}

packages/conf-mingw-w64-freeglut-x86_64/conf-mingw-w64-freeglut-x86_64.1/opam

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ homepage: "https://freeglut.sourceforge.net/"
88
bug-reports: "https://github.com/ocaml/opam-repository/issues"
99
flags: conf
1010
available: os = "win32"
11-
build: ["pkgconf" "--personality=x86_64-w64-mingw32" "freeglut"]
11+
build: [
12+
# Cygwin is missing a pkg-config .pc file https://www.cygwin.com/packages/x86_64/mingw64-x86_64-freeglut/mingw64-x86_64-freeglut-2.8.1-1
13+
["pkg-config" "--personality=x86_64-w64-mingw32" "freeglut"] {os = "win32" & os-distribution = "msys2"}
14+
]
1215
depends: [
1316
"conf-pkg-config" {build}
1417
"conf-mingw-w64-gcc-x86_64" {build}

0 commit comments

Comments
 (0)