mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[soxr] Add features, fix VCRT runtime linkage (#20797)
* Add features lsr-bindings and openmp to soxr, set BUILD_SHARED_RUNTIME * Update git-tree hash * Convert tabs to spaces * Update git-tree hash * Use string(COMPARE * Update git-tree hash Co-authored-by: chausner <chausner@users.noreply.github.com>
This commit is contained in:
parent
e10f7850fe
commit
824fbe62f6
@ -3,27 +3,35 @@ vcpkg_from_sourceforge(
|
||||
REPO soxr
|
||||
FILENAME "soxr-0.1.3-Source.tar.xz"
|
||||
SHA512 f4883ed298d5650399283238aac3dbe78d605b988246bea51fa343d4a8ce5ce97c6e143f6c3f50a3ff81795d9c19e7a07217c586d4020f6ced102aceac46aaa8
|
||||
PATCHES
|
||||
001_initialize-resampler.patch
|
||||
002_disable_warning.patch
|
||||
003_detect_arm_on_windows.patch
|
||||
PATCHES
|
||||
001_initialize-resampler.patch
|
||||
002_disable_warning.patch
|
||||
003_detect_arm_on_windows.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DWITH_OPENMP=OFF
|
||||
-DWITH_LSR_BINDINGS=OFF
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
openmp WITH_OPENMP
|
||||
lsr-bindings WITH_LSR_BINDINGS
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" BUILD_SHARED_RUNTIME)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/soxr RENAME copyright)
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_SHARED_RUNTIME=${BUILD_SHARED_RUNTIME}
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/doc)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/doc)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENCE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/doc")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/doc")
|
||||
|
@ -1,7 +1,21 @@
|
||||
{
|
||||
"name": "soxr",
|
||||
"version-string": "0.1.3",
|
||||
"port-version": 4,
|
||||
"version": "0.1.3",
|
||||
"port-version": 5,
|
||||
"description": "High quality audio resampling",
|
||||
"homepage": "https://sourceforge.net/projects/soxr/"
|
||||
"homepage": "https://sourceforge.net/projects/soxr/",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"lsr-bindings": {
|
||||
"description": "Include a `libsamplerate'-like interface."
|
||||
},
|
||||
"openmp": {
|
||||
"description": "Include OpenMP threading."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6294,7 +6294,7 @@
|
||||
},
|
||||
"soxr": {
|
||||
"baseline": "0.1.3",
|
||||
"port-version": 4
|
||||
"port-version": 5
|
||||
},
|
||||
"spaceland": {
|
||||
"baseline": "7.8.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "0ea0e47df2ab6381e68ffae49c05c4de0a37f665",
|
||||
"version": "0.1.3",
|
||||
"port-version": 5
|
||||
},
|
||||
{
|
||||
"git-tree": "5719977bf7a0fcc0ac88151327dcddda23648594",
|
||||
"version-string": "0.1.3",
|
||||
|
Loading…
x
Reference in New Issue
Block a user