Skip to content

Commit 02d09c1

Browse files
authored
Merge pull request #28512 from jmid/mingw-sdl2-mixer
MinGW and Cygwin support for sdl2-mixer
2 parents ac204f3 + f1f4f09 commit 02d09c1

File tree

3 files changed

+46
-1
lines changed
  • packages
    • conf-mingw-w64-sdl2-mixer-i686/conf-mingw-w64-sdl2-mixer-i686.1
    • conf-mingw-w64-sdl2-mixer-x86_64/conf-mingw-w64-sdl2-mixer-x86_64.1
    • conf-sdl2-mixer/conf-sdl2-mixer.1

3 files changed

+46
-1
lines changed
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 sdl2-mixer for i686 mingw-w64 (32-bit x86)"
3+
description: "Ensure that the i686 version of sdl2-mixer for the mingw-w64 project is available"
4+
maintainer: "https://github.com/ocaml/opam-repository/issues"
5+
authors: "Sam Lantinga"
6+
license: "Zlib"
7+
homepage: "http://www.libsdl.org/projects/SDL_mixer/"
8+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
9+
flags: conf
10+
available: os = "win32"
11+
build: ["pkgconf" "--personality=i686-w64-mingw32" "SDL2_mixer"]
12+
depends: [
13+
"conf-pkg-config" {build}
14+
"conf-mingw-w64-gcc-i686" {build}
15+
]
16+
depexts: [
17+
["mingw64-i686-SDL2_mixer"] {os = "win32" & os-distribution = "cygwin"}
18+
["mingw-w64-i686-SDL2_mixer"] {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 sdl2-mixer for x86_64 mingw-w64 (64-bit x86_64)"
3+
description: "Ensure that the x86_64 version of sdl2-mixer for the mingw-w64 project is available"
4+
maintainer: "https://github.com/ocaml/opam-repository/issues"
5+
authors: "Sam Lantinga"
6+
license: "Zlib"
7+
homepage: "http://www.libsdl.org/projects/SDL_mixer/"
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" "SDL2_mixer"]
12+
depends: [
13+
"conf-pkg-config" {build}
14+
"conf-mingw-w64-gcc-x86_64" {build}
15+
]
16+
depexts: [
17+
["mingw64-x86_64-SDL2_mixer"] {os = "win32" & os-distribution = "cygwin"}
18+
["mingw-w64-x86_64-SDL2_mixer"] {os = "win32" & os-distribution = "msys2"}
19+
]

packages/conf-sdl2-mixer/conf-sdl2-mixer.1/opam

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ opam-version: "2.0"
22
maintainer: "https://github.com/ocaml/opam-repository/issues"
33
homepage: "http://www.libsdl.org/projects/SDL_mixer/"
44
license: "Zlib"
5-
build: [["pkg-config" "SDL2_mixer"]]
5+
build: [
6+
["pkgconf" "--personality=i686-w64-mingw32" "SDL2_mixer"] {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
7+
["pkgconf" "--personality=x86_64-w64-mingw32" "SDL2_mixer"] {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
8+
["pkg-config" "SDL2_mixer"] {os != "win32" | os-distribution != "cygwin"}
9+
]
610
depexts: [
711
["sdl2_mixer-dev"] {os-family = "alpine"}
812
["libsdl2-mixer-dev"] {os-family = "debian"}
@@ -16,12 +20,15 @@ depexts: [
1620
["sdl2-mixer"] {os-family = "gentoo"}
1721
["sdl2_mixer"] {os = "freebsd"}
1822
["SDL2_mixer"] {os = "nixos"}
23+
["libSDL2_mixer-devel"] {os = "cygwin"}
1924
]
2025
synopsis: "Virtual package relying on a sdl2-mixer system installation"
2126
description:
2227
"This package can only install if libsdl2-mixer is installed on the system."
2328
depends: [
2429
"conf-pkg-config" {build}
30+
("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-sdl2-mixer-i686" {os = "win32" & os-distribution != "cygwinports"} |
31+
"host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-sdl2-mixer-x86_64" {os = "win32" & os-distribution != "cygwinports"})
2532
]
2633
bug-reports: "https://github.com/ocaml/opam-repository/issues"
2734
authors: "Sam Lantinga"

0 commit comments

Comments
 (0)