2017-06-20 06:31:34 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/aubio-3c230fae309e9ea3298783368dd71bae6172359a)
|
2017-11-21 10:38:04 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO aubio/aubio
|
2018-12-19 06:39:50 +08:00
|
|
|
REF 0.4.8
|
|
|
|
SHA512 0422ec9ceb645dd5cdb1ca8b17f552edf9197dbf9c929ca75aacfb89f092c02db8b6d2b8aec567ddc1df5b310770de77cd941b45ed74700c3d3584924f39b576
|
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
|
|
|
|
2017-06-20 17:52:02 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
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
|
|
|
|
-DDISABLE_INSTALL_HEADERS=1
|
|
|
|
-DBUILD_TOOLS=OFF
|
2017-06-20 06:31:34 +08:00
|
|
|
)
|
2017-06-20 17:52:02 +08:00
|
|
|
vcpkg_install_cmake()
|
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
|
2017-06-20 06:31:34 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/share/aubio)
|
|
|
|
|
2017-06-20 17:52:02 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-07-13 06:03:17 +08:00
|
|
|
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/aubio)
|
2017-06-20 06:31:34 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/aubio/COPYING ${CURRENT_PACKAGES_DIR}/share/aubio/copyright)
|