Skip to content

Commit 14bad9e

Browse files
committed
Add MinGW support for freetype
1 parent fd7e2e0 commit 14bad9e

File tree

3 files changed

+48
-2
lines changed
  • packages
    • conf-freetype/conf-freetype.1
    • conf-mingw-w64-freetype-i686/conf-mingw-w64-freetype-i686.1
    • conf-mingw-w64-freetype-x86_64/conf-mingw-w64-freetype-x86_64.1

3 files changed

+48
-2
lines changed

packages/conf-freetype/conf-freetype.1/opam

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ authors: ["Christophe Troestler <[email protected]>"]
44
homepage: "http://www.freetype.org"
55
bug-reports: "https://github.com/ocaml/opam-repository/issues"
66
license: "GPL-1.0-or-later"
7-
build: [["pkg-config" "freetype2"]]
8-
depends: ["conf-pkg-config" {build}]
7+
build: [
8+
["pkgconf" "--personality=i686-w64-mingw32" "freetype2"] {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
9+
["pkgconf" "--personality=x86_64-w64-mingw32" "freetype2"] {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
10+
["pkg-config" "freetype2"] {os != "win32" | os-distribution != "cygwin"}
11+
]
12+
depends: [
13+
"conf-pkg-config" {build}
14+
("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-freetype-i686" {os = "win32" & os-distribution != "cygwinports"} |
15+
"host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-freetype-x86_64" {os = "win32" & os-distribution != "cygwinports"})
16+
]
917
depexts: [
1018
["libfreetype6-dev"] {os-family = "debian" | os-family = "ubuntu"}
1119
["freetype-dev"] {os-family = "alpine"}
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: "Provides freetype for i686 mingw-w64 (32-bit x86)"
3+
description: "Ensure that the i686 version of freetype for the mingw-w64 project is available"
4+
maintainer: "https://github.com/ocaml/opam-repository/issues"
5+
authors: ["Christophe Troestler <[email protected]>"]
6+
license: "GPL-1.0-or-later"
7+
homepage: "http://www.freetype.org"
8+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
9+
flags: conf
10+
available: os = "win32"
11+
build: ["pkgconf" "--personality=i686-w64-mingw32" "freetype2"]
12+
depends: [
13+
"conf-pkg-config" {build}
14+
"conf-mingw-w64-gcc-i686" {build}
15+
]
16+
depexts: [
17+
["mingw64-i686-freetype2"] {os = "win32" & os-distribution = "cygwin"}
18+
["mingw-w64-i686-freetype"] {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: "Provides freetype for x86_64 mingw-w64 (64-bit x86_64)"
3+
description: "Ensure that the x86_64 version of freetype for the mingw-w64 project is available"
4+
maintainer: "https://github.com/ocaml/opam-repository/issues"
5+
authors: ["Christophe Troestler <[email protected]>"]
6+
license: "GPL-1.0-or-later"
7+
homepage: "http://www.freetype.org"
8+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
9+
flags: conf
10+
available: os = "win32"
11+
build: ["pkgconf" "--personality=x86_64-w64-mingw32" "freetype2"]
12+
depends: [
13+
"conf-pkg-config" {build}
14+
"conf-mingw-w64-gcc-x86_64" {build}
15+
]
16+
depexts: [
17+
["mingw64-x86_64-freetype2"] {os = "win32" & os-distribution = "cygwin"}
18+
["mingw-w64-x86_64-freetype"] {os = "win32" & os-distribution = "msys2"}
19+
]

0 commit comments

Comments
 (0)