2021-10-07 18:56:57 +08:00
|
|
|
set(FREEXL_VERSION_STR "1.0.6")
|
2019-10-05 22:51:07 +08:00
|
|
|
|
2017-10-03 01:54:00 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2021-10-07 18:56:57 +08:00
|
|
|
URLS "https://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-${FREEXL_VERSION_STR}.tar.gz"
|
2019-06-27 05:51:58 +08:00
|
|
|
FILENAME "freexl-${FREEXL_VERSION_STR}.tar.gz"
|
2021-10-07 18:56:57 +08:00
|
|
|
SHA512 efbbe261e57d5c05167ad8e1d5a5b348a7e702c0a4030b18dd2a8c60a38332caccbb073ff604bdf5bafac827310b41c7b79f9fa519ea512d6de2eafd9c1f71f6
|
2017-10-03 01:54:00 +08:00
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2021-09-01 11:39:38 +08:00
|
|
|
vcpkg_extract_source_archive_ex(
|
2021-10-07 18:56:57 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
PATCHES
|
|
|
|
fix-makefiles.patch
|
|
|
|
fix-sources.patch
|
|
|
|
fix-pc-file.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)
|
2021-10-07 18:56:57 +08:00
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
|
|
set(includedir [[${prefix}/include]])
|
|
|
|
set(outfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/freexl.pc")
|
2022-07-26 05:58:50 +08:00
|
|
|
vcpkg_replace_string("${outfile}" " -lm" " -liconv -lcharset")
|
2021-10-07 18:56:57 +08:00
|
|
|
endif()
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
|
|
set(includedir [[${prefix}/../include]])
|
|
|
|
set(outfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/freexl.pc")
|
2022-07-26 05:58:50 +08:00
|
|
|
vcpkg_replace_string("${outfile}" " -lm" " -liconv -lcharset")
|
2019-06-27 05:51:58 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
2017-10-03 01:54:00 +08:00
|
|
|
|
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")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|