[sdl2-mixer] Fix usage (#26083)

* [sdl2-mixer] Fix usage

* version

* format

* version

* Fix usage

* version
This commit is contained in:
Thomas1664 2022-08-04 19:51:24 +02:00 committed by GitHub
parent 592158c502
commit 59b861ab16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 1 deletions

View File

@ -36,4 +36,5 @@ vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

4
ports/sdl2-mixer/usage Normal file
View File

@ -0,0 +1,4 @@
sdl2-mixer provides CMake targets:
find_package(SDL2_mixer CONFIG REQUIRED)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:SDL2_mixer::SDL2_mixer>,SDL2_mixer::SDL2_mixer,SDL2_mixer::SDL2_mixer-static>)

View File

@ -1,6 +1,7 @@
{
"name": "sdl2-mixer",
"version": "2.6.1",
"port-version": 1,
"description": "Multi-channel audio mixer library for SDL.",
"homepage": "https://github.com/libsdl-org/SDL_mixer",
"license": "Zlib",

View File

@ -6510,7 +6510,7 @@
},
"sdl2-mixer": {
"baseline": "2.6.1",
"port-version": 0
"port-version": 1
},
"sdl2-net": {
"baseline": "2.0.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c06711b92dfd4c048f6a56c0236697012094a6e5",
"version": "2.6.1",
"port-version": 1
},
{
"git-tree": "7e802cb751276e60dc8046e2b6219dd9dae4c13a",
"version": "2.6.1",