vcpkg/ports/freeopcua/portfile.cmake
Stefano Sinigardi a675e048df [freeopcua] add a new port (#5590)
* [freeopcua] new port

* [freeopcua] work-in-progress build on windows

* [freeopcua] fixes for windows
2019-03-07 15:28:48 -08:00

36 lines
1.3 KiB
CMake

include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO FreeOpcUa/freeopcua
REF 2f2c886eb2da46b9dc8944c8f79ac31a9f116a81
SHA512 f19c1489eb116224ac3192e646c08cf3967c9a07064a09c4cbdef89d93e98c7541bb3edd030be22f6daf3f831ff92a324bc3734a8fe34cdd9d5a5ff7cb7f2f19
HEAD_REF master
PATCHES
cmakelists_fixes.patch
improve_compatibility_with_recent_boost.patch
use_another_implementation_of_has_begin_end.patch
uri_facade_win.patch
serverObj.patch
include_asio_first.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_PYTHON=OFF
-DBUILD_TESTING=OFF
-DSSL_SUPPORT_MBEDTLS=OFF
)
vcpkg_install_cmake()
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/share/freeopcua/FreeOpcUaConfig-debug.cmake ${CURRENT_PACKAGES_DIR}/share/freeopcua/FreeOpcUaConfig-debug.cmake)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/share/freeopcua/FreeOpcUaConfig.cmake ${CURRENT_PACKAGES_DIR}/share/freeopcua/FreeOpcUaConfig.cmake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
#Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/freeopcua RENAME copyright)