aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/libflac/CONTROL2
-rw-r--r--ports/libflac/portfile.cmake4
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/libflac/CONTROL b/ports/libflac/CONTROL
index 529ea161a..4af8f1576 100644
--- a/ports/libflac/CONTROL
+++ b/ports/libflac/CONTROL
@@ -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
diff --git a/ports/libflac/portfile.cmake b/ports/libflac/portfile.cmake
index dfaab66b3..4f1ca9a3a 100644
--- a/ports/libflac/portfile.cmake
+++ b/ports/libflac/portfile.cmake
@@ -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