mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[libflac] Update to 1.3.4 (#24399)
* [libflac] Update to 1.3.4 * Fix usage issue * Modify format Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
parent
07b9eeecd2
commit
ee0bf4729a
@ -1,8 +1,8 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO xiph/flac
|
||||
REF ce6dd6b5732e319ef60716d9cc9af6a836a4011a
|
||||
SHA512 d0d3b5451f8d74aa0a0832fbe95cca55597ce9654765a95adaac98ecd0da9e803b98551a40a3fb3fd5b86bc5f40cd1a791127c03da5322e7f01e7fa761171a21
|
||||
REF 1151c93e992bb8c7c6394e04aa880d711c531c7f #1.3.4
|
||||
SHA512 ebf8de3dbd8fc2153af2f4a05ecc04817570233c30e0ec1fbdbc99f810860801b951248ca6404152cba4038f5839985f4076bcee477c00fd23bd583a45b89b17
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
uwp-library-console.patch
|
||||
@ -29,12 +29,12 @@ if("asm" IN_LIST FEATURES)
|
||||
endif()
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
asm WITH_ASM
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS ${FEATURE_OPTIONS}
|
||||
-DBUILD_PROGRAMS=OFF
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
@ -42,12 +42,10 @@ vcpkg_configure_cmake(
|
||||
-DBUILD_TESTING=OFF
|
||||
-DWITH_STACK_PROTECTOR=${WITH_STACK_PROTECTOR})
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME FLAC CONFIG_PATH share/FLAC/cmake)
|
||||
|
||||
vcpkg_fixup_cmake_targets(
|
||||
CONFIG_PATH share/FLAC/cmake
|
||||
TARGET_PATH share/FLAC
|
||||
)
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
@ -72,18 +70,15 @@ else()
|
||||
"#if 1"
|
||||
)
|
||||
endif()
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/flac.pc" "Version:" "Version: 1.3.3")
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/flac.pc" " -lm" "")
|
||||
endif()
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/flac++.pc" "Version:" "Version: 1.3.3")
|
||||
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac.pc")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac.pc" "Version:" "Version: 1.3.3")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac++.pc" "Version:" "Version: 1.3.3")
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
|
||||
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac.pc")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac.pc" " -lm" "")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
# This license (BSD) is relevant only for library - if someone would want to install
|
||||
|
@ -1,11 +1,19 @@
|
||||
{
|
||||
"name": "libflac",
|
||||
"version": "1.3.3",
|
||||
"port-version": 7,
|
||||
"version": "1.3.4",
|
||||
"description": "Library for manipulating FLAC files",
|
||||
"homepage": "https://xiph.org/flac/",
|
||||
"license": "GFDL-1.2-or-later",
|
||||
"dependencies": [
|
||||
"libogg"
|
||||
"libogg",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"asm": {
|
||||
|
@ -3553,8 +3553,8 @@
|
||||
"port-version": 1
|
||||
},
|
||||
"libflac": {
|
||||
"baseline": "1.3.3",
|
||||
"port-version": 7
|
||||
"baseline": "1.3.4",
|
||||
"port-version": 0
|
||||
},
|
||||
"libfort": {
|
||||
"baseline": "0.4.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "a3dff2074f8f7a8ac9d8e9c5e78d8cae8538f3ef",
|
||||
"version": "1.3.4",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "040c261fb123656fc61f659e887a6db0fabc275e",
|
||||
"version": "1.3.3",
|
||||
|
Loading…
x
Reference in New Issue
Block a user