2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-11-21 10:38:04 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO aubio/aubio
|
2019-05-22 12:00:24 +08:00
|
|
|
REF 0.4.9
|
|
|
|
SHA512 a22c7c581ce1f428270021591649273396e6dc222b3c7b3d46f5c4abf94a98be1ab89320cdbf1b6b60d4330eef23976439e3fc9e0f8d3cdd867dac4542fa48c9
|
2017-11-21 10:38:04 +08:00
|
|
|
HEAD_REF master
|
2017-06-20 06:31:34 +08:00
|
|
|
)
|
|
|
|
|
2017-06-20 18:16:23 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2017-06-20 06:31:34 +08:00
|
|
|
|
2021-03-26 03:36:00 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2021-06-16 01:27:52 +08:00
|
|
|
tools WITH_DEPENDENCIES
|
2021-03-26 03:36:00 +08:00
|
|
|
)
|
|
|
|
|
2021-09-09 05:58:24 +08:00
|
|
|
vcpkg_cmake_configure(
|
2017-06-20 17:52:02 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2021-03-26 03:36:00 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2017-06-29 04:56:24 +08:00
|
|
|
OPTIONS_RELEASE
|
2017-06-29 22:23:50 +08:00
|
|
|
-DTOOLS_INSTALLDIR=tools/aubio
|
|
|
|
-DBUILD_TOOLS=ON
|
2017-06-29 04:56:24 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DBUILD_TOOLS=OFF
|
2017-06-20 06:31:34 +08:00
|
|
|
)
|
2021-09-09 05:58:24 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-06-20 06:31:34 +08:00
|
|
|
|
|
|
|
# Handle copyright and credentials
|
2017-06-20 18:16:23 +08:00
|
|
|
file(COPY
|
|
|
|
${SOURCE_PATH}/COPYING
|
|
|
|
${SOURCE_PATH}/AUTHORS
|
|
|
|
${SOURCE_PATH}/ChangeLog
|
|
|
|
${SOURCE_PATH}/README.md
|
|
|
|
DESTINATION
|
2021-06-16 01:27:52 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/share/${PORT})
|
2017-06-20 06:31:34 +08:00
|
|
|
|
2017-06-20 17:52:02 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-06-16 01:27:52 +08:00
|
|
|
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|