2021-03-30 01:08:29 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO berndporr/iir1
|
2023-07-07 01:41:40 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 e69b79ba48aa5d5ec2ddb0a31461ac4c15b0489df80fddc1f1f8adc143726fa189dc0dd94a0ed2bb7aa73712f953e27b345a762120ab2d10f54f57a868f0ea42
|
2021-03-30 01:08:29 +08:00
|
|
|
HEAD_REF master
|
2022-04-26 08:25:05 +08:00
|
|
|
PATCHES
|
2023-07-07 01:41:40 +08:00
|
|
|
fix-shared-lib.patch
|
2021-03-30 01:08:29 +08:00
|
|
|
)
|
|
|
|
|
2023-07-07 01:41:40 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" IIR1_INSTALL_STATIC)
|
|
|
|
|
2021-11-16 06:35:54 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-04-26 08:25:05 +08:00
|
|
|
OPTIONS
|
2023-07-07 01:41:40 +08:00
|
|
|
-DIIR1_INSTALL_STATIC=${IIR1_INSTALL_STATIC}
|
|
|
|
-DIIR1_BUILD_TESTING=OFF
|
|
|
|
-DIIR1_BUILD_DEMO=OFF
|
2021-03-30 01:08:29 +08:00
|
|
|
)
|
|
|
|
|
2021-11-16 06:35:54 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-03-30 01:08:29 +08:00
|
|
|
|
2022-04-08 00:59:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME iir CONFIG_PATH lib/cmake/iir)
|
2021-03-30 01:08:29 +08:00
|
|
|
|
2023-07-07 01:41:40 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-03-30 01:08:29 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2021-11-16 06:35:54 +08:00
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|