aboutsummaryrefslogtreecommitdiff
path: root/ports/libsndfile
diff options
context:
space:
mode:
authorevpobr <evpobr@gmail.com>2020-05-21 23:19:21 +0500
committerGitHub <noreply@github.com>2020-05-21 11:19:21 -0700
commit875821cd801d71208b294e5faf83fe4f6564a3eb (patch)
tree95b5f0704455fa5ea98f566ddb162604547e3060 /ports/libsndfile
parent27c6c9420277c533cc4333bdd880f9862012cb72 (diff)
downloadvcpkg-875821cd801d71208b294e5faf83fe4f6564a3eb.tar.gz
vcpkg-875821cd801d71208b294e5faf83fe4f6564a3eb.zip
[libflac] Update to 1.3.3-1 (#11152)
Update to ce6dd6b which has the following benign changes compared to 1.3.3 proper * `std::`-ify a bunch of C library stuff * C-cast -> `static_cast` or `reinterpret_cast` * build system changes * `unsigned` -> `uint32_t` * removing UB in some shifts * better support for powerPC and Windows * Change out `cos(double)` for `cosf(float)` in C * Correct `%d` to `%u` in printf
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