mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 10:11:17 +08:00
a0b6a284ad
* [baresip-libre] update to 3.4.0 * bump version * rename patch * bump version * rename patch * bump version * rename patch * bump version
36 lines
1.2 KiB
CMake
36 lines
1.2 KiB
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO baresip/re
|
|
REF "v${VERSION}"
|
|
SHA512 97ea35e4d4f36a9b3e47bb942497d495247e01106bcceef98fba4ab8e36061acaca88d12568990f9c8014b1061941ea5e2c6e8c0287e6dcd83a60a70400b083d
|
|
HEAD_REF main
|
|
PATCHES
|
|
fix-static-library-build.patch
|
|
use-c11.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBRE_BUILD_SHARED)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LIBRE_BUILD_STATIC)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DLIBRE_BUILD_SHARED=${LIBRE_BUILD_SHARED}
|
|
-DLIBRE_BUILD_STATIC=${LIBRE_BUILD_STATIC}
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Backtrace=ON
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_OpenSSL=ON
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_ZLIB=ON
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME libre CONFIG_PATH lib/cmake/libre)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|