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}"
|
2024-09-26 22:41:09 +08:00
|
|
|
SHA512 2b0658a621cdfb57796cf2fea5411975b442af4af267bce2f613ae53f43572f208fdea59d7ea0178e9984e311c406f289166789aa423505ac8ed2b889ddc9f64
|
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)
|