aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2021-06-11 02:23:14 +0800
committerGitHub <noreply@github.com>2021-06-10 11:23:14 -0700
commit6982e51269de3333478f3dc24dc9ed2e7b9e8ca2 (patch)
tree558effd1ed2b3233ee83702d0ce4f218229f12c0
parentf51c70369b2445f14724f28a4c1694b947fa08f4 (diff)
downloadvcpkg-6982e51269de3333478f3dc24dc9ed2e7b9e8ca2.tar.gz
vcpkg-6982e51269de3333478f3dc24dc9ed2e7b9e8ca2.zip
[aubio] Fix definitions issues when build with dependencies (#17353)
* [aubio] Fix definitions issues when build with dependencies * Update baseline version * Update the dependency * Set default-features to false * Fix link error * Update the baseline version * Update the baseline version * Update the baseline version * Unset the debug postfix * Update the baseline version * Remove unused dependency * Update the baseline version
-rw-r--r--ports/aubio/CMakeLists.txt16
-rw-r--r--ports/aubio/portfile.cmake5
-rw-r--r--ports/aubio/vcpkg.json14
-rw-r--r--versions/a-/aubio.json5
-rw-r--r--versions/baseline.json2
5 files changed, 28 insertions, 14 deletions
diff --git a/ports/aubio/CMakeLists.txt b/ports/aubio/CMakeLists.txt
index 2e1331819..1b59d4d8a 100644
--- a/ports/aubio/CMakeLists.txt
+++ b/ports/aubio/CMakeLists.txt
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.8)
project(aubio C)
option(WITH_DEPENDENCIES "Adds extra dependencies" ON)
+option(BUILD_TOOLS "Build and install tools" ON)
add_definitions(
-DHAVE_STDLIB_H=1
@@ -12,18 +13,23 @@ add_definitions(
-DHAVE_STDARG_H=1
-DHAVE_ERRNO_H=1
-DHAVE_C99_VARARGS_MACROS=1
-
-D_CRT_SECURE_NO_WARNINGS=1
)
-set(CMAKE_DEBUG_POSTFIX d)
-
-option(BUILD_TOOLS "Build and install tools" ON)
+if(WITH_DEPENDENCIES)
+ add_definitions(
+ -DHAVE_SNDFILE=1
+ -DHAVE_WAVWRITE=1
+ -DHAVE_WAVREAD=1
+ -DHAVE_LIBAV=1
+ -DHAVE_SWRESAMPLE=1
+ )
+endif()
set(TOOLS_INSTALLDIR "bin" CACHE STRING "Target directory for installed tools")
if(WITH_DEPENDENCIES)
- find_package(FFMPEG COMPONENTS avcodec avutil avdevice avfilter avformat swresample REQUIRED)
+ find_package(FFMPEG COMPONENTS avcodec avutil avformat swresample REQUIRED)
find_package(BZip2 REQUIRED)
find_package(LibLZMA REQUIRED)
find_package(SndFile REQUIRED)
diff --git a/ports/aubio/portfile.cmake b/ports/aubio/portfile.cmake
index 5d67f152a..c1cab5379 100644
--- a/ports/aubio/portfile.cmake
+++ b/ports/aubio/portfile.cmake
@@ -13,11 +13,6 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
tools WITH_DEPENDENCIES
- tools HAVE_SNDFILE
- tools HAVE_WAVWRITE
- tools HAVE_WAVREAD
- tools HAVE_LIBAV
- tools HAVE_SWRESAMPLE
)
vcpkg_configure_cmake(
diff --git a/ports/aubio/vcpkg.json b/ports/aubio/vcpkg.json
index b7d04f4c4..ac34c872d 100644
--- a/ports/aubio/vcpkg.json
+++ b/ports/aubio/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "aubio",
- "version-string": "0.4.9",
- "port-version": 4,
+ "version-semver": "0.4.9",
+ "port-version": 5,
"description": "Aubio is a tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.",
"homepage": "https://github.com/aubio/aubio",
"default-features": [
@@ -12,7 +12,15 @@
"description": "Build tools and add extra dependencies",
"dependencies": [
"bzip2",
- "ffmpeg",
+ {
+ "name": "ffmpeg",
+ "default-features": false,
+ "features": [
+ "avcodec",
+ "avformat",
+ "swresample"
+ ]
+ },
"libflac",
"liblzma",
"libogg",
diff --git a/versions/a-/aubio.json b/versions/a-/aubio.json
index 88fd28ab7..7e9810d14 100644
--- a/versions/a-/aubio.json
+++ b/versions/a-/aubio.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "229c53eddabe48fa718f95c3dd3094a694770a19",
+ "version-semver": "0.4.9",
+ "port-version": 5
+ },
+ {
"git-tree": "a5fd622dc9d70a1f4cca1e6bc09829e1844b7e0f",
"version-string": "0.4.9",
"port-version": 4
diff --git a/versions/baseline.json b/versions/baseline.json
index b346ec608..7d671275c 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -202,7 +202,7 @@
},
"aubio": {
"baseline": "0.4.9",
- "port-version": 4
+ "port-version": 5
},
"audiofile": {
"baseline": "1.0.7",