[mp3lame] fix crt linkage (#13390)

* [mp3lame] fix crt linkage

* Update portfile.cmake

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
This commit is contained in:
Matthias C. M. Troffaes 2020-09-09 20:27:33 +01:00 committed by GitHub
parent 8fdd0b7217
commit c4e3da7c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
Source: mp3lame
Version: 3.100-3
Version: 3.100
Port-Version: 4
Homepage: http://lame.sourceforge.net/
Description: LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL.

View File

@ -35,7 +35,7 @@ if(VCPKG_TARGET_IS_WINDOWS)
foreach(vcxproj ${vcxprojs})
file(READ "${SOURCE_PATH}/vc_solution/${vcxproj}" vcxproj_con)
if(NOT VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
if(NOT VCPKG_CRT_LINKAGE STREQUAL dynamic)
string(REPLACE "DLL</RuntimeLibrary>" "</RuntimeLibrary>" vcxproj_con "${vcxproj_con}")
endif()
@ -141,6 +141,6 @@ else()
endif()
file(COPY ${SOURCE_PATH}/include/lame.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/lame)
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/mp3lame/copyright COPYONLY)
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
configure_file(${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in ${CURRENT_PACKAGES_DIR}/share/mp3lame/mp3lame-config.cmake @ONLY)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/mp3lame)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})