2020-10-21 07:13:43 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-10-21 07:13:43 +08:00
|
|
|
REPO freetds/freetds
|
2022-05-14 06:46:37 +08:00
|
|
|
REF v1.3.10
|
2020-10-21 07:13:43 +08:00
|
|
|
HEAD_REF master
|
2022-05-14 06:46:37 +08:00
|
|
|
SHA512 78b494c04e3436bfdc4997e6f0196baef27246bb7ad825c487a16f247d13c99324a39d52bfe8f5306164ae3f5c7eb43ca83944b24a3ce6b4bcd733849b4064ad
|
|
|
|
PATCHES
|
|
|
|
disable-tests.patch
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2019-05-24 12:52:49 +08:00
|
|
|
|
2020-10-21 07:13:43 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
openssl WITH_OPENSSL
|
2022-05-14 06:46:37 +08:00
|
|
|
tools WITH_TOOLS
|
2020-10-21 07:13:43 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PERL)
|
|
|
|
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
2022-05-14 06:46:37 +08:00
|
|
|
vcpkg_add_to_path("${PERL_PATH}")
|
2020-10-21 07:13:43 +08:00
|
|
|
|
2022-06-02 08:13:53 +08:00
|
|
|
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")
|
2019-05-24 12:52:49 +08:00
|
|
|
|
2022-05-14 06:46:37 +08:00
|
|
|
set(_WCHAR_SUPPORT ON)
|
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
set(_WCHAR_SUPPORT OFF)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-08 00:34:47 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2022-05-14 06:46:37 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DENABLE_ODBC_WIDE=${_WCHAR_SUPPORT}
|
2019-05-24 12:52:49 +08:00
|
|
|
)
|
|
|
|
|
2022-05-14 06:46:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-24 12:52:49 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-05-14 06:46:37 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES bsqldb bsqlodbc datacopy defncopy freebcp tdspool tsql AUTO_CLEAN)
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/etc")
|
|
|
|
file(INSTALL "${CURRENT_PACKAGES_DIR}/etc" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/etc")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/etc" "${CURRENT_PACKAGES_DIR}/debug/etc")
|
2019-05-24 12:52:49 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2022-05-14 06:46:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2019-05-24 12:52:49 +08:00
|
|
|
endif()
|
|
|
|
|
2022-05-14 06:46:37 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|