2020-06-12 12:31:24 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2017-04-11 21:58:14 +10:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO apache/xalan-c
|
2021-04-30 07:18:49 +08:00
|
|
|
REF 4055bb0c58e3053b04fcd0c68fdcda8f84411213 #1.12
|
|
|
|
SHA512 0d591f5a07dbc69050c7b696189c46a32e6dd7a80a302fd38dcc82f9454688729e361c4d5c3b0aacfc3acc7df78c0981ba54eb3ce82b1ca6566a30aa19648280
|
2019-08-07 11:46:34 -05:00
|
|
|
PATCHES
|
|
|
|
fix-win-deprecated-err.patch
|
2019-09-07 18:36:30 -05:00
|
|
|
fix-missing-dll-error.patch
|
2019-12-06 02:18:47 -08:00
|
|
|
fix-linux-no-bin.patch
|
2018-12-12 20:47:57 +00:00
|
|
|
)
|
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2019-12-21 11:34:24 -08:00
|
|
|
OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_ICU=ON
|
2018-12-12 20:47:57 +00:00
|
|
|
)
|
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
vcpkg_install_cmake()
|
2020-06-12 12:31:24 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES Xalan AUTO_CLEAN)
|
2017-04-11 21:58:14 +10:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
2019-09-07 18:36:30 -05:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/xalanc)
|
2017-04-11 21:58:14 +10:00
|
|
|
else()
|
2019-09-07 18:36:30 -05:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/XalanC TARGET_PATH share/xalanc)
|
2017-04-11 21:58:14 +10:00
|
|
|
endif()
|
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
# cleanup
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
|
|
|
)
|
2017-04-11 21:58:14 +10:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
# Handle copyright
|
2020-06-12 12:31:24 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2017-04-22 02:37:28 +10:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
vcpkg_copy_pdbs()
|
2021-10-28 00:19:28 +02:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|