mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 14:37:51 +08:00
59b861ab16
* [sdl2-mixer] Fix usage * version * format * version * Fix usage * version
41 lines
1.3 KiB
CMake
41 lines
1.3 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 "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|