2017-10-03 01:54:00 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2023-08-16 07:31:44 +08:00
|
|
|
URLS "https://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-${VERSION}.tar.gz"
|
|
|
|
FILENAME "freexl-${VERSION}.tar.gz"
|
|
|
|
SHA512 663ccc321c2f0dcab8ad9255b2a77066c2046d531a0aa723fb114301fa27b53bf980787dd2548c46541036eceef988c5eedf2bec053adf628929470e67ddc17a
|
2017-10-03 01:54:00 +08:00
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2021-10-07 18:56:57 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
|
|
|
PATCHES
|
2023-08-16 07:31:44 +08:00
|
|
|
dependencies.patch
|
|
|
|
subdirs.patch
|
2021-09-01 11:39:38 +08:00
|
|
|
)
|
|
|
|
|
2022-07-26 05:58:50 +08:00
|
|
|
vcpkg_configure_make(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
AUTOCONFIG
|
|
|
|
)
|
|
|
|
vcpkg_install_make()
|
2021-10-07 18:56:57 +08:00
|
|
|
|
2022-07-26 05:58:50 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2023-08-16 07:31:44 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/freexl.pc" " -lm" " -liconv -lcharset")
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/freexl.pc" " -lm" " -liconv -lcharset")
|
2019-06-27 05:51:58 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
2021-10-07 18:56:57 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-09-01 11:39:38 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-08-16 07:31:44 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|