2019-08-28 06:56:20 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO orocos-toolchain/log4cpp
|
|
|
|
REF v2.9.1
|
|
|
|
SHA512 5bd222c820a15c5d96587ac9fe864c3e2dc0fbce8389692be8dd41553ac0308002ad8d6f4ef3ef10af1d796f8ded410788d1a5d22f15505fac639da3f73e3518
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-install-targets.patch
|
2019-10-27 10:39:19 +08:00
|
|
|
Fix-StaticSupport.patch
|
2020-08-08 02:08:31 +08:00
|
|
|
fix-includepath.patch
|
2021-02-09 10:20:17 +08:00
|
|
|
fix-export-targets.patch
|
2019-08-28 06:56:20 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-08-28 06:56:20 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-08-28 06:56:20 +08:00
|
|
|
|
2021-10-27 07:03:33 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/${PORT})
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-08-28 06:56:20 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-02-09 10:20:17 +08:00
|
|
|
configure_file(
|
2023-03-08 06:14:52 +08:00
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/log4cpp-config.in.cmake"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/log4cpp-config.cmake"
|
2021-02-09 10:20:17 +08:00
|
|
|
@ONLY
|
|
|
|
)
|
|
|
|
|
2019-08-28 06:56:20 +08:00
|
|
|
# Handle copyright
|
2023-03-08 06:14:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|