Skip to content

Commit

Permalink
Add temporary libsdl packages to avoid breaking projects
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Feb 6, 2025
1 parent 7912b7d commit 62d9241
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/l/libsdl/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package("libsdl")
set_base("libsdl2")

on_load(function (package)
wprint("libsdl package has been renamed to libsdl2 following the release of SDL3 which is also available under the name libsdl3.${clear}")
package:base():script("load")(package)
end)
7 changes: 7 additions & 0 deletions packages/l/libsdl_gfx/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package("libsdl_gfx")
set_base("libsdl2_gfx")

on_load(function (package)
wprint("libsdl_gfx package has been renamed to libsdl2_gfx following the release of SDL3, please update the package name in your xmake.lua.${clear}")
package:base():script("load")(package)
end)
7 changes: 7 additions & 0 deletions packages/l/libsdl_image/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package("libsdl_image")
set_base("libsdl2_image")

on_load(function (package)
wprint("libsdl_image package has been renamed to libsdl2_image following the release of SDL3, please update the package name in your xmake.lua.${clear}")
package:base():script("load")(package)
end)
7 changes: 7 additions & 0 deletions packages/l/libsdl_mixer/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package("libsdl_mixer")
set_base("libsdl2_mixer")

on_load(function (package)
wprint("libsdl_mixer package has been renamed to libsdl2_mixer following the release of SDL3, please update the package name in your xmake.lua.${clear}")
package:base():script("load")(package)
end)
7 changes: 7 additions & 0 deletions packages/l/libsdl_net/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package("libsdl_net")
set_base("libsdl2_net")

on_load(function (package)
wprint("libsdl_net package has been renamed to libsdl2_net following the release of SDL3, please update the package name in your xmake.lua.${clear}")
package:base():script("load")(package)
end)
7 changes: 7 additions & 0 deletions packages/l/libsdl_ttf/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package("libsdl_ttf")
set_base("libsdl2_ttf")

on_load(function (package)
wprint("libsdl_ttf package has been renamed to libsdl2_ttf following the release of SDL3, please update the package name in your xmake.lua.${clear}")
package:base():script("load")(package)
end)

0 comments on commit 62d9241

Please sign in to comment.