2019-11-26 18:40:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libproxy/libproxy
|
2022-12-13 04:18:37 +08:00
|
|
|
REF 8fec01ed4b95afc71bf7710bf5b736a5de03b343 #0.4.18
|
|
|
|
SHA512 6367d21b8816d7e5e3c75ee124c230ec89abbffa09538b6700c9ae61be33629f864617f51a2317e18d2fb960b09e26cae0e3503d747112f23921d1910856b109
|
2019-11-26 18:40:32 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-tools-path.patch
|
|
|
|
support-windows.patch
|
|
|
|
fix-install-py.patch
|
2019-12-04 03:18:49 +08:00
|
|
|
fix-module-lib-name.patch
|
2019-11-26 18:40:32 +08:00
|
|
|
)
|
|
|
|
|
2022-12-13 04:18:37 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATICCRT)
|
|
|
|
|
2019-11-26 18:40:32 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-09-17 09:31:30 +08:00
|
|
|
FEATURES
|
|
|
|
bindings-csharp WITH_DOTNET
|
|
|
|
bindings-python WITH_PYTHON2
|
|
|
|
bindings-python WITH_PYTHON3
|
|
|
|
bindings-perl WITH_PERL
|
|
|
|
bindings-vala WITH_VALA
|
|
|
|
tools BUILD_TOOLS
|
|
|
|
tests BUILD_TESTING
|
2019-11-26 18:40:32 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 09:31:30 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-11-26 18:40:32 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
-DWITH_WEBKIT3=OFF
|
2022-12-13 04:18:37 +08:00
|
|
|
-DWITH_KDE=${VCPKG_TARGET_IS_LINUX}
|
|
|
|
-DMSVC_STATIC=${STATICCRT}
|
2022-12-17 05:54:22 +08:00
|
|
|
-DWITH_GNOME3=OFF
|
2022-05-21 05:35:06 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
WITH_DOTNET
|
|
|
|
WITH_PERL
|
|
|
|
WITH_PYTHON2
|
|
|
|
WITH_PYTHON3
|
|
|
|
WITH_VALA
|
2022-12-17 05:54:22 +08:00
|
|
|
MSVC_STATIC
|
2019-11-26 18:40:32 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 09:31:30 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Modules)
|
2019-11-26 18:40:32 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-05-21 05:35:06 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-11-26 18:40:32 +08:00
|
|
|
|
2021-09-17 09:31:30 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/usage"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2022-05-21 05:35:06 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-11-26 18:40:32 +08:00
|
|
|
|
2021-09-17 09:31:30 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|