2018-01-28 19:14:06 +08:00
|
|
|
vcpkg_from_github(
|
2023-10-17 03:12:21 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO OpenMPT/openmpt
|
|
|
|
REF "libopenmpt-${VERSION}"
|
2024-10-08 03:08:40 +08:00
|
|
|
SHA512 ac13ae299c61ce61d5cfd580d5f6377817654c43c0164db1823501b31fdc873e64709bd6b91a0709eed95d9e9572849ec16d61eae6b05d9eabb419faf52cf9b2
|
2023-10-17 03:12:21 +08:00
|
|
|
HEAD_REF master
|
2018-01-28 19:14:06 +08:00
|
|
|
)
|
|
|
|
|
2023-10-17 03:12:21 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2018-01-28 19:14:06 +08:00
|
|
|
|
2021-10-26 04:35:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-10-17 03:12:21 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
"-DVERSION=${VERSION}"
|
2018-01-28 19:14:06 +08:00
|
|
|
)
|
2021-10-26 04:35:56 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-01-28 19:14:06 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-26 04:35:56 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libopenmpt/libopenmpt_config.h "defined(LIBOPENMPT_USE_DLL)" "0")
|
|
|
|
else()
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libopenmpt/libopenmpt_config.h "defined(LIBOPENMPT_USE_DLL)" "1")
|
|
|
|
endif()
|
|
|
|
|
2023-10-17 03:12:21 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|