[libflac] Disable man pages (#26016)

* [libflac] Remove documentation

* version

* [libflac] Disable man pages

* version

* man already removed

* version
This commit is contained in:
Thomas1664 2022-07-29 00:19:48 +02:00 committed by GitHub
parent cf2e61b0f7
commit 768932ab5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 9 deletions

View File

@ -19,12 +19,8 @@ else()
endif()
if("asm" IN_LIST FEATURES)
if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
message(FATAL_ERROR "Feature asm only supports x86 architecture.")
endif()
VCPKG_FIND_ACQUIRE_PROGRAM(NASM)
GET_FILENAME_COMPONENT(NASM_PATH ${NASM} DIRECTORY)
GET_FILENAME_COMPONENT(NASM_PATH "${NASM}" DIRECTORY)
vcpkg_add_to_path("${NASM_PATH}")
endif()
@ -35,12 +31,15 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
OPTIONS
${FEATURE_OPTIONS}
-DBUILD_PROGRAMS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_DOCS=OFF
-DBUILD_TESTING=OFF
-DWITH_STACK_PROTECTOR=${WITH_STACK_PROTECTOR})
-DWITH_STACK_PROTECTOR=${WITH_STACK_PROTECTOR}
-DINSTALL_MANPAGES=OFF
)
vcpkg_cmake_install()
@ -50,6 +49,7 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/LICENSE")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/FLAC/export.h"

View File

@ -1,6 +1,7 @@
{
"name": "libflac",
"version": "1.3.4",
"port-version": 1,
"description": "Library for manipulating FLAC files",
"homepage": "https://xiph.org/flac/",
"license": "GFDL-1.2-or-later",
@ -17,7 +18,8 @@
],
"features": {
"asm": {
"description": "Use any assembly optimization routines"
"description": "Use any assembly optimization routines",
"supports": "x86"
}
}
}

View File

@ -3622,7 +3622,7 @@
},
"libflac": {
"baseline": "1.3.4",
"port-version": 0
"port-version": 1
},
"libfort": {
"baseline": "0.4.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6931704180602d16a54e15759cd6c04739d40699",
"version": "1.3.4",
"port-version": 1
},
{
"git-tree": "a3dff2074f8f7a8ac9d8e9c5e78d8cae8538f3ef",
"version": "1.3.4",