mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 03:29:01 +08:00
359dbe3a07
* Update sdl2-mixer to 2.6.1
* SDL2_mixer: fix upstream CMakeLists
* SDL2_mixer: add vcpkg_fixup_pkgconfig()
* Fix sdl2pp dependency on SDL2_mixer
* Never use vendored libs
* Update baseline
* sdl2pp: add license
* Update baseline
* Remove apparently redundant pkgconfig fix
* Use the commit hash for REF
* Update baseline
* Revert "Remove apparently redundant pkgconfig fix"
This reverts commit 98e0d7f76d
.
* Update baseline
* Minimize sdl2pp patch
* Update baseline
* Reformat
* Update baseline
40 lines
1.2 KiB
CMake
40 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libsdl-org/SDL_mixer
|
|
REF 1cf51b6e16552e4118d90799ef752f7644efb9fd # release-2.6.1
|
|
SHA512 c18c5d374ba1db8b07c796be5acae3e82b2191c43f9e1156b86f5ce6a088bd8200d9b7feee36de88d518f1ee2a6ff7410e911d37ac641ee4b46f7b098bf916fe
|
|
PATCHES fix-pkg-prefix.patch fix-pkgconfig.patch
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
fluidsynth SDL2MIXER_MIDI_FLUIDSYNTH
|
|
libflac SDL2MIXER_FLAC_LIBFLAC
|
|
libmodplug SDL2MIXER_MOD_MODPLUG
|
|
libvorbis SDL2MIXER_VORBIS_VORBISFILE
|
|
mpg123 SDL2MIXER_MP3_MPG123
|
|
nativemidi SDL2MIXER_MIDI_NATIVE
|
|
opusfile SDL2MIXER_OPUS
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DSDL2MIXER_VENDORED=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME "SDL2_mixer"
|
|
CONFIG_PATH "lib/cmake/SDL2_mixer"
|
|
)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|