2020-06-02 07:20:12 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rafat/wavelib
|
2021-08-31 01:21:45 +08:00
|
|
|
REF a92456d2e20451772dd76c2a0a3368537ee94184
|
|
|
|
SHA512 d14ebc0d96e86d9226fa346cb6ef157b2949985dfedf4228dd4356ccacaac48fde47edfcba31e7455b25dc95c7a1cb148ad6845143c17ae5972659c98e683865
|
2020-06-02 07:20:12 +08:00
|
|
|
HEAD_REF master
|
2021-11-26 15:19:12 +08:00
|
|
|
PATCHES
|
|
|
|
disable-test.patch
|
2020-06-02 07:20:12 +08:00
|
|
|
)
|
|
|
|
|
2021-08-31 01:21:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-11-26 15:19:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-06-02 07:20:12 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_UT=OFF
|
|
|
|
)
|
|
|
|
|
2021-08-31 01:21:45 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-06-02 07:20:12 +08:00
|
|
|
|
2021-08-31 01:21:45 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2020-06-02 07:20:12 +08:00
|
|
|
|
2021-08-31 01:21:45 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-06-02 07:20:12 +08:00
|
|
|
|
2021-08-31 01:21:45 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|