2017-10-02 22:54:00 +05:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2023-08-16 01:31:44 +02:00
|
|
|
URLS "https://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-${VERSION}.tar.gz"
|
|
|
|
FILENAME "freexl-${VERSION}.tar.gz"
|
|
|
|
SHA512 663ccc321c2f0dcab8ad9255b2a77066c2046d531a0aa723fb114301fa27b53bf980787dd2548c46541036eceef988c5eedf2bec053adf628929470e67ddc17a
|
2017-10-02 22:54:00 +05:00
|
|
|
)
|
2019-10-07 19:35:13 +02:00
|
|
|
|
2023-04-13 18:13:15 +02:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2021-10-07 12:56:57 +02:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
|
|
|
PATCHES
|
2023-08-16 01:31:44 +02:00
|
|
|
dependencies.patch
|
|
|
|
subdirs.patch
|
2021-09-01 05:39:38 +02:00
|
|
|
)
|
|
|
|
|
2022-07-25 23:58:50 +02:00
|
|
|
vcpkg_configure_make(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
AUTOCONFIG
|
|
|
|
)
|
|
|
|
vcpkg_install_make()
|
2021-10-07 12:56:57 +02:00
|
|
|
|
2022-07-25 23:58:50 +02:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2023-08-16 01:31:44 +02: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 07:51:58 +10:00
|
|
|
endif()
|
|
|
|
endif()
|
2021-10-07 12:56:57 +02:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-09-01 05:39:38 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-08-16 01:31:44 +02:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|