[libflac] require NASM for libflac[asm] (#14465)

* require NASM for libflac[asm]

* Increment port version number

* Update ports/libflac/portfile.cmake

Co-authored-by: BergemannC <CBergemann@nordex-online.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
This commit is contained in:
cbergemann 2020-11-10 18:34:50 +01:00 committed by GitHub
parent 74844c7546
commit b24be705e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Source: libflac
Version: 1.3.3
Port-Version: 4
Port-Version: 5
Homepage: https://xiph.org/flac/
Description: Library for manipulating FLAC files
Build-Depends: libogg

View File

@ -22,6 +22,10 @@ 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)
vcpkg_add_to_path("${NASM_PATH}")
endif()
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS