2022-04-15 02:08:23 +08:00
|
|
|
set(ILBC_VERSION 3.0.4)
|
|
|
|
vcpkg_from_github(
|
2020-12-31 14:37:04 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-04-15 02:08:23 +08:00
|
|
|
REPO TimothyGu/libilbc
|
|
|
|
REF cd064edf2c6c104a4e1fd87b34fd24cfa6dbe401
|
|
|
|
SHA512 323d32dbd54d5ef624940432bf19c29f5ead6f40bc84aba4261f067dfdc40cf4000e383f4dca65cd3b745a354a119a9e515949a1466af89c300cd7bf95991675
|
|
|
|
PATCHES
|
|
|
|
do-not-build-ilbc_test.patch
|
|
|
|
absl.patch
|
2020-12-31 14:37:04 +08:00
|
|
|
)
|
|
|
|
|
2022-04-15 02:08:23 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-31 14:37:04 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_INSTALL_DOCDIR=share/${PORT}
|
|
|
|
)
|
|
|
|
|
2022-04-15 02:08:23 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-12-31 14:37:04 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2022-04-15 02:08:23 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/ilbc_export.h" "#ifdef ILBC_STATIC_DEFINE" "#if 1")
|
2020-12-31 14:37:04 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2022-04-15 02:08:23 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|