2022-07-19 05:26:05 +08:00
|
|
|
vcpkg_from_github(
|
2019-02-17 06:42:47 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-07-19 05:26:05 +08:00
|
|
|
REPO libsdl-org/SDL_mixer
|
|
|
|
REF 1cf51b6e16552e4118d90799ef752f7644efb9fd # release-2.6.1
|
|
|
|
SHA512 c18c5d374ba1db8b07c796be5acae3e82b2191c43f9e1156b86f5ce6a088bd8200d9b7feee36de88d518f1ee2a6ff7410e911d37ac641ee4b46f7b098bf916fe
|
|
|
|
PATCHES fix-pkg-prefix.patch fix-pkgconfig.patch
|
2019-02-17 06:42:47 +08:00
|
|
|
)
|
2017-04-10 17:00:52 +08:00
|
|
|
|
2022-07-19 05:26:05 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-09-14 11:25:53 +08:00
|
|
|
FEATURES
|
2022-07-19 05:26:05 +08:00
|
|
|
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
|
2019-09-24 04:49:38 +08:00
|
|
|
)
|
|
|
|
|
2021-09-14 11:25:53 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-24 04:49:38 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
2022-07-19 05:26:05 +08:00
|
|
|
-DSDL2MIXER_VENDORED=OFF
|
2019-02-17 06:42:47 +08:00
|
|
|
)
|
2017-04-10 17:00:52 +08:00
|
|
|
|
2021-09-14 11:25:53 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-04-10 17:00:52 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-07-19 05:26:05 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
PACKAGE_NAME "SDL2_mixer"
|
|
|
|
CONFIG_PATH "lib/cmake/SDL2_mixer"
|
|
|
|
)
|
2021-12-01 07:29:54 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-04-10 17:00:52 +08:00
|
|
|
|
2022-07-19 05:26:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2021-09-14 11:25:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-03-27 00:57:16 +08:00
|
|
|
|
2022-08-05 01:51:24 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2022-07-19 05:26:05 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|