aboutsummaryrefslogtreecommitdiff
path: root/ports/openal-soft
diff options
context:
space:
mode:
authorTodor Prokopov <koprok@users.noreply.github.com>2020-07-31 08:37:02 +0300
committerGitHub <noreply@github.com>2020-07-30 22:37:02 -0700
commitfe19c5e41167336d8b9d52f3dff44caa72fd6bfa (patch)
tree04a57599756686520b0f501ed6079737a15fb039 /ports/openal-soft
parent5cdb92f010d8251e8e6ec62ccaed867547a6373a (diff)
downloadvcpkg-fe19c5e41167336d8b9d52f3dff44caa72fd6bfa.tar.gz
vcpkg-fe19c5e41167336d8b9d52f3dff44caa72fd6bfa.zip
Mingw port fixes (#12103)
* [openal-soft] MinGW build fixes * [glew] MinGW build fixes * [protobuf] MinGW build fixes * [protobuf] Update to 3.12.3 * [protobuf] Preserve existing cross-compilation behavior (e.g. android) Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Diffstat (limited to 'ports/openal-soft')
-rw-r--r--ports/openal-soft/CONTROL2
-rw-r--r--ports/openal-soft/fix-mingw-build.patch14
-rw-r--r--ports/openal-soft/portfile.cmake1
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")