[portaudio]: fix Linux build (#5678)

* [portaudio]: fix Linux build

Wrap some Win specific stuff in an if (WIN32)

Fixes #4526

* [portaudio] Bump CONTROL version
This commit is contained in:
Todd 2019-03-15 12:23:02 -05:00 committed by Victor Romero
parent 830087d679
commit 532528903c
2 changed files with 15 additions and 15 deletions

View File

@ -1,3 +1,3 @@
Source: portaudio
Version: 19.0.6.00-4
Version: 19.0.6.00-5
Description: PortAudio Portable Cross-platform Audio I/O API PortAudio is a free, cross-platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is intended to promote the exchange of audio software between developers on different platforms. Many applications use PortAudio for Audio I/O.

View File

@ -33,6 +33,7 @@ vcpkg_install_cmake()
# Remove static builds from dynamic builds and otherwise
# Remove x86 and x64 from resulting files
if (WIN32)
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
file (REMOVE ${CURRENT_PACKAGES_DIR}/lib/portaudio_static_${VCPKG_TARGET_ARCHITECTURE}.lib)
file (REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio_static_${VCPKG_TARGET_ARCHITECTURE}.lib)
@ -42,13 +43,12 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
else ()
file (RENAME ${CURRENT_PACKAGES_DIR}/lib/portaudio_static_${VCPKG_TARGET_ARCHITECTURE}.lib ${CURRENT_PACKAGES_DIR}/lib/portaudio.lib)
file (RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio_static_${VCPKG_TARGET_ARCHITECTURE}.lib ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio.lib)
file (REMOVE ${CURRENT_PACKAGES_DIR}/lib/portaudio_${VCPKG_TARGET_ARCHITECTURE}.lib)
file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
file (REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio_${VCPKG_TARGET_ARCHITECTURE}.lib)
file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
endif ()
endif ()
vcpkg_copy_pdbs()
# Handle copyright