[libmodplug] Fix WASM build by pinning C++ standard to 11 (#37090)

Fixes #37089 

The port uses the register storage class specifier which was removed in
C++17, pinning the standard to C++11 solves this.

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
This commit is contained in:
fwcd 2024-03-05 10:46:08 +01:00 committed by GitHub
parent e14560492e
commit 8454a8de61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 3 deletions

View File

@ -17,7 +17,16 @@ vcpkg_from_github(
005-fix-install-paths.patch # https://github.com/Konstanty/libmodplug/pull/61
)
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
set(EXTRA_OPTIONS)
if(VCPKG_TARGET_IS_EMSCRIPTEN)
list(APPEND EXTRA_OPTIONS "-DCMAKE_CXX_STANDARD=11")
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${EXTRA_OPTIONS}
)
vcpkg_cmake_install()

View File

@ -1,7 +1,7 @@
{
"name": "libmodplug",
"version": "0.8.9.0",
"port-version": 10,
"port-version": 11,
"description": "The ModPlug mod file playing library.",
"homepage": "https://github.com/Konstanty/libmodplug",
"license": null,

View File

@ -4610,7 +4610,7 @@
},
"libmodplug": {
"baseline": "0.8.9.0",
"port-version": 10
"port-version": 11
},
"libmorton": {
"baseline": "0.2.12",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d9af89d39aa5f14bf7314ebc51bc74df26ff2a3b",
"version": "0.8.9.0",
"port-version": 11
},
{
"git-tree": "605d260810f9d1a489af7fb484d509581b39763d",
"version": "0.8.9.0",