2019-11-26 18:40:32 +08:00
|
|
|
# Enable static build in UNIX
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
2019-12-04 03:18:49 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2019-11-26 18:40:32 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libproxy/libproxy
|
2021-09-17 09:31:30 +08:00
|
|
|
REF e78a5ccfe0a2340f2c73e419767f8492ffc2787a #0.4.17
|
|
|
|
SHA512 b22251f73f7a94dade5dcdcd9d5510170038b0d101ee98ab427106c20a3d9979c2b16c57d6cf8d8ae59c3a28ccffcecafc0bed399926dc2416a27837fd2f043c
|
2019-11-26 18:40:32 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-tools-path.patch
|
|
|
|
support-windows.patch
|
|
|
|
fix-dependency-libmodman.patch
|
|
|
|
fix-install-py.patch
|
|
|
|
fix-arm-build.patch
|
2019-12-04 03:18:49 +08:00
|
|
|
fix-module-lib-name.patch
|
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
|
|
|
|
)
|
|
|
|
|
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()
|
|
|
|
|
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}")
|
|
|
|
file(REMOVE_RECURSE "${LIBPROXY_TOOLS}" "${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)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|