blob: 2fed7abfc31f22cf483d9e46b9d56a4febd48fd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 2020-2021 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mumble-voip/ice
REF 3.7
SHA512 9f44de4e063d7a7b6a2b4adbae999fe3a6daafb8a7e945b616f89a453db81c41d1fec927f3149862649e5a92623c50f0ef2e0e58042c6070059b78dcf5ad9255
)
if("cpp11" IN_LIST FEATURES)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_ICE_CXX=ON
-DBUILD_ICE_CPP11=ON
)
else()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_ICE_CXX=ON
)
endif()
vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/cpp/include DESTINATION ${CURRENT_PACKAGES_DIR})
file(INSTALL ${SOURCE_PATH}/slice DESTINATION ${CURRENT_PACKAGES_DIR})
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/include
DESTINATION ${CURRENT_PACKAGES_DIR}
)
if(EXISTS ${CURRENT_PACKAGES_DIR}/bin)
file(INSTALL ${CURRENT_PACKAGES_DIR}/bin/ DESTINATION ${CURRENT_PACKAGES_DIR}/tools/Ice)
endif()
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/icebuilder/bin/ DESTINATION ${CURRENT_PACKAGES_DIR}/tools/Ice)
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/Ice)
if(UNIX)
vcpkg_execute_required_process(COMMAND chmod -R +x Ice
WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools
LOGNAME ice-${TARGET_TRIPLET}-setexe
)
endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL ${SOURCE_PATH}/ICE_LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|