aboutsummaryrefslogtreecommitdiff
path: root/ports/libsndfile
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libsndfile')
-rw-r--r--ports/libsndfile/CONTROL2
-rw-r--r--ports/libsndfile/portfile.cmake4
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/libsndfile/CONTROL b/ports/libsndfile/CONTROL
index 2547637a8..ed59ac139 100644
--- a/ports/libsndfile/CONTROL
+++ b/ports/libsndfile/CONTROL
@@ -1,5 +1,5 @@
Source: libsndfile
-Version: 1.0.29-8
+Version: 1.0.29-9
Description: Library to read, write and manipulate many soundfile types. Authored by Eric de Castro Lopo
Homepage: https://github.com/erikd/libsndfile
Default-Features: external-libs
diff --git a/ports/libsndfile/portfile.cmake b/ports/libsndfile/portfile.cmake
index 1e86fbffb..ce8f9427b 100644
--- a/ports/libsndfile/portfile.cmake
+++ b/ports/libsndfile/portfile.cmake
@@ -19,6 +19,9 @@ option(BUILD_EXECUTABLES "Build sndfile tools and install to folder tools" OFF)
if("external-libs" IN_LIST FEATURES)
set(SNDFILE_WITHOUT_EXTERNAL_LIBS OFF)
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ set(FLAC_EXPORT_DEFINITION "-DFLAC__NO_DLL")
+ endif()
else()
set(SNDFILE_WITHOUT_EXTERNAL_LIBS ON)
endif()
@@ -34,6 +37,7 @@ vcpkg_configure_cmake(
-DENABLE_STATIC_RUNTIME=${CRT_LIB_STATIC}
-DBUILD_STATIC_LIBS=${BUILD_STATIC}
-DDISABLE_EXTERNAL_LIBS=${SNDFILE_WITHOUT_EXTERNAL_LIBS}
+ -DCMAKE_C_FLAGS=${FLAC_EXPORT_DEFINITION}
OPTIONS_RELEASE
-DBUILD_PROGRAMS=${BUILD_EXECUTABLES}
OPTIONS_DEBUG