aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2021-09-27 13:59:30 -0700
committerGitHub <noreply@github.com>2021-09-27 13:59:30 -0700
commit3768cef9c204bb168c04b3ba7cb93b10a140a91d (patch)
treeb678ee1678608a40a4e6bd8159fcfa96124c92e4 /ports
parentf0281bf749f6b7c39418b57a60ae91c5f5d65b0f (diff)
downloadvcpkg-3768cef9c204bb168c04b3ba7cb93b10a140a91d.tar.gz
vcpkg-3768cef9c204bb168c04b3ba7cb93b10a140a91d.zip
Add workaround suggested by Robert in #18098 (#20310)
Diffstat (limited to 'ports')
-rw-r--r--ports/openal-soft/portfile.cmake5
-rw-r--r--ports/openal-soft/vcpkg.json2
2 files changed, 5 insertions, 2 deletions
diff --git a/ports/openal-soft/portfile.cmake b/ports/openal-soft/portfile.cmake
index 79ea4a0c7..30c413ff4 100644
--- a/ports/openal-soft/portfile.cmake
+++ b/ports/openal-soft/portfile.cmake
@@ -80,7 +80,10 @@ foreach(HEADER al.h alc.h)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
string(REPLACE "defined(AL_LIBTYPE_STATIC)" "1" AL_H "${AL_H}")
else()
- string(REPLACE "defined(AL_LIBTYPE_STATIC)" "0" AL_H "${AL_H}")
+ # Normally we would say:
+ # string(REPLACE "defined(AL_LIBTYPE_STATIC)" "0" AL_H "${AL_H}")
+ # but we are leaving these undefined macros alone in support of
+ # https://github.com/microsoft/vcpkg/issues/18098
endif()
file(WRITE "${CURRENT_PACKAGES_DIR}/include/AL/${HEADER}" "${AL_H}")
endforeach()
diff --git a/ports/openal-soft/vcpkg.json b/ports/openal-soft/vcpkg.json
index c96c68a3c..8f86e6bd5 100644
--- a/ports/openal-soft/vcpkg.json
+++ b/ports/openal-soft/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "openal-soft",
"version-semver": "1.21.1",
- "port-version": 2,
+ "port-version": 3,
"description": "OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D audio API.",
"homepage": "https://github.com/kcat/openal-soft",
"supports": "!uwp"