diff options
Diffstat (limited to 'ports/openal-soft')
| -rw-r--r-- | ports/openal-soft/CONTROL | 2 | ||||
| -rw-r--r-- | ports/openal-soft/fix-mingw-build.patch | 14 | ||||
| -rw-r--r-- | ports/openal-soft/portfile.cmake | 1 |
3 files changed, 16 insertions, 1 deletions
diff --git a/ports/openal-soft/CONTROL b/ports/openal-soft/CONTROL index 6b84e63ff..a139fb9e8 100644 --- a/ports/openal-soft/CONTROL +++ b/ports/openal-soft/CONTROL @@ -1,6 +1,6 @@ Source: openal-soft Version: 1.20.1 -Port-Version: 4 +Port-Version: 5 Homepage: https://github.com/kcat/openal-soft Description: OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D audio API. Supports: !uwp diff --git a/ports/openal-soft/fix-mingw-build.patch b/ports/openal-soft/fix-mingw-build.patch new file mode 100644 index 000000000..ffb2db303 --- /dev/null +++ b/ports/openal-soft/fix-mingw-build.patch @@ -0,0 +1,14 @@ +diff --git a/common/alstring.h b/common/alstring.h +index 194e54a1..5a5f87ed 100644 +--- a/common/alstring.h ++++ b/common/alstring.h +@@ -4,6 +4,9 @@ + #include <cstddef> + #include <string> + ++// This fixes MinGW link errors. It defines strcasecmp and strncasecmp in string.h. ++#include <string.h> ++ + #include "almalloc.h" + + diff --git a/ports/openal-soft/portfile.cmake b/ports/openal-soft/portfile.cmake index 5b6c8067c..31ebc6bae 100644 --- a/ports/openal-soft/portfile.cmake +++ b/ports/openal-soft/portfile.cmake @@ -9,6 +9,7 @@ vcpkg_from_github( PATCHES dont-export-symbols-in-static-build.patch fix-arm-builds.patch + fix-mingw-build.patch ) if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") |
