2018-10-22 19:25:37 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO apache/orc
|
2020-02-11 08:08:57 +08:00
|
|
|
REF 32be030290905de9c2cd5b8cd84e210d8c0cf25c # rel/release-1.5.9
|
|
|
|
SHA512 91af28d2ceb25a2e09073ab0b1cfc8e5f797bce690300c9548c5e80d50b5daac935842ae4073d157d218d70105a2c9f54297151d0ab210f304bc11d2e93ac6d1
|
2018-10-22 19:25:37 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2019-03-19 03:26:29 +08:00
|
|
|
0003-dependencies-from-vcpkg.patch
|
2019-08-28 01:45:31 +08:00
|
|
|
0004-update-tzdata.patch
|
2019-11-20 02:59:07 +08:00
|
|
|
0005-disable-tzdata.patch
|
2019-06-19 04:34:43 +08:00
|
|
|
)
|
2018-10-22 19:25:37 +08:00
|
|
|
|
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake_modules/FindGTest.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake_modules/FindLZ4.cmake")
|
2019-03-19 03:26:29 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake_modules/FindZSTD.cmake")
|
2018-10-22 19:25:37 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake_modules/FindProtobuf.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake_modules/FindSnappy.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake_modules/FindZLIB.cmake")
|
|
|
|
|
|
|
|
if(CMAKE_HOST_WIN32)
|
|
|
|
set(PROTOBUF_EXECUTABLE ${CURRENT_INSTALLED_DIR}/tools/protobuf/protoc.exe)
|
|
|
|
else()
|
|
|
|
set(PROTOBUF_EXECUTABLE ${CURRENT_INSTALLED_DIR}/tools/protobuf/protoc)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
set(BUILD_TOOLS OFF)
|
|
|
|
else()
|
|
|
|
set(BUILD_TOOLS ON)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
2019-11-20 02:59:07 +08:00
|
|
|
-DBUILD_TOOLS=${BUILD_TOOLS}
|
|
|
|
-DBUILD_CPP_TESTS=OFF
|
|
|
|
-DBUILD_JAVA=OFF
|
|
|
|
-DINSTALL_VENDORED_LIBS=OFF
|
|
|
|
-DBUILD_LIBHDFSPP=OFF
|
|
|
|
-DPROTOBUF_EXECUTABLE:FILEPATH=${PROTOBUF_EXECUTABLE}
|
|
|
|
-DSTOP_BUILD_ON_WARNING=OFF
|
|
|
|
-DENABLE_TEST=OFF
|
2018-10-22 19:25:37 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-11-20 02:59:07 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2018-10-22 19:25:37 +08:00
|
|
|
|
|
|
|
file(GLOB TOOLS ${CURRENT_PACKAGES_DIR}/bin/orc-*)
|
|
|
|
if(TOOLS)
|
|
|
|
file(COPY ${TOOLS} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/orc)
|
|
|
|
file(REMOVE ${TOOLS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(GLOB BINS ${CURRENT_PACKAGES_DIR}/bin/*)
|
|
|
|
if(NOT BINS)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
2019-11-20 02:59:07 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|