2020-12-30 11:26:27 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "UWP")
|
2020-12-12 06:17:43 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO smoked-herring/sail
|
2021-08-25 05:49:58 +08:00
|
|
|
REF v0.9.0-pre15
|
|
|
|
SHA512 7f587a3cc05dbcee2327953438e5605beab6622b0511eb2c8d4d433a0586c6589ea6cad8ab8b02726be613502c9cfd53dfa263a4878bde9f0138ff076aa24d61
|
2020-12-12 06:17:43 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2020-12-30 11:26:27 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SAIL_STATIC)
|
|
|
|
|
2021-07-27 01:57:24 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
|
2020-12-12 06:17:43 +08:00
|
|
|
OPTIONS
|
2020-12-30 11:26:27 +08:00
|
|
|
-DSAIL_STATIC=${SAIL_STATIC}
|
|
|
|
-DSAIL_COMBINE_CODECS=ON
|
2020-12-12 06:17:43 +08:00
|
|
|
-DSAIL_BUILD_EXAMPLES=OFF
|
|
|
|
-DSAIL_BUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2021-07-27 01:57:24 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-12-12 06:17:43 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Remove duplicate files
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
|
|
|
# Move cmake configs
|
2021-07-27 01:57:24 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME sail CONFIG_PATH lib/cmake/sail DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME sailcodecs CONFIG_PATH lib/cmake/sailcodecs DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME sailcommon CONFIG_PATH lib/cmake/sailcommon DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME sailc++ CONFIG_PATH lib/cmake/sailc++ DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME sailmanip CONFIG_PATH lib/cmake/sailmanip DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
|
|
|
|
2020-12-12 06:17:43 +08:00
|
|
|
|
|
|
|
# Fix pkg-config files
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
# Handle usage
|
2021-07-27 01:57:24 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
|
2021-05-21 15:44:26 +08:00
|
|
|
|
2020-12-12 06:17:43 +08:00
|
|
|
# Handle copyright
|
2021-07-27 01:57:24 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|