diff options
| author | evpobr <evpobr@gmail.com> | 2021-07-01 01:06:48 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-30 13:06:48 -0700 |
| commit | 5edbbf1a70a0a502e6362f51bf875b96469ed807 (patch) | |
| tree | 689d916074d5f9189f5851ecd0243656c62e0792 /ports/libopenmpt | |
| parent | d2717c38db071506b13f9b0afb41a96e92bf6959 (diff) | |
| download | vcpkg-5edbbf1a70a0a502e6362f51bf875b96469ed807.tar.gz vcpkg-5edbbf1a70a0a502e6362f51bf875b96469ed807.zip | |
[mpg123] Upgrade to 1.28.0 (#18403)
* [mpg123] Upgrade to 1.28.0
* [libopenmpt] Upgrade to 2017-01-28-cf2390140-2
* [mpg123] Disable UWP port
* Fix libmpg123 UWP build
* Fix libout123 UWP build
* Fix libsyn123 UWP build
* Update ports/libopenmpt/CMakeLists.txt
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* Update ports/libopenmpt/CMakeLists.txt
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* [libopenmpt] Update libopenmpt.json
* [mpg123] Separate UWP patches
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'ports/libopenmpt')
| -rw-r--r-- | ports/libopenmpt/CMakeLists.txt | 46 | ||||
| -rw-r--r-- | ports/libopenmpt/vcpkg.json | 2 |
2 files changed, 16 insertions, 32 deletions
diff --git a/ports/libopenmpt/CMakeLists.txt b/ports/libopenmpt/CMakeLists.txt index e1aa118e4..6f4ad1b57 100644 --- a/ports/libopenmpt/CMakeLists.txt +++ b/ports/libopenmpt/CMakeLists.txt @@ -11,21 +11,11 @@ endif() find_package(ZLIB REQUIRED) -find_path(MPG123_INCLUDE_DIR NAMES mpg123.h) -find_library(MPG123_LIBRARY NAMES mpg123 libmpg123) +find_package(MPG123 REQUIRED) +find_package(Vorbis REQUIRED) +find_package(FLAC REQUIRED) -find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h) -find_path(OGG_INCLUDE_DIR ogg/ogg.h) - -find_library(OGG_LIBRARY NAMES ogg) -find_library(VORBIS_LIBRARY NAMES vorbis) -find_library(VORBISFILE_LIBRARY NAMES vorbisfile) - -find_path(FLAC_INCLUDE_DIR FLAC/all.h) -find_library(FLAC_LIBRARY NAMES FLAC flac) - -find_path(PORTAUDIO_INCLUDE_DIR NAMES portaudio.h) -find_library(PORTAUDIO_LIBRARY NAMES portaudio) +find_package(portaudio REQUIRED) set( lib_headers @@ -52,11 +42,6 @@ include_directories( sounddsp soundlib openmpt123 - ${MPG123_INCLUDE_DIR} - ${VORBIS_INCLUDE_DIR} - ${OGG_INCLUDE_DIR} - ${FLAC_INCLUDE_DIR} - ${PORTAUDIO_INCLUDE_DIR} ) set( @@ -242,28 +227,27 @@ endif() target_link_libraries( libopenmpt PRIVATE - ${OGG_LIBRARY} - ${MPG123_LIBRARY} - ${VORBISFILE_LIBRARY} - ${VORBIS_LIBRARY} - ${VORBISFILE_LIBRARY} + MPG123::libmpg123 + Vorbis::vorbisfile + FLAC::FLAC ZLIB::ZLIB ) +if(BUILD_SHARED_LIBS) + set(PORTAUDIO_TARGET portaudio) +else() + set(PORTAUDIO_TARGET portaudio_static) +endif() + target_link_libraries( openmpt123 PRIVATE libopenmpt - ${OGG_LIBRARY} - ${MPG123_LIBRARY} - ${VORBISFILE_LIBRARY} - ${VORBIS_LIBRARY} - ${VORBISFILE_LIBRARY} - ${FLAC_LIBRARY} - ${PORTAUDIO_LIBRARY} Winmm ZLIB::ZLIB + ${PORTAUDIO_TARGET} ) + install( TARGETS libopenmpt RUNTIME DESTINATION bin diff --git a/ports/libopenmpt/vcpkg.json b/ports/libopenmpt/vcpkg.json index 18c3bf100..3668ed848 100644 --- a/ports/libopenmpt/vcpkg.json +++ b/ports/libopenmpt/vcpkg.json @@ -1,7 +1,7 @@ { "name": "libopenmpt", "version-string": "2017-01-28-cf2390140", - "port-version": 1, + "port-version": 2, "description": "a library to render tracker music", "homepage": "https://github.com/OpenMPT/openmpt", "supports": "!uwp", |
