[sdl2-mixer] Fix link mpg123 error (#22049)

* [sdl2-mixer] Fix link mpg123 error

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
LilyWangLL 2021-12-18 02:39:42 +08:00 committed by GitHub
parent 1bca1f0203
commit 50fd3d9957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 6 deletions

View File

@ -12,8 +12,9 @@ set(SDL_MIXER_DEFINES MUSIC_WAV)
# MP3 support
if(SDL_MIXER_ENABLE_MP3)
find_package(mpg123 CONFIG REQUIRED)
set(MPG123_LIBRARY MPG123::libmpg123)
find_path(MPG123_INCLUDE_DIR mpg123.h)
find_library(MPG123_LIBRARY NAMES libmpg123 mpg123)
list(APPEND SDL_MIXER_INCLUDES ${MPG123_INCLUDE_DIR})
list(APPEND SDL_MIXER_DEFINES MUSIC_MP3_MPG123)
list(APPEND SDL_MIXER_LIBRARIES ${MPG123_LIBRARY})
if (SDL_DYNAMIC_LOAD)
@ -24,8 +25,9 @@ endif()
# FLAC support
if(SDL_MIXER_ENABLE_FLAC)
find_package(flac CONFIG REQUIRED)
set(FLAC_LIBRARY FLAC::FLAC)
find_path(FLAC_INCLUDE_DIR FLAC/all.h)
find_library(FLAC_LIBRARY FLAC)
list(APPEND SDL_MIXER_INCLUDES ${FLAC_INCLUDE_DIR})
list(APPEND SDL_MIXER_DEFINES MUSIC_FLAC)
list(APPEND SDL_MIXER_LIBRARIES ${FLAC_LIBRARY})
if (SDL_DYNAMIC_LOAD)

View File

@ -1,7 +1,7 @@
{
"name": "sdl2-mixer",
"version": "2.0.4",
"port-version": 15,
"port-version": 16,
"description": "Multi-channel audio mixer library for SDL.",
"homepage": "https://www.libsdl.org/projects/SDL_mixer",
"dependencies": [

View File

@ -6222,7 +6222,7 @@
},
"sdl2-mixer": {
"baseline": "2.0.4",
"port-version": 15
"port-version": 16
},
"sdl2-net": {
"baseline": "2.0.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "23eb6562f5153eb39a84eb2673d5dc9bd2ce78aa",
"version": "2.0.4",
"port-version": 16
},
{
"git-tree": "981b981d938287223eb7ebbe365cfbb371ba71ef",
"version": "2.0.4",