2019-05-02 22:57:43 -07:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-11-21 03:38:04 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO aubio/aubio
|
2022-12-29 07:59:44 +11:00
|
|
|
REF 8a05420e5dd8c7b8b2447f82dc919765876511b3
|
|
|
|
SHA512 080775d7b972d31d88671b4a2917e926bc933b7bdc50fc56a4a8e3174b4544fd6fd416c06b064488cea777cbdd4eea63d0b35eca0025f53ab71da0ba8b64824f
|
2017-11-21 03:38:04 +01:00
|
|
|
HEAD_REF master
|
2017-06-20 00:31:34 +02:00
|
|
|
)
|
|
|
|
|
2022-05-17 20:15:06 +02:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2017-06-20 00:31:34 +02:00
|
|
|
|
2021-03-25 20:36:00 +01:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2021-06-16 01:27:52 +08:00
|
|
|
tools WITH_DEPENDENCIES
|
2021-03-25 20:36:00 +01:00
|
|
|
)
|
|
|
|
|
2021-09-08 23:58:24 +02:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-17 20:15:06 +02:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-03-25 20:36:00 +01:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2017-06-28 13:56:24 -07:00
|
|
|
OPTIONS_RELEASE
|
2017-06-29 16:23:50 +02:00
|
|
|
-DTOOLS_INSTALLDIR=tools/aubio
|
|
|
|
-DBUILD_TOOLS=ON
|
2017-06-28 13:56:24 -07:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DBUILD_TOOLS=OFF
|
2017-06-20 00:31:34 +02:00
|
|
|
)
|
2021-09-08 23:58:24 +02:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-06-20 00:31:34 +02:00
|
|
|
|
2017-06-20 02:52:02 -07:00
|
|
|
vcpkg_copy_pdbs()
|
2022-12-29 07:59:44 +11:00
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES aubiomfcc aubionotes aubioonset aubiopitch aubioquiet aubiotrack
|
|
|
|
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/tools/aubio
|
|
|
|
AUTO_CLEAN)
|
|
|
|
endif()
|
2022-05-17 20:15:06 +02:00
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|