[neon/backports-jammy/libsdl2/Neon/unstable] debian: import from salsa for plasma-desktop joystick module

Carlos De Maine null at kde.org
Fri Nov 10 21:12:55 GMT 2023


Git commit 1756d2e9c44e10ccc54c1abc513c5b659eafb3d5 by Carlos De Maine.
Committed on 10/11/2023 at 22:12.
Pushed by carlosdem into branch 'Neon/unstable'.

import from salsa for plasma-desktop joystick module

A  +15   -0    debian/.gitignore
A  +4    -0    debian/SDL_config.h  *
A  +2    -0    debian/autoreconf
A  +1470 -0    debian/changelog
A  +8    -0    debian/clean
A  +156  -0    debian/control
A  +567  -0    debian/copyright
A  +4    -0    debian/docs
A  +20   -0    debian/gbp.conf
A  +1    -0    debian/libsdl2-2.0-0.install
A  +840  -0    debian/libsdl2-2.0-0.symbols
A  +11   -0    debian/libsdl2-dev.install
A  +1    -0    debian/libsdl2-dev.manpages
A  +14   -0    debian/libsdl2-doc.doc-base
A  +1    -0    debian/libsdl2-doc.examples
A  +1    -0    debian/libsdl2-doc.install
A  +2    -0    debian/libsdl2-tests.install
A  +4    -0    debian/libsdl2-tests.lintian-overrides
A  +3    -0    debian/not-installed
A  +28   -0    debian/patches/fix-a-possible-memory-leak-in-SDL_vasprintf.patch
A  +67   -0    debian/patches/no-libdir.patch
A  +3    -0    debian/patches/series
A  +24   -0    debian/patches/test-Don-t-install-bundled-copy-of-unifont.patch
A  +183  -0    debian/rules
A  +4    -0    debian/salsa-ci.yml
A  +62   -0    debian/sdl2-config.1
A  +1    -0    debian/source/format
A  +1    -0    debian/source/options
A  +90   -0    debian/tests/build
A  +73   -0    debian/tests/cmake
A  +12   -0    debian/tests/cmake-example/CMakeLists.txt
A  +20   -0    debian/tests/cmake-example/hello.c  *
A  +14   -0    debian/tests/cmake-findsdl2/CMakeLists.txt
A  +182  -0    debian/tests/cmake-findsdl2/FindSDL2.cmake
A  +16   -0    debian/tests/cmake-findsdl2/README.txt
A  +20   -0    debian/tests/cmake-findsdl2/hello.c  *
A  +10   -0    debian/tests/cmake-main/CMakeLists.txt
A  +14   -0    debian/tests/cmake-main/test.cpp  *
A  +11   -0    debian/tests/cmake-static/CMakeLists.txt
A  +20   -0    debian/tests/cmake-static/hello.c  *
A  +11   -0    debian/tests/cmake-targets/CMakeLists.txt
A  +20   -0    debian/tests/cmake-targets/hello.c  *
A  +15   -0    debian/tests/control
A  +138  -0    debian/tests/deprecated-use
A  +20   -0    debian/tests/installed-tests
A  +5    -0    debian/upstream/metadata
A  +23   -0    debian/upstream/signing-key.asc
A  +12   -0    debian/watch
A  +12   -0    debian/watch.devel

The files marked with a * at the end have a non valid license. Please read: https://community.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


https://invent.kde.org/neon/backports-jammy/libsdl2/-/commit/1756d2e9c44e10ccc54c1abc513c5b659eafb3d5

diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..0c09a38
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,15 @@
+/*.debhelper.log
+/*.substvars
+/.debhelper/
+/Doxyfile
+/autoreconf.after
+/autoreconf.before
+/build-tests/
+/debhelper-build-stamp
+/examples.tar.gz
+/files
+/libsdl2-2.0-0/
+/libsdl2-dev/
+/libsdl2-doc/
+/libsdl2-tests/
+/tmp/
diff --git a/debian/SDL_config.h b/debian/SDL_config.h
new file mode 100644
index 0000000..bbad0f5
--- /dev/null
+++ b/debian/SDL_config.h
@@ -0,0 +1,4 @@
+/* Debian-specific indirection to an architecture-specific copy of
+ * SDL_config.h in one of the compiler's default include directories.
+ * Please do not include _real_SDL_config.h directly. */
+#include <SDL2/_real_SDL_config.h>
diff --git a/debian/autoreconf b/debian/autoreconf
new file mode 100644
index 0000000..2ed5e5d
--- /dev/null
+++ b/debian/autoreconf
@@ -0,0 +1,2 @@
+.
+test
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b24aff3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,1470 @@
+libsdl2 (2.28.5+dfsg-2) unstable; urgency=medium
+
+  * d/p/configure-move-HAVE_LINUX_INPUT_H-to-CheckInputEvents.patch,
+    Revert patch which breaks Linux joystick/gamepad detection.
+    See upstream issue SDL#8488.
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 06 Nov 2023 19:41:49 +0000
+
+libsdl2 (2.28.5+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release
+    - Don't read destination pixels if they will be fully overwritten
+    - Remove workaround for a fixed libdecor bug
+    - Fix a crash when trying to use XInput2 if libxi was missing
+    - Don't try to destroy a NULL relative pointer handle on Wayland
+      implementations that don't support that feature
+    - Improve precondition checks for Wayland pointer confinement
+    - Check whether HIDAPI joysticks were unplugged during detection
+    - Detect HP HyperX Clutch Gladiate as an Xbox-One-compatible controller
+    - Detect several Asetek Wheelbase models as steering wheels
+    - Test improvements
+    - Android, CI, CMake and Windows changes that are not relevant to how
+      Debian compiles this library
+  * d/p/configure-move-HAVE_LINUX_INPUT_H-to-CheckInputEvents.patch,
+    d/p/fix-a-possible-memory-leak-in-SDL_vasprintf.patch:
+    Add post-release bug fixes from upstream:
+    - Improve detection of <linux/input.h>
+    - Fix a memory leak on vsnprintf() error in SDL_vasprintf()
+    This brings us up to release-2.28.x branch commit
+    release-2.28.5-4-g9b2c70c9c, excluding CMake and Windows changes.
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 06 Nov 2023 10:34:27 +0000
+
+libsdl2 (2.28.4+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release
+    - Optionally use posix_spawnp() in preference to vfork() for xdg-open
+    - Fix SDLTest surface comparison on big-endian architectures
+    - CMake, Emscripten, QNX and Windows changes that are not relevant to
+      how Debian compiles this library
+  * Drop patches that came from upstream
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 02 Oct 2023 10:21:52 +0100
+
+libsdl2 (2.28.3+dfsg-4) unstable; urgency=medium
+
+  * Update to upstream release-2.28.x branch commit
+    release-2.28.3-18-gd58fa94ee, excluding emscripten-specific changes
+    and changes in files that are replaced by dh_autoreconf.
+    - d/p/Fixed-sensor-timestamp-calculation-for-third-party-PS5-co.patch,
+      d/p/Fixed-error-array-subscript-2-is-above-array-bounds-of-co.patch,
+      d/p/Fixed-sensor-timestamp-units-for-third-party-PS5-controll.patch:
+      Improve handling of third-party PS5-compatible gamepads
+    - d/p/Check-for-NULL-before-dereferencing-newly-allocated-memor.patch,
+      d/p/SDL_iconv_string-defaults-to-UTF-8.patch:
+      Move NULL checks before dereferencing the potentially-null pointer
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 28 Sep 2023 10:51:18 +0100
+
+libsdl2 (2.28.3+dfsg-3) unstable; urgency=medium
+
+  * d/patches: Update to upstream release-2.28.x branch commit
+    release-2.28.3-10-g7d80e2088, excluding changes that are not relevant
+    to the way Debian builds libsdl2
+    - d/p/detect-fanatec-steering-wheels.patch: Detect more steering wheels
+    - d/p/x11-Always-update-clipboard-owner.patch: Let clipboard managers
+      keep track of clipboard changes
+  * d/p/no-libdir.patch: If $CC doesn't support -print-multiarch, assume
+    static linking is native.
+    As documented by upstream in docs/README-dynapi.md, statically linking
+    SDL is not recommended. Please link to SDL dynamically if possible.
+    However, the legacy sdl2-config script historically supported static
+    linking, so we have to keep that working while not breaking multiarch
+    co-installation.
+    clang-16 no longer supports the -print-multiarch option, which we
+    previously relied on here. Fall back to assuming that we're doing a
+    native build (more precisely, a build whose host architecture matches
+    the pkg-config in the $PATH) rather than failing to link statically
+    at all. (Closes: #1051946)
+    It is unavoidable that this will not work if you are cross-compiling
+    with a compiler that does not support the -print-multiarch option,
+    and also linking statically, and also do not have the PKG_CONFIG or
+    DEB_HOST_MULTIARCH environment variables set. In this situation,
+    please set PKG_CONFIG and/or DEB_HOST_MULTIARCH (preferably both)
+    to their appropriate values.
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 18 Sep 2023 13:55:17 +0100
+
+libsdl2 (2.28.3+dfsg-2) unstable; urgency=medium
+
+  * Update to upstream release-2.28.x branch commit
+    release-2.28.3-5-gd710e0be2, excluding one MSVC-specific change
+    - d/p/Detect-Logitech-PRO-Racing-Wheel-for-Xbox-PC-mode-as-whee.patch,
+      d/p/Detect-Logitech-G923-Playstation-as-wheel.patch,
+      d/p/Detect-Simagic-wheel-bases-as-wheels-8198.patch:
+      Update table of known driving-simulation steering wheel controllers
+    - d/p/render-Enable-clipping-for-zero-sized-rectangles.patch:
+      Fix a UI regression since 2.27.x in Battle for Wesnoth 1.17.x
+      and other games that rely on being able to disable UI elements
+      by setting a clipping rectangle with zero width or height
+      (Closes: #1051522)
+
+ -- Simon McVittie <smcv at debian.org>  Sun, 10 Sep 2023 14:13:16 +0100
+
+libsdl2 (2.28.3+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release
+    - Implement SDL_TriggerBreakpoint() on riscv64
+    - Silence "ioctl (GFEATURE)" warnings on stderr when using raw HID
+    - Fix report format for Razer Wolverine V2 Pro
+    - Fix a (harmless?) out-of-bounds read when guessing whether game
+      controller axes are a digital hat-switch (regression in 2.23.1)
+    - Remaining changes are not relevant on architectures supported
+      by Debian
+  * d/p/Removed-Flydigi-Vader-2-mappings.patch,
+    d/p/The-Flydigi-Vader-and-Apex-series-controllers-all-have-th.patch,
+    d/p/Added-a-gamepad-mapping-for-the-G-Shark-GS-GP702.patch:
+    Drop patches, applied upstream
+
+ -- Simon McVittie <smcv at debian.org>  Fri, 01 Sep 2023 20:23:54 +0100
+
+libsdl2 (2.28.2+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release
+    - Avoid crashing if all Wayland displays have been disconnected
+    - Add game controller mapping for the Steam Deck's built-in gamepad,
+      including its back paddles
+    - Fix duplicated gamepad mapping for left HVC gamepads
+    - Fall back to plain Xlib if Xrandr isn't available, fixing video
+      initialization when using VNC
+    - Wait a shorter time for X11 window maximization
+    - Improve handling of Bluetooth PS4 and PS5 controllers in raw HID mode
+    - Don't call an unimplemented fcitx method
+    - Better handling of virtual keyboards
+    - Reject negative sizes in SDL_RWFromMem(), SDL_RWFromConstMem()
+    - Remove unused C++ Vulkan headers
+    - Cope with 32-bit ARM platforms where __ARM_ARCH might not be defined
+    - Windows-, macOS- and OS/2-specific fixes not relevant to Debian
+    - CMake-specific fixes not relevant to Debian
+  * Add selected patches from upstream release-2.28.x branch
+    - d/p/Removed-Flydigi-Vader-2-mappings.patch,
+      d/p/The-Flydigi-Vader-and-Apex-series-controllers-all-have-th.patch:
+      Remove problematic gamepad mappings for devices that reuse a name,
+      vendor ID and product ID, and therefore cannot be distinguished
+      programmatically
+    - d/p/Added-a-gamepad-mapping-for-the-G-Shark-GS-GP702.patch:
+      Add another gamepad mapping
+  * d/p/video-wayland-use-both-icon-and-icon-name-for-Zenity-7897.patch,
+    d/p/Fixed-mapping-BTN_TR2-to-right-trigger.patch,
+    d/p/Re-added-mappings-for-older-Xbox-One-controllers-on-Linux.patch:
+    Drop patches, applied upstream
+  * d/copyright: Update
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 07 Aug 2023 19:05:51 +0100
+
+libsdl2 (2.28.1+dfsg-1) unstable; urgency=medium
+
+  * New upstream release
+  * Add selected patches from upstream release-2.28.x branch
+    - d/p/video-wayland-use-both-icon-and-icon-name-for-Zenity-7897.patch:
+      Provide forward-compatibility with zenity >= 3.90.x under Wayland
+    - d/p/Fixed-mapping-BTN_TR2-to-right-trigger.patch:
+      Fix mapping regression in 2.27.1 for some game controllers with a
+      digital right trigger button
+    - d/p/Re-added-mappings-for-older-Xbox-One-controllers-on-Linux.patch:
+      Fix mapping regression in 2.27.1 for Xbox One controllers (and
+      their clones) that report BTN_C and BTN_Z
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 10 Jul 2023 15:22:01 +0100
+
+libsdl2 (2.28.0+dfsg-1) unstable; urgency=medium
+
+  * New upstream release
+  * d/gbp.conf: Use upstream/2.28.x branch
+  * Release to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 20 Jun 2023 20:36:06 +0100
+
+libsdl2 (2.27.1+dfsg-1) experimental; urgency=medium
+
+  * New upstream prerelease 2.27.1
+  * d/libsdl2-2.0-0.symbols: Update
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 14 Jun 2023 15:36:11 +0100
+
+libsdl2 (2.27~git20230406+dfsg-1) experimental; urgency=medium
+
+  * New upstream snapshot release-2.26.0-353-g7ec9a4385
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 12 Apr 2023 10:42:17 +0100
+
+libsdl2 (2.27~git20230308+dfsg-1) experimental; urgency=medium
+
+  * New upstream snapshot release-2.26.0-275-gf5c0760c6
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 08 Mar 2023 12:04:47 +0000
+
+libsdl2 (2.27~git20230216+dfsg-1) experimental; urgency=medium
+
+  * New upstream snapshot release-2.26.0-219-gd948e6c3c
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 16 Feb 2023 12:27:12 +0000
+
+libsdl2 (2.27~git20230207+dfsg-1) experimental; urgency=medium
+
+  * New upstream snapshot release-2.26.0-199-gfde632366
+  * d/copyright: Update
+  * Build-depend on a new enough libdecor-0-dev.
+    The upstream git branch for 0.2.x made some previously private functions
+    officially public, and SDL wants to call them.
+  * Standards-Version: 4.6.2 (no changes required)
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 08 Feb 2023 21:56:35 +0000
+
+libsdl2 (2.27~git20230103+dfsg-1) experimental; urgency=medium
+
+  * d/control, d/gbp.conf: Start a new branch for snapshot builds
+  * New upstream snapshot
+  * d/copyright: Update
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 04 Jan 2023 17:14:21 +0000
+
+libsdl2 (2.26.5+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release 2.26.5
+    - Improve quality and performance of audio resampling by using
+      more integer arithmetic
+    - Ignore CRC of Bluetooth packets from PS4-compatible controllers
+      in raw HID mode if consistently wrong, fixing 8BitDo SN30 Pro with
+      2.00 firmware
+    - Add support for digital-only trigger buttons on PS5-compatible
+      controllers such as Victrix Pro FS in raw HID mode
+    - Fix crash when using fcitx if libdbus cannot be initialized
+    - Ensure declarations needed for SDL_assert_always() are present even
+      if a dependent project is built with -DSDL_ASSERT_LEVEL=0
+    - Report SDL_RENDERER_PRESENTVSYNC flag back to the application if
+      vsync is being simulated
+    - Avoid string truncation when logging events
+    - Fix compilation with -std=c2x compilers
+    - Update list of known game controllers:
+      + Remove mappings for a generic USB joystick controller
+        (vendor ID 0x0079, product ID 0x0006, version 0x0000 or 0x6120)
+        which cannot usefully be matched to a specific product
+      + Add mapping for 8BitDo Pro 2 Wired Controller for Xbox
+        via in-tree xpad driver or out-of-tree xone driver
+      + Add mapping for Elecom 8button gamepad
+      + Add mapping for Flydigi Vader 2 with the latest firmware (6.0.4.9)
+      + Add mapping for Google Stadia Controller over Bluetooth
+      + Add mapping for Hori Pokken Tournament DX Pro Pad
+      + Add mapping for Sony DualSense Edge Wireless Controller via
+        Bluetooth and evdev
+      + Add mapping for Ultimate Atari Fight Stick
+      + Respect SDL_GAMECONTROLLER_USE_BUTTON_LABELS hint for Retrolink
+        SNES controller
+      + Sort the list in a canonical order
+      + Various Android mapping fixes not relevant to Debian
+    - Various Android-, macOS- and Windows-specific fixes not relevant
+      to Debian
+  * d/p/Fixed-handling-simple-mode-PS4-reports.patch:
+    Drop patch, included in the upstream release
+  * d/gbp.conf: Use upstream/2.26.x branch for bookworm
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 12 Apr 2023 09:41:21 +0100
+
+libsdl2 (2.26.4+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release 2.26.4
+    - Game controller mappings no longer overwrite existing mappings with
+      the same vendor/product but a different hardware version, fixing
+      axis/button mapping for some game controllers with older drivers
+      or firmware (SDL#7421)
+    - A Windows-specific fix not relevant to Debian
+    - Reformatting in test/testime.c is not relevant to Debian
+  * d/p/Fixed-Steam-Runtime-sandbox-detection.patch:
+    Drop patch, applied upstream
+  * d/p/Fixed-handling-simple-mode-PS4-reports.patch:
+    Fix some Playstation 4 controllers not providing input in raw HID mode
+    (regression in 2.25.1, SDL#7270)
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 09 Mar 2023 10:49:35 +0000
+
+libsdl2 (2.26.3+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release 2.26.3
+    - No changes relevant to Unix platforms
+  * d/copyright: Update
+  * Add patch from upstream fixing sandbox detection.
+    In particular, when backported into the Steam Runtime this will fix game
+    controller hotplugging in Proton games.
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 16 Feb 2023 11:16:09 +0000
+
+libsdl2 (2.26.2+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 04 Jan 2023 08:59:33 +0000
+
+libsdl2 (2.26.1+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release
+  * Drop patches for Logitech G29 regression, applied upstream
+  * d/gbp.conf: Use DEP-14 branch names
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 12 Dec 2022 10:57:42 +0000
+
+libsdl2 (2.26.0+dfsg-1) unstable; urgency=medium
+
+  * New upstream release
+  * Use stable release 2.26.0 for all symbols new in 2.25.x
+  * d/watch: Only watch for 2.x versions.
+    Development has started on SDL 3, which will be incompatible, and
+    should be packaged as a parallel libsdl3 source package.
+  * Add post-release patches to fix regression for Logitech G29.
+    We want this to show up as a steering wheel, not a Playstation gamepad.
+  * Release to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 22 Nov 2022 21:52:45 +0000
+
+libsdl2 (2.25.1+dfsg-1) experimental; urgency=medium
+
+  * d/control, d/gbp.conf: Branch for experimental
+  * New upstream development release
+    - Drop patches that were included upstream
+  * d/.gitignore: Add
+  * d/clean: Clean up files that are modified by the build
+  * Update symbols file
+  * Normalize symbols file to use stable releases where possible.
+    We don't need to generate fine-grained dependencies on specific
+    betas, release candidates and git snapshots: for smooth upgrades from
+    older Debian releases, it's enough to know which stable release is
+    the minimum.
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 17 Nov 2022 19:32:23 +0000
+
+libsdl2 (2.24.2+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release
+    - Includes a change to fix a test failure on 32-bit big-endian
+      (hppa, mips, powerpc). Thanks to Helge Deller (Closes: #1021310)
+  * d/p/build-Expand-version-info-in-SDL_REVISION-and-SDL_GetRevi.patch,
+    d/p/build-Add-a-mechanism-to-mark-builds-with-vendor-info.patch:
+    Backport patches from upstream git to add vendor information to binaries
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 01 Nov 2022 22:14:15 +0000
+
+libsdl2 (2.24.1+dfsg-1) unstable; urgency=medium
+
+  * New upstream stable release
+  * d/p/cmake-always-create-SDL2-SDL2main-target-in-autotools-cma.patch,
+    d/p/cmake-fix-location-of-SDL2-SDL2test-imported-library.patch,
+    d/p/configure.ac-fix-configure-tests-broken-with-Clang-15-imp.patch,
+    d/p/apply-commit-d0a3570300812bc81888e7a7eadb9311621dc9a7-to-.patch,
+    d/p/Fix-incorrect-return-value-in-X11_GetPixelFormatFromVisua.patch,
+    d/p/Fix-SDL_PIXELFORMAT_INDEX1LSB-test-case.patch,
+    d/p/Fixed-bug-6287-SDL_FillRect-failed-for-SDL_Surface-with-B.patch:
+    Drop patches, included upstream
+  * d/control: (Build-)Depend on libegl-dev instead of libegl1-mesa-dev
+  * d/control: Drop (Build-)Depends on libglu1-mesa-dev, no longer required
+  * d/rules, d/control: Make libsamplerate a hard dependency
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 05 Oct 2022 12:17:19 +0100
+
+libsdl2 (2.24.0+dfsg-2) unstable; urgency=medium
+
+  * d/p/cmake-always-create-SDL2-SDL2main-target-in-autotools-cma.patch,
+    d/p/cmake-fix-location-of-SDL2-SDL2test-imported-library.patch,
+    d/p/configure.ac-fix-configure-tests-broken-with-Clang-15-imp.patch,
+    d/p/apply-commit-d0a3570300812bc81888e7a7eadb9311621dc9a7-to-.patch,
+    d/p/Fix-incorrect-return-value-in-X11_GetPixelFormatFromVisua.patch,
+    d/p/Fix-SDL_PIXELFORMAT_INDEX1LSB-test-case.patch,
+    d/p/Fixed-bug-6287-SDL_FillRect-failed-for-SDL_Surface-with-B.patch:
+    Add various bug fixes from upstream release-2.24.x branch
+  * d/tests: Add a test for linking to SDL2::SDL2main (and also C++)
+    Thanks: quyykk
+  * d/watch: Update for Github website changes
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 04 Oct 2022 12:50:33 +0100
+
+libsdl2 (2.24.0+dfsg-1) unstable; urgency=medium
+
+  * New upstream release
+    - Functionally equivalent to 2.23.2+dfsg-4
+  * Drop patches that were applied upstream
+  * d/watch, d/gbp.conf, d/control: Go back to unstable branch
+  * Release to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 22 Aug 2022 11:45:00 +0100
+
+libsdl2 (2.23.2+dfsg-4) experimental; urgency=medium
+
+  * d/patches: Update to upstream commit prerelease-2.23.2-21-g6e007c36e
+
+ -- Simon McVittie <smcv at debian.org>  Fri, 19 Aug 2022 10:22:45 +0100
+
+libsdl2 (2.23.2+dfsg-3) experimental; urgency=medium
+
+  * d/patches: Update to upstream commit prerelease-2.23.2-17-g51be30f3c,
+    excluding CI-only changes
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 18 Aug 2022 17:38:47 +0100
+
+libsdl2 (2.23.2+dfsg-2) experimental; urgency=medium
+
+  * d/patches: Update to upstream prerelease-2.23.2-10-g9670d2bb9,
+    excluding changes specific to non-Linux platforms (macOS and PS2)
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 16 Aug 2022 12:34:50 +0100
+
+libsdl2 (2.23.2+dfsg-1) experimental; urgency=medium
+
+  * New upstream release candidate
+  * d/p/core-linux-Don-t-cache-the-RealtimeKit-D-Bus-connection.patch,
+    d/p/Add-SDL_JOYBATTERYUPDATED-event-to-SDL_JoystickEventState.patch:
+    Add post-release bugfixes from upstream
+  * d/p/no-libdir.patch: Redo to cope with changes to how static linking
+    is handled upstream
+  * d/libsdl2-2.0-0.symbols: Update
+  * Update Lintian overrides
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 15 Aug 2022 19:34:25 +0100
+
+libsdl2 (2.23.1+dfsg-1) experimental; urgency=medium
+
+  * New upstream prerelease
+  * d/watch: Use GitHub to download releases
+  * d/watch: Download prereleases for experimental branch
+  * Merge packaging changes from unstable
+
+ -- Simon McVittie <smcv at debian.org>  Fri, 17 Jun 2022 12:13:59 +0100
+
+libsdl2 (2.0.22+dfsg-6) unstable; urgency=medium
+
+  * d/watch: Use GitHub to download releases
+  * d/rules: Wrap configure flags one per line, and sort them.
+    This reduces the diff when we change them.
+  * d/rules: Explicitly disable use of libraries we don't build-depend on.
+    SDL doesn't build-depend on JACK or the proprietary bcm_host and Vivante
+    graphics APIs, so these would not get enabled in official Debian builds.
+    For reproducibility, if they happen to be installed on a system where a
+    contributor is doing their own local build, don't enable them
+    there either.
+    - In particular, this ensures that the old bcm_host driver for
+      Raspberry Pi is not enabled. This is an outdated kernel driver which
+      has been superseded by KMS/DRM. (Closes: #1012863)
+  * d/rules: Explicitly disable auto-detection of other OSs' drivers.
+    This ensures that they are not enabled if compatible headers are
+    somehow available locally. Note that --disable-xinput refers to Windows
+    XInput (an API for Xbox-360-compatible game controllers) and should not
+    be confused with --enable-video-x11-xinput.
+  * d/rules: Explicitly enable library dependencies we intend to enable
+
+ -- Simon McVittie <smcv at debian.org>  Fri, 17 Jun 2022 10:14:50 +0100
+
+libsdl2 (2.0.22+git20220615+g960b86d+dfsg-1) experimental; urgency=medium
+
+  * New upstream git snapshot
+  * d/p/cmake-Fix-static-linking-to-dependencies-with-in-library-.patch:
+    Drop patch, applied upstream
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 15 Jun 2022 14:04:37 +0100
+
+libsdl2 (2.0.22+git20220612+gbdf1413+dfsg-1) experimental; urgency=medium
+
+  * New upstream git snapshot
+  * Update symbols file
+  * d/p/no-libdir.patch: Refresh for new upstream git snapshot
+  * Merge packaging from unstable
+    - d/p/345efdcb.patch: Drop, included in new upstream git snapshot
+  * d/copyright: Update
+  * d/p/cmake-Fix-static-linking-to-dependencies-with-in-library-.patch:
+    Add proposed patch to fix SDL2::SDL2-static target in our configuration
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 13 Jun 2022 12:07:53 +0100
+
+libsdl2 (2.0.22+dfsg-5) unstable; urgency=medium
+
+  * debian/patches/345efdcb.patch:
+    - cherry-pick upstream fix for arm64 test failure due to race condition.
+      (LP: #1976288)
+  * revert Ubuntu arm64 hack, now that upstream properly fixed it.
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Mon, 06 Jun 2022 11:50:18 +0200
+
+libsdl2 (2.0.22+git20220530+g3c3c025+dfsg-1) experimental; urgency=medium
+
+  * Merge packaging from unstable
+  * New upstream git snapshot
+  * Refresh patches
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 31 May 2022 13:26:32 +0100
+
+libsdl2 (2.0.22+dfsg-4) unstable; urgency=medium
+
+  [ Gianfranco Costamagna ]
+  * Ignore tests if the system is Ubuntu and architecture arm64,
+    requiring some real new hw to complete successfully
+    (workaround for LP: #1976288)
+
+  [ Simon McVittie ]
+  * d/control: Remove Sam Hocevar from Uploaders,
+    with thanks for past contributions (Closes: #1011583)
+  * d/tests/installed-tests: Assert that at least one test was run
+  * d/control: Add missing dependencies for static linking
+    (Closes: #1012088, LP: #1976198)
+  * d/tests/cmake: Exercise static linking to SDL
+  * Standards-Version: 4.6.1 (no changes required)
+  * Only skip testatomic on Ubuntu, not the rest of the test suite.
+    This lets us get at least some confidence that the package is working.
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 30 May 2022 16:43:30 +0100
+
+libsdl2 (2.0.22+git20220524+g5dee082+dfsg-1) experimental; urgency=medium
+
+  * New upstream git snapshot
+    - Avoid implicit promotion from float to double (Closes: #1011014)
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 24 May 2022 18:06:53 +0100
+
+libsdl2 (2.0.22+git20220518.g4cb57bf+dfsg-1) experimental; urgency=medium
+
+  * New upstream git snapshot
+  * Update symbols file
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 18 May 2022 20:57:32 +0100
+
+libsdl2 (2.0.22+git20220508.gc71ee68+dfsg-1) experimental; urgency=medium
+
+  * d/gbp.conf, d/control: Branch for experimental
+  * New upstream git snapshot
+    - Drop patches that were applied upstream
+    - Update symbols file with new ABI from development branch
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 09 May 2022 17:02:07 +0100
+
+libsdl2 (2.0.22+dfsg-3) unstable; urgency=medium
+
+  * d/tests: Install the correct dependency.
+    We now want libsdl2-tests, not libsdl2-dev.
+  * d/tests: Tell ginsttest-runner to output TAP
+  * d/patches: Use upstreamed patches to run build-time and as-installed
+    tests
+  * d/p/Disable-Werror-declaration-after-statement.patch:
+    Remove workaround for #1010151, which has been fixed in testing
+  * Release to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 05 May 2022 10:06:25 +0100
+
+libsdl2 (2.0.22+dfsg-2) experimental; urgency=medium
+
+  * d/gbp.conf, d/control: Branch for experimental
+  * d/p/test-Add-some-common-code-to-load-test-resources.patch,
+    d/p/Add-a-make-install-target-for-the-tests.patch,
+    d/p/test-Run-selected-noninteractive-tests-in-make-check.patch,
+    d/p/test-Install-GNOME-style-installed-tests-metadata.patch:
+    Add patches to run a subset of tests as build-time tests and
+    GNOME-style "as-installed" tests
+  * d/tests/installed-tests: Run a subset of tests as an autopkgtest
+  * d/control: Move installed-tests to a new libsdl2-tests binary package
+  * Upload to experimental for NEW processing
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 26 Apr 2022 16:11:03 +0100
+
+libsdl2 (2.0.22+dfsg-1) unstable; urgency=medium
+
+  * New upstream release
+  * Revert "d/gbp.conf, d/control: Branch for experimental"
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 25 Apr 2022 19:34:26 +0100
+
+libsdl2 (2.0.22~rc3+dfsg-1) experimental; urgency=medium
+
+  * New upstream prerelease
+    - Fix mouse input regression in Source 1 engine games (Portal 2,
+      Team Fortress 2) by removing a workaround for mouse input issues
+      in Unvanquished
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 25 Apr 2022 09:44:46 +0100
+
+libsdl2 (2.0.22~rc2+dfsg-1) experimental; urgency=medium
+
+  * New upstream prerelease
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 21 Apr 2022 19:00:25 +0100
+
+libsdl2 (2.0.22~rc1+git20220418+dfsg-1) experimental; urgency=medium
+
+  * New upstream snapshot 2.0.22-RC1-34-g02225aa73
+    - Stop defaulting to native Wayland, too many regressions seen
+  * Unfuzz patch series
+  * d/p/Disable-Werror-declaration-after-statement.patch:
+    Add patch to avoid FTBFS with Pipewire 0.3.50
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 19 Apr 2022 10:54:50 +0100
+
+libsdl2 (2.0.22~rc1+dfsg-1) experimental; urgency=medium
+
+  * d/gbp.conf, d/control: Branch for experimental
+  * New upstream prerelease
+    - Now defaults to native Wayland (instead of X11 via Xwayland) when
+      run on a system with a Wayland display available, similar to GTK 3.
+      This can be overridden with SDL_VIDEODRIVER=x11 for games that make
+      X11-specific assumptions.
+  * d/gbp.conf: Make excluded files consistent with d/copyright
+  * d/control: Increase build-dependency on libwayland to 1.18
+  * Update symbols file for new ABI
+  * d/copyright: Update
+  * d/p/Avoid-depending-on-libwayland-1.20-unnecessarily.patch:
+    Drop patch, applied upstream (in a slightly different form)
+  * d/tests: Assert that the CMake integration provides SDL2::SDL2
+
+ -- Simon McVittie <smcv at debian.org>  Sat, 09 Apr 2022 15:05:02 +0100
+
+libsdl2 (2.0.20+dfsg-2) unstable; urgency=medium
+
+  * Release to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Sat, 15 Jan 2022 00:22:57 +0000
+
+libsdl2 (2.0.20+dfsg-1) experimental; urgency=medium
+
+  * d/gbp.conf, d/control: Branch for experimental
+  * New upstream release
+  * d/copyright: Update
+  * d/upstream/metadata: Add
+  * Drop patches that were included in the upstream release
+  * d/p/Avoid-depending-on-libwayland-1.20-unnecessarily.patch:
+    Add patch to avoid hard dependency on libwayland-client 1.20.
+    That version is not in Debian yet (#1001839).
+  * Initially release to experimental, to let 2.0.18+dfsg-5 migrate
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 11 Jan 2022 10:46:47 +0000
+
+libsdl2 (2.0.18+dfsg-5) unstable; urgency=medium
+
+  * d/patches: Update event loop regression fix to the version that was
+    merged upstream
+
+ -- Simon McVittie <smcv at debian.org>  Fri, 07 Jan 2022 09:06:43 +0000
+
+libsdl2 (2.0.18+dfsg-4) unstable; urgency=medium
+
+  * Add proposed patch from upstream to fix osk-sdl regression
+    (Closes: #1001809)
+
+ -- Simon McVittie <smcv at debian.org>  Thu, 06 Jan 2022 20:24:15 +0000
+
+libsdl2 (2.0.18+dfsg-3) unstable; urgency=medium
+
+  * d/p/Fixed-enabling-udev-hotplug-detection-on-Linux.patch:
+    Add patch from upstream to use udev for raw HID device hotplug
+    where possible
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 15 Dec 2021 19:10:16 +0000
+
+libsdl2 (2.0.18+dfsg-2) unstable; urgency=medium
+
+  * d/p/docs-Don-t-let-Doxygen-expand-HOME-environment-variable.patch:
+    Add upstreamed patch to make the documentation build reproducibly
+  * d/p/Fix-the-wrong-int-size-for-fcitx-capability.patch,
+    d/p/video-wayland-Handle-0x0-xdg_toplevel_configure-in-fullsc.patch:
+    Add post-release bug fixes recommended by upstream
+  * Revert "d/gbp.conf, d/control: Branch for experimental"
+  * Upload to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 07 Dec 2021 16:12:55 +0000
+
+libsdl2 (2.0.18+dfsg-1) experimental; urgency=medium
+
+  * d/gbp.conf, d/control: Branch for experimental
+  * New upstream release
+    - Refresh patch series, dropping patches taken from upstream
+  * Add new dependency on libxfixes-dev
+  * Version the dependency on libxkbcommon-dev
+  * d/copyright: Update
+  * Update configure options
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 30 Nov 2021 19:59:48 +0000
+
+libsdl2 (2.0.16+dfsg1-7) unstable; urgency=medium
+
+  * Upload to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 17 Nov 2021 09:35:27 +0000
+
+libsdl2 (2.0.16+dfsg1-6) experimental; urgency=medium
+
+  * Enable libdecor support on Linux architectures.
+    This allows native Wayland games to have client-side window
+    decorations. (To test, for example try:
+    SDL_VIDEODRIVER=wayland openarena +set r_fullscreen 0 +set r_mode 5)
+  * Use recommended debhelper compat level 13.
+    Stop overriding dh_missing to pass --fail-missing, which is the default
+    in this compat level.
+  * d/gbp.conf, d/control: Branch for experimental
+
+ -- Simon McVittie <smcv at debian.org>  Sun, 07 Nov 2021 11:09:02 +0000
+
+libsdl2 (2.0.16+dfsg1-5) unstable; urgency=medium
+
+  * d/p/test-Fix-path-used-in-AC_CONFIG_AUX_DIR.patch:
+    Replace patch with the version that went upstream.
+    This is compatible with both old and new Autoconf, unlike my previous
+    attempt, which only fully worked with 2.71.
+  * d/control: Move libsamplerate0-dev to sorted position in B-D
+  * Depend on libgl-dev instead of transitional libgl1-mesa-dev
+  * Update standards version to 4.6.0, no changes needed.
+  * Build documentation during build-indep, not binary-indep
+  * Don't disable opengles on Hurd.
+    The configure option was misspelled and OpenGL|ES v2 was actually
+    enabled. Nobody has complained that it didn't work, so presumably
+    either it does, in fact, work, or nobody has ever tried it. Either way,
+    we can get the same result with fewer lines of code.
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 12 Oct 2021 21:55:42 +0100
+
+libsdl2 (2.0.16+dfsg1-4) unstable; urgency=medium
+
+  * d/p/audio-Support-pulse-as-an-alias-for-pulseaudio.patch:
+    Add patch from upstream to improve compatibility with SDL 1.2
+  * d/p/test-Fix-path-used-in-AC_CONFIG_AUX_DIR.patch:
+    Add proposed patch to fix FTBFS with autoconf 2.71
+  * Release to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 06 Sep 2021 10:56:33 +0100
+
+libsdl2 (2.0.16+dfsg1-3) experimental; urgency=medium
+
+  * d/p/Fixed-libudev-hotplug-notifications-in-the-HIDAPI-driver.patch:
+    Add patch recommended by upstream to fix HIDAPI hotplug
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 16 Aug 2021 12:52:32 +0100
+
+libsdl2 (2.0.16+dfsg1-2) experimental; urgency=medium
+
+  * d/p/Revert-*: Remove patches
+  * d/p/x11-Don-t-change-mode-if-we-are-already-in-the-correct-mo.patch:
+    Add patch from upstream git to resolve regression with Xwayland 1.20.x
+    more minimally
+
+ -- Simon McVittie <smcv at debian.org>  Fri, 13 Aug 2021 11:08:01 +0100
+
+libsdl2 (2.0.16+dfsg1-1) experimental; urgency=medium
+
+  [ Simon McVittie ]
+  * New upstream release
+  * d/rules: Pass CPPFLAGS and LDFLAGS while linking test programs
+  * d/copyright: Update
+  * d/copyright: Exclude less of src/hidapi/
+  * d/rules: Improve handling of Linux-specific features
+  * d/rules: Check for Hurd correctly
+  * d/rules: Explicitly disable libdecor for now (ITP: #988116)
+  * d/rules: Enable Pipewire audio driver.
+    The required version is currently only in experimental, but will
+    presumably go to unstable after Debian 11 is released.
+  * Drop Wayland-related patches, applied upstream
+  * d/p/no-libdir.patch: Refresh.
+    The patch conflicted with upstream updates to sdl2-config.cmake.in,
+    but we don't actually need to patch that file for multiarch
+    co-installation anyway: the file generated from it gets installed into
+    the ${libdir}, so it's OK for it to have architecture-dependent contents.
+  * d/patches: Refresh
+  * d/docs: Install README.md, not README.txt
+  * d/libsdl2-2.0-0.symbols: Update
+  * d/p/Revert-*:
+    Revert display mode setting changes for now.
+    These seem to trigger a regression in full-screen programs when
+    running under Xwayland: Xrandr fails, leaving the Xwayland display
+    in a bad state that causes subsequent SDL programs to fail, even after
+    downgrading SDL again. (See upstream bug libsdl-org/SDL#4630)
+
+  [ Guido Günther ]
+  * debian: Add salsa-ci integration
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 11 Aug 2021 19:29:44 +0100
+
+libsdl2 (2.0.14+dfsg2-3) unstable; urgency=medium
+
+  * d/libsdl2-2.0-0.symbols: SDL_LinuxSetThreadPriority is Linux-only
+  * Add patches to exclude generated Wayland symbols from the library ABI.
+    These were not intended to be public, and are not namespaced, which
+    could lead to namespace collisions with other packages.
+  * Don't generate symbols file from a template.
+    This is unnecessary now that we don't have to suppress the symbols for
+    Wayland interfaces.
+  * Exclude autom4te.cache from examples.tar.gz, for reproducible build
+  * d/rules: Disable full path names in documentation.
+    This makes the documentation (more) reproducible.
+  * docs: Only run doxygen across header files, not the entire source tree.
+    This avoids a lot of noise caused by documenting generated files,
+    which (again) made the build non-reproducible.
+  * d/rules: Explicitly disable libunwind if it happens to be installed.
+    The build includes the header if detected, but doesn't link to the
+    library, causing link failure. Explicitly disabling it also makes the
+    build more deterministic in non-minimal chroots.
+  * Avoid using debian/source/local-options.
+    This is incompatible with using dgit, and the unapply-patches option
+    is mostly not useful now that dpkg-source automatically returns the
+    tree to its original state after building (if patches were previously
+    unapplied, they end up unapplied afterwards).
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 18 Jan 2021 14:35:30 +0000
+
+libsdl2 (2.0.14+dfsg2-2) unstable; urgency=medium
+
+  * Add .symbols file
+  * Ignore symbols and avoid dpkg-gensymbols warnings for generated
+    Wayland interfaces.
+    I'm going to ask upstream about removing these from the library's ABI,
+    but for now, mark them as new in the latest upstream version.
+  * Release to unstable
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 12 Jan 2021 20:11:19 +0000
+
+libsdl2 (2.0.14+dfsg2-1) experimental; urgency=medium
+
+  [ Felix Geyer ]
+  * (Build-)Depend on libgles-dev instead of libgles2-mesa-dev.
+    (Closes: #972190)
+
+  [ Fabian Greffrath ]
+  * enable HIDAPI for low level joystick drivers (Closes: #975989)
+
+  [ Simon McVittie ]
+  * d/p/no-libdir.patch: Expand description.
+    Among other things this explains why it isn't an upstreamable change.
+  * New upstream release
+    - Delete non-free files more selectively, so we have what's needed
+      for HIDAPI
+    - Refresh patch
+  * Install upstream's tests.
+    Most of them are manual tests rather than automated tests, so we don't
+    run them at build-time.
+    Package them in the -dev package for now, to avoid a trip through
+    the NEW queue to add a libsdl2-tests package. The installed location
+    is loosely based on what GNOME installed-tests do, but must be multiarch
+    until/unless we separate out a libsdl2-tests package, so put it below
+    the $(libdir) rather than $(libexecdir).
+  * Add Suggests on xdg-utils, for SDL_OpenURL()
+  * Add myself to Uploaders
+  * d/copyright: Update for new upstream release
+  * d/copyright: Reorder so patterns are matched in the right order
+  * Standards-Version: 4.5.1 (no changes required)
+
+  [ Helmut Grohne ]
+  * Remove wrong check of nocheck profile (Closes: #979369)
+  * Don't replace jquery.js: doxygen's jquery.js is not just jquery.
+    See debian/README.jquery in the doxygen package.
+
+ -- Simon McVittie <smcv at debian.org>  Wed, 06 Jan 2021 11:13:12 +0000
+
+libsdl2 (2.0.12+dfsg1-4) unstable; urgency=medium
+
+  * Team upload
+  * Add graphwiz to Build-Depends-Indep for the dot command.
+
+ -- Fabian Greffrath <fabian at debian.org>  Sat, 03 Oct 2020 22:53:14 +0200
+
+libsdl2 (2.0.12+dfsg1-3) unstable; urgency=medium
+
+  * Team upload
+  * Add libdrm-dev to Build-Depends to get the kmsdrm video driver
+    working, thanks Matthew Harm Bekkema (Closes: #971529).
+
+ -- Fabian Greffrath <fabian at debian.org>  Sat, 03 Oct 2020 22:11:05 +0200
+
+libsdl2 (2.0.12+dfsg1-2) unstable; urgency=medium
+
+  * Team upload
+
+  [ Steve Langasek ]
+  * use clang:native instead of clang in autopkgtests, to make
+    them cross-testing friendly
+
+  [ RALOVICH, Kristof ]
+  * debian: enable kmsdrm video driver as well
+
+ -- Fabian Greffrath <fabian at debian.org>  Tue, 18 Aug 2020 11:15:22 +0200
+
+libsdl2 (2.0.12+dfsg1-1) unstable; urgency=medium
+
+  * Team upload
+  * Upload v2.0.12 to unstable
+  * d/tests/build: Exercise compilation using clang
+  * d/rules: Provide compatibility symlinks to begin_code.h, close_code.h.
+    If a project that (incorrectly?) #includes <SDL2/SDL_foo.h>, such as
+    jag_0.3.5-5, is compiled with gcc, our symlink to SDL_platform.h is
+    sufficient to make it work. However, when compiled with clang, we need
+    to provide symlinks to everything that is required by SDL_config.h,
+    recursively, due to different symlink behaviour between gcc and clang.
+    (This is a variation on #952066.)
+  * d/tests: Exercise the #952066-like situation with clang
+
+ -- Simon McVittie <smcv at debian.org>  Tue, 26 May 2020 14:49:00 +0100
+
+libsdl2 (2.0.12+dfsg1-1~exp1) experimental; urgency=medium
+
+  * Team upload
+
+  [ Simon McVittie ]
+  * New upstream release (Closes: #954660)
+    - d/copyright: Update
+    - d/copyright, d/gbp.conf: Exclude compiled shaders for macOS etc.
+    - d/copyright, d/gbp.conf: Exclude non-free Steam Controller headers
+      (these have been relicensed in the hg repository, so the exclusion
+      can probably be dropped with 2.0.14, but as far as I can see they're
+      only used on non-Linux platforms anyway)
+  * Remove SHLIBVER, rely on debhelper compat 12 defaults
+
+  [ Gianfranco Costamagna ]
+  * Update copyright years
+  * Drop CVE-2019-13616: upstream
+  * Refresh no-libdir patch
+  * Also install the sdl2-config-version.cmake file
+  * Remove old dbgsym migration command
+  * Remove signatures from signing key
+  * Bump std-version to 4.5.0
+  * Add Rules-Requires-Root: no
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 27 Apr 2020 14:19:49 +0100
+
+libsdl2 (2.0.10+dfsg1-3) unstable; urgency=medium
+
+  * Team upload
+
+  [ Gianfranco Costamagna ]
+  * Fix autopkgtests for cross-architecture testing, by making sure
+    sdl2-config calls the correct pkg-config command
+
+  [ Simon McVittie ]
+  * Revert "Add the non-multiarch include dir to pkg-config cflags for
+    compatibility."
+  * Revert "Install all headers in an architecture-specific location"
+  * Make SDL_config.h redirect to an architecture-specific version
+    (Closes: #909740, #951087, #951943, #951959, #951974, #951976, #952049,
+    #951962, #952105, #955416)
+  * Create a SDL_platform.h symlink in /usr/include/MULTIARCH/SDL2
+    (Closes: #952046, #952066, #952098)
+  * Add autopkgtests for various deprecated use patterns
+
+ -- Simon McVittie <smcv at debian.org>  Mon, 13 Apr 2020 18:27:11 +0100
+
+libsdl2 (2.0.10+dfsg1-2) unstable; urgency=medium
+
+  [ Simon McVittie ]
+  * d/tests: Add a test that detecting SDL2 via CMake does not regress.
+    This is the sort of thing that could easily regress while solving #909740.
+  * Install all headers in an architecture-specific location.
+    This approach was suggested by Adrian Bunk on #909740, as one of several
+    possible ways to avoid SDL_config.h colliding between architectures.
+    Because this approach uses a different @includedir@ for each architecture,
+    we can no longer have @includedir@ in sdl2-config.in: that would result
+    in non-co-installability. However, simply removing it (similar to
+    no-libdir.patch) is not an option, because the SDL 2 headers are not
+    on the default include path (and they cannot be added to it without
+    breaking parallel-installability of SDL 1.2 or a hypothetical future
+    SDL 3). Instead, patch sdl-config.in to ask pkg-config for its CFLAGS
+    and LIBS. This can supersede the previous no-libdir.patch.
+    This relies on the assumption that cross-compilation will always set
+    PKG_CONFIG, even if that environment variable is not otherwise used by
+    the build system that is invoking sdl2-config.
+    The sdl2-config.cmake.in part of no-libdir.patch can simply be dropped,
+    because that file is installed to an architecture-specific location
+    anyway, namely ${libdir}/cmake.
+  * Mark libsdl2-dev as Multi-Arch: same (Closes: #909740)
+
+  [ Gianfranco Costamagna ]
+  * Upload part of Ubuntu delta to Debian
+
+  [ Timo Aaltonen ]
+  * rules: Disable GLES1, it's getting enabled because libgles-dev ships
+    GLES1 headers now, but they have conflicting types against the ones
+    SDL has.
+
+  [ Steve Langasek ]
+  * Make autopkgtests cross-test-friendly. (Closes: #946496)
+
+  [ Felix Geyer ]
+  * Drop build-all autopkgtest.
+    - We already have tests that check if building against SDL2 with pkg-config,
+      sdl2-config and cmake works correctly.
+    - It has a large overhead as it rebuilds SDL2 and requires supporting
+      cmake as a second buildsystem.
+  * Add the non-multiarch include dir to pkg-config cflags for compatibility.
+
+ -- Felix Geyer <fgeyer at debian.org>  Sun, 02 Feb 2020 23:02:25 +0100
+
+libsdl2 (2.0.10+dfsg1-1) unstable; urgency=medium
+
+  * New upstream release. (Closes: #939249)
+    - Fixes warnings with -Wundef on non-x86 hosts. (Closes: #892087)
+    - Fixes CVE-2019-7572, CVE-2019-7573, CVE-2019-7574, CVE-2019-7575,
+      CVE-2019-7576, CVE-2019-7577, CVE-2019-7578, CVE-2019-7635,
+      CVE-2019-7636, CVE-2019-7638 and CVE-2019-13626 (Closes: #924610)
+  * Drop fix-cross-building-907711.patch, fixed upstream.
+  * Bump SHLIBVER to 2.0.10.
+  * Add support for nodoc build-profile.
+  * Switch to debhelper compat level 12.
+  * Cherry-pick upstream fix for CVE-2019-13616.
+  * Mark autopkgtests as superficial.
+
+ -- Felix Geyer <fgeyer at debian.org>  Thu, 19 Sep 2019 23:50:39 +0200
+
+libsdl2 (2.0.9+dfsg1-1) unstable; urgency=medium
+
+  * New upstream release. (Closes: #914251)
+  * Drop SDL2-dynapi-symbol-resolution-fix.patch, applied upstream.
+  * Refresh fix-cross-building-907711.patch
+  * Bump SHLIBVER to 2.0.9.
+
+ -- Felix Geyer <fgeyer at debian.org>  Sat, 02 Feb 2019 17:13:17 +0100
+
+libsdl2 (2.0.8+dfsg1-6) unstable; urgency=medium
+
+  * d/rules: Add @ in 'tar --mtime="@$(SOURCE_DATE_EPOCH)"', otherwise the
+    date is not valid
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Thu, 25 Oct 2018 01:42:18 +0200
+
+libsdl2 (2.0.8+dfsg1-5) unstable; urgency=medium
+
+  * Bump Policy Standards-Version to 4.2.1 (no changes needed)
+  * d/rules: include /usr/share/dpkg/architecture.mk and .../pkg-info.mk
+    to provide DEB_HOST_ARCH_CPU, DEB_HOST_MULTIARCH and
+    SOURCE_DATE_EPOCH, instead of getting them through shell invocations.
+  * d/watch: Switch to version=4
+  * Switch to debhelper compat level v11
+    - Force examples to be installed in libsdl2-doc
+  * d/patches:
+    - add fix-cross-building-907711.patch to fix cross-building by using
+      the right pkg-config depending on the architecture (Closes: #907711)
+      Thanks Helmut Grohne for the report and the patch.
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Sat, 20 Oct 2018 12:51:58 +0200
+
+libsdl2 (2.0.8+dfsg1-4) unstable; urgency=medium
+
+  * Team upload
+  * Update copyright file.
+  * Ack previous NMU thanks!
+  * Also add the testsuite from test directory (from bug #909778)
+    - we need to find an approach to also run the resulting binaries
+      automatically
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Mon, 01 Oct 2018 12:54:23 +0200
+
+libsdl2 (2.0.8+dfsg1-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * d/tests/build: Add autopkgtest to check that dynamic linking with
+    either pkg-config or sdl2-config works correctly
+  * Revert "Make libsdl2-dev coinstallable again"
+    (Closes: #909778) (reopens: #909740)
+
+ -- Simon McVittie <smcv at debian.org>  Sun, 30 Sep 2018 16:13:38 +0100
+
+libsdl2 (2.0.8+dfsg1-3) unstable; urgency=medium
+
+  [ Hugh McMaster <hugh.mcmaster at outlook.com> ]
+  * Make libsdl2 coinstallable again (Closes: #909740).
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Thu, 27 Sep 2018 16:21:47 +0200
+
+libsdl2 (2.0.8+dfsg1-2) unstable; urgency=medium
+
+  [ Felix Geyer ]
+  * Remove Multi-Arch: same from libsdl2-dev as SDL_config.h is architecture
+    dependent.
+
+  [ Gianfranco Costamagna ]
+  * Team upload
+  * Enable vulkan everywhere
+  * debian/patches/SDL2-dynapi-symbol-resolution-fix.patch:
+    cherry-pick upstream fix for Unity-based games shipping bundled
+    libsdl2 version (LP: #1772471)
+    - thanks Ryan Gordon for the patch and help
+
+  [ Ryan C. Gordon (icculus) ]
+  * Disable --disable-loadso switch, it was useless and it is wrong
+    in many cases (see LP: #1740517 for discussion)
+
+ -- Felix Geyer <fgeyer at debian.org>  Sun, 09 Sep 2018 01:41:38 +0200
+
+libsdl2 (2.0.8+dfsg1-1) unstable; urgency=medium
+
+  * New upstream release.
+    - Fixes IBus not working properly. (Closes: #878484)
+
+ -- Felix Geyer <fgeyer at debian.org>  Sun, 04 Mar 2018 12:07:25 +0100
+
+libsdl2 (2.0.7+dfsg1-3) unstable; urgency=medium
+
+  * Team upload.
+  * Fix shlib symlink.
+
+ -- Fabian Greffrath <fabian at debian.org>  Thu, 09 Nov 2017 17:26:43 +0100
+
+libsdl2 (2.0.7+dfsg1-2) unstable; urgency=medium
+
+  * Team upload
+  * Bump std-version to 4.1.1, no changes required
+  * Add fcitx support (Closes: #881042), thanks
+    Zhang Jingqiang <zh_jq at outlook.com> for the report!
+  * Switch URI in secure mode
+  * Update copyright years
+  * Enable also samplerate support
+  * Also switch watch file in secure mode
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Tue, 07 Nov 2017 13:09:13 +0100
+
+libsdl2 (2.0.7+dfsg1-1) unstable; urgency=medium
+
+  * Team upload.
+  * New upstream version 2.0.7+dfsg1.
+  * Remove patches backported from upstream.
+  * bump SHLIBVER in debian/rules, as SDL_INTERFACE_AGE
+    in configure.in has been reset.
+
+ -- Fabian Greffrath <fabian at debian.org>  Mon, 06 Nov 2017 22:26:23 +0100
+
+libsdl2 (2.0.6+dfsg1-4) unstable; urgency=high
+
+  * Import further upstream patches for CVE-2017-2888.
+    The initial fix was incomplete. (Closes: #878264)
+    - d/patches/CVE-2017-2888-1.patch
+    - d/patches/CVE-2017-2888-2.patch
+    - d/patches/CVE-2017-2888-3.patch
+
+ -- Felix Geyer <fgeyer at debian.org>  Wed, 18 Oct 2017 21:36:23 +0200
+
+libsdl2 (2.0.6+dfsg1-3) unstable; urgency=high
+
+  [ Gianfranco Costamagna ]
+  * debian/patches/dc7245e3d1f2.patch:
+    - backport upstream fix for dbus error.
+      LP: #1721907
+      thanks LGB [Gábor Lénárt] (lgb) for the report!
+
+  [ Felix Geyer ]
+  * Fix CVE-2017-2888: Integer overflow while creating a new RGB surface.
+    - Add d/patches/CVE-2017-2888.patch
+    - Closes: #878264
+  * Enable verbose build logs.
+
+ -- Felix Geyer <fgeyer at debian.org>  Thu, 12 Oct 2017 18:33:41 +0200
+
+libsdl2 (2.0.6+dfsg1-2) unstable; urgency=medium
+
+  * Fix libSDL2-2.0.so symlink, thanks Andreas Beckmann (Closes: #877270)
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Sat, 30 Sep 2017 10:09:26 +0200
+
+libsdl2 (2.0.6+dfsg1-1) unstable; urgency=medium
+
+  [ Manuel A. Fernandez Montecelo ]
+  * New upstream release
+    - Closes: #733015
+  * Override on dh_installchangelogs to install upstream changelog WhatsNew.txt
+    (wrong override on dh_auto_installchangelogs before)
+  * Mark -doc package as "Multi-Arch: foreign"
+
+  [ Gianfranco Costamagna ]
+  * Make dev package finally multiarch
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Wed, 27 Sep 2017 00:29:24 +0200
+
+libsdl2 (2.0.5+dfsg1-3) unstable; urgency=medium
+
+  * Switch to debhelper compat level v10
+    - dh flags --parallel are not needed
+    - autoreconf is invoked by default
+      * disable autoheader (invoked automatically by autoreconf),
+        necessary in order to use debhelper compat level v10 without
+        overriding dh-autoreconf calls
+  * Bump Policy Standards-Version to 4.0.0 (no changes needed)
+  * Install WhatsNew.txt as upstream changelog
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Fri, 28 Jul 2017 23:35:01 +0200
+
+libsdl2 (2.0.5+dfsg1-2) unstable; urgency=medium
+
+  * Team Upload.
+  * Fix broken link (Closes: #849297)
+    - thanks Ben Longbons for the bug report!
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Tue, 27 Dec 2016 18:11:10 +0100
+
+libsdl2 (2.0.5+dfsg1-1) unstable; urgency=low
+
+  * New upstream release
+    - Drop (all) debian/patches, there had been originally backported from
+      upstream or are now applied there:
+      * replace-relicenced-SDL_qsort.patch
+      * SDL2_dont_propagate_lpthread.diff (included in 2.0.4 already, but not
+        dropped then)
+      * bug_822210_fix_sdl2-config.cmake_whitespace.patch
+  * d/control: add Build-Depend on wayland-protocols, needed by the new version
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Wed, 02 Nov 2016 01:20:36 +0100
+
+libsdl2 (2.0.4+dfsg2-1) unstable; urgency=medium
+
+  [ Manuel A. Fernandez Montecelo ]
+  * Bump Policy Standards-Version to 3.9.8 (no changes needed)
+  * Drop -dbg package
+  * Fixes for reproducible builds:
+    - timestamps_in_tarball, use --clamp-mtime with changelog as date
+    - timestamps_in_gzip_headers, export GZIP="-9n"
+    - sort files by name when creating "examples.tar.gz"
+  * Add depends from -doc on libjs-jquery, use symlink instead of embedded
+    copy
+  * Ensure proper migration from -dbg package using "dh_strip
+    --dbgsym-migration"
+  * Bump debhelper dependency for --dbgsym-migration
+  * Enable ibus support (Closes: #822924)
+  * d/patches:
+    - Add bug_822210_fix_sdl2-config.cmake_whitespace.patch: Fix upstream
+      problem with sdl2-config.cmake (Closes: #822210)
+
+  [ Gianfranco Costamagna ]
+  * Fix insecure VCS fields.
+  * Re-import the same tarball without SDL-qsort.c file.
+    - the license issue is fixed already, because the original
+      maintainer relicensed it (so we are adding it as a patch now)
+      this repack can be removed in the next upstream tarball import.
+      (Closes: #814276).
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Thu, 19 May 2016 11:48:54 +0100
+
+libsdl2 (2.0.4+dfsg1-2) unstable; urgency=low
+
+  * Upload to unstable
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Mon, 18 Jan 2016 16:36:59 +0100
+
+libsdl2 (2.0.4+dfsg1-1) experimental; urgency=medium
+
+  * Team upload.
+  * run wrap-and-sort -sa.
+  * Fix copyright lintian warning.
+  * Update copyright to new release.
+  * New upstream release (Closes: #788688, #798265, #788540)
+    - Drop patches use-default-screen and
+      fix_joystick_misc_axes.diff, applied upstream.
+  * Add Files-Excluded keyword to copyright file, allowing to
+    import a new release with uscan command. (Closes: #804662)
+  * Create new -doc package, and move examples into it (Closes: #739430).
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Sun, 03 Jan 2016 12:12:54 +0100
+
+libsdl2 (2.0.2+dfsg1-8) unstable; urgency=medium
+
+  * Change to improve build reproducibility: tar file permission modes.
+    Thanks Reiner Herrmann. (Closes: #803578)
+  * Build with sndio support (Closes: #799707)
+  * Update d/copyright to adapt to minor changes in code and files moved
+    around, and quell lintian (spelling-error-in-copyright,
+    wildcard-matches-nothing-in-dep5-copyright and
+    unused-file-paragraph-in-dep5-copyright)
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Sun, 01 Nov 2015 00:55:03 +0000
+
+libsdl2 (2.0.2+dfsg1-7) unstable; urgency=medium
+
+  * Bump Policy Standards-Version to 3.9.6 (no changes needed)
+  * Remove Barry deFreese from uploaders
+  * Change for reproducible builds: use "--owner=0 --group=0" when
+    creating the "examples" tar file (Closes: #777186).  Thanks Chris Lamb
+    and rest of the Reproducible Builds team for the analysis and patch
+    suggested.
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Mon, 27 Apr 2015 22:53:31 +0100
+
+libsdl2 (2.0.2+dfsg1-6) unstable; urgency=medium
+
+  * rules: disable activec for ppc64el build (Closes: #770670)
+
+ -- Dominique Dumont <dod at debian.org>  Thu, 27 Nov 2014 18:52:50 +0100
+
+libsdl2 (2.0.2+dfsg1-5) unstable; urgency=medium
+
+  * patch to use default screen from DISPLAY (Closes: #754401)
+  * fix short name of BSD-3-clause
+
+ -- Dominique Dumont <dod at debian.org>  Sat, 18 Oct 2014 19:01:30 +0200
+
+libsdl2 (2.0.2+dfsg1-4) unstable; urgency=medium
+
+  [ Hector Oron ]
+  * d/control: remove libts-dev build depends. (Closes: #751766)
+
+  [ Felix Geyer ]
+  * Move upstream GPG key as an ascii-armored keyring to debian/upstream/.
+
+ -- Felix Geyer <fgeyer at debian.org>  Mon, 16 Jun 2014 21:02:07 +0200
+
+libsdl2 (2.0.2+dfsg1-3) unstable; urgency=medium
+
+  * Actually change Build-Depends libegl1-mesa-dev to be conditionally
+    [!hurd-any].  It was applied to libgl1-mesa-dev by mistake in -2.
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Wed, 19 Mar 2014 20:22:29 +0000
+
+libsdl2 (2.0.2+dfsg1-2) unstable; urgency=medium
+
+  * Conditional dependencies libegl1-mesa-dev [!hurd-any],
+    libgles2-mesa-dev [!hurd-any] and libwayland-dev [linux-any], they do
+    not seem to support these kernels at the moment
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Tue, 18 Mar 2014 20:17:10 +0000
+
+libsdl2 (2.0.2+dfsg1-1) unstable; urgency=low
+
+  * New upstream release
+    - Remove patch applied upstream: fix_ftbfs_kfreebsd.diff
+    - Add support for Wayland, including build-depends for libegl1-mesa-dev,
+      libxkbcommon-dev and libwayland-dev.  Thanks Franz Schrober for the
+      request and the help to enable it.  (Closes: #714482)
+    - Add support for OpenGLES, including build-depends for libgles2-mesa-dev
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Sat, 15 Mar 2014 00:22:48 +0000
+
+libsdl2 (2.0.1+dfsg1-3) unstable; urgency=medium
+
+  * Use "dh_autoreconf" to support new architectures
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Sun, 09 Mar 2014 01:58:11 +0000
+
+libsdl2 (2.0.1+dfsg1-2) unstable; urgency=medium
+
+  * Fix FTBFS on kFreeBSD.
+    - Add fix_ftbfs_kfreebsd.diff to extend a __FreeBSD__ check to
+      __FreeBSD_kernel__.
+
+ -- Felix Geyer <fgeyer at debian.org>  Sun, 05 Jan 2014 13:42:59 +0100
+
+libsdl2 (2.0.1+dfsg1-1) unstable; urgency=medium
+
+  * New upstream release (Closes: #728974)
+    - Remove patch applied upstream:
+      bug-723797-false_positives_in_mouse_wheel_code.patch
+  * Bump Standards-Version to 3.9.5, no changes needed.
+
+  [ Felix Geyer ]
+  * Import upstream gpg key for uscan to verify the orig tarball.
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Sat, 28 Dec 2013 12:31:19 +0000
+
+libsdl2 (2.0.0+dfsg1-3) unstable; urgency=low
+
+  * Build-Depends on pkg-config
+  * Apply patch accepted upstream to work around a false-positive in the
+    X11 mouse wheel code (Closes: #723797).  Thanks Darren Salt for the
+    report and the fix.
+  * Review and removal of old patches not applied in SDL2, virtually of
+    them applied upstream, or rejected as invalid for good reason, or
+    don't apply any more (code/functionality removed upstream).  I
+    forwarded and documented the remaining patches.
+    - 001_autogen_autotools_fix.diff
+    - 020_libcaca_new_api.diff
+    - 030_pulseaudio_enable.diff
+    - 040_propagate_pic_to_nasm.diff
+    - 050_altivec_detection.diff
+    - 060_disable_ipod.diff
+    - 205_lock_keys.diff
+    - 205_x11_keysym_fix.diff
+    - 206_gcc4_compilation_fix.diff
+    - 209_alsa_priority.diff
+    - 214_missing_mmx_blit.diff
+    - 215_kfreebsd_gnu.diff
+    - 216_page_size.diff
+    - 217_x11_keytounicode.diff
+    - 218_double_free.diff
+    - 218_joystick_memmove.diff
+    - 219_pulseaudio_crackles.diff
+    - 220_std_cld.diff
+    - 221_check_SDL_NOKBD_environment_variable.diff
+    - 222_joystick_crash.diff
+    - 310_fixmouseclicks
+    - 310_segfault_noGLX.diff
+    - 320_activate_xrandr_on_default.diff
+    - 320_disappearingcursor.diff
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Sun, 20 Oct 2013 00:58:48 +0100
+
+libsdl2 (2.0.0+dfsg1-2) unstable; urgency=low
+
+  * Remove external_header_paths.diff, it's not needed anymore and pulls
+    harmful flags into the pkg-config file. Thanks to Thibaut Girka for
+    the report and analysis. (Closes: #720650)
+
+ -- Felix Geyer <fgeyer at debian.org>  Fri, 30 Aug 2013 20:20:47 +0200
+
+libsdl2 (2.0.0+dfsg1-1) unstable; urgency=low
+
+  * New upstream release
+  * Filter upstream tarball from binaries and unneeded cruft
+    - Remove from debian/copyright files that are now filtered out when creating
+      the orig.tar
+  * Add build-dependency on libdbus-1-dev, to use D-Bus
+  * Switch to @debian.org address
+  * Bring the man page of sdl-config up to date
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Mon, 12 Aug 2013 20:45:31 +0100
+
+libsdl2 (2.0.0~rc1-1) unstable; urgency=low
+
+  * New upstream release candidate.
+  * Filter debian/* when importing new upstream releases.
+  * Bump SHLIBVER to 2.0.0~rc1.
+  * Update debian/docs.
+  * Bump Standards-Version to 3.9.4, no changes needed.
+  * Disable directfb backend for now as it's broken and upstream
+    disables it by default.
+    - Drop the udeb package.
+  * Drop some unused dependencies and confflags.
+
+ -- Felix Geyer <fgeyer at debian.org>  Sun, 02 Jun 2013 18:31:42 +0200
+
+libsdl2 (2.0.0~20130103-1) unstable; urgency=low
+
+  [ Manuel A. Fernandez Montecelo ]
+  * debian/control:
+    - Updating maintainers/permissions:
+      - Add myself and Felix Geyer
+    - Update Build-Depends:
+      - Remove a few obsolete items
+      - Add items added lately to libsdl1.2, such as libts (touch screen)
+        support
+    - Add "libsdl2-dbg", analog to libsdl1.2-dbg
+    - Change "XC-Package-Type: udeb" to "Package-Type"
+  * debian/compat: set level 9
+  * debian/source/format: Set to "3.0 (quilt)"
+    - Remove README.source, not needed with new format
+  * debian/sdl2-config.1: Fix typo, "progams"->"programs"
+  * debian/libsdl2-dev.install:
+    - Remove "usr/lib/*/*.la", discouraged
+    - Add man pages: "usr/share/man/man3/*"
+  * debian/libsdl2-dev.manpages: add file to install local "sdl2-config.1"
+  * debian/sources: Removed, possible obsolete file from long ago?
+  * debian/copyright:
+    - Upstream updated to zlib/libpng
+    - Copyright-file format conversion to 1.0
+    - Complete revamp and detailed research about copyright and licenses used,
+      it's very messy but hopefully complete
+
+  [ Felix Geyer ]
+  * Simplify debian/rules by using dh(1).
+
+ -- Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>  Sun, 27 Jan 2013 16:40:49 +0100
+
+libsdl2 (2.0~20120220c-1) experimental; urgency=low
+
+  * Upstream version was renamed to 2.0 (Closes: #669367).
+  * New upstream snapshot (Closes: #671506).
+  * This package no longer conflicts with libsdl-1.2.
+  * debian/rules: add multiarch support (Closes: #669364).
+
+  * debian/patches/fix_joystick_misc_axes.diff: fix a joystick remapping
+    bug causing some axes to malfunction.
+  * debian/patches/external_header_paths.diff: provide additional CFLAGS
+    so that headers such as SDL_syswm.h can be included (Closes: #669363).
+
+ -- Sam Hocevar <sho at debian.org>  Thu, 17 May 2012 19:03:59 +0200
+
+libsdl-1.3 (1.3.0~20111204-1) experimental; urgency=low
+
+  * Initial upload from upstream snapshot.
+
+ -- Sam Hocevar <sho at debian.org>  Sun, 04 Dec 2011 14:35:05 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..7d7847a
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,8 @@
+debian/build-tests/
+docs/SDL.tag
+docs/doxygen_warn.txt
+include/SDL_config.h
+include/SDL_revision.h
+sdl2-config-version.cmake
+sdl2-config.cmake
+sdl2.pc
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f8e6202
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,156 @@
+Source: libsdl2
+Priority: optional
+Section: libs
+Maintainer: Debian SDL packages maintainers <pkg-sdl-maintainers at lists.alioth.debian.org>
+Uploaders:
+ Manuel A. Fernandez Montecelo <mafm at debian.org>,
+ Felix Geyer <fgeyer at debian.org>,
+ Simon McVittie <smcv at debian.org>
+Standards-Version: 4.6.2
+Build-Depends:
+ debhelper-compat (= 13),
+ fcitx-libs-dev,
+ libasound2-dev [linux-any],
+ libdbus-1-dev,
+ libdecor-0-dev (>= 0.1.1-2~) [linux-any],
+ libdrm-dev [linux-any],
+ libegl-dev [!hurd-any],
+ libgbm-dev [linux-any],
+ libgl-dev,
+ libgles-dev [!hurd-any],
+ libibus-1.0-dev,
+ libpipewire-0.3-dev (>= 0.3.20) [linux-any],
+ libpulse-dev,
+ libsamplerate0-dev,
+ libsndio-dev,
+ libudev-dev [linux-any],
+ libusb2-dev [kfreebsd-any],
+ libusbhid-dev [kfreebsd-any],
+ libvulkan-dev [linux-any],
+ libwayland-dev (>= 1.18) [linux-any],
+ libx11-dev,
+ libxcursor-dev,
+ libxext-dev,
+ libxfixes-dev,
+ libxi-dev,
+ libxinerama-dev,
+ libxkbcommon-dev (>= 0.5.0),
+ libxrandr-dev,
+ libxss-dev,
+ libxt-dev,
+ libxv-dev,
+ libxxf86vm-dev,
+ pkg-config,
+ wayland-protocols
+Build-Depends-Indep:
+ graphviz <!nodoc>,
+ doxygen <!nodoc>,
+Vcs-Git: https://salsa.debian.org/sdl-team/libsdl2.git
+Vcs-Browser: https://salsa.debian.org/sdl-team/libsdl2
+Homepage: https://www.libsdl.org/
+Rules-Requires-Root: no
+
+Package: libsdl2-2.0-0
+Architecture: any
+Multi-Arch: same
+Pre-Depends:
+ ${misc:Pre-Depends}
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Suggests:
+ xdg-utils,
+Conflicts:
+ libsdl-1.3-0
+Replaces:
+ libsdl-1.3-0
+Description: Simple DirectMedia Layer
+ SDL is a library that allows programs portable low level access to a video
+ framebuffer, audio output, mouse, and keyboard.
+ .
+ This version of SDL is compiled with X11 and Wayland graphics drivers and OSS,
+ ALSA, sndio and PulseAudio sound drivers.
+
+Package: libsdl2-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends:
+ libasound2-dev [linux-any],
+ libdbus-1-dev,
+ libdecor-0-dev [linux-any],
+ libdrm-dev [linux-any],
+ libegl-dev [!hurd-any],
+ libgbm-dev [linux-any],
+ libgl-dev,
+ libgles-dev [!hurd-any],
+ libibus-1.0-dev,
+ libpulse-dev,
+ libsamplerate0-dev,
+ libsdl2-2.0-0 (= ${binary:Version}),
+ libsndio-dev,
+ libudev-dev [linux-any],
+ libusb2-dev [kfreebsd-any],
+ libusbhid-dev [kfreebsd-any],
+ libwayland-dev [linux-any],
+ libx11-dev,
+ libxcursor-dev,
+ libxext-dev,
+ libxfixes-dev,
+ libxi-dev,
+ libxinerama-dev,
+ libxkbcommon-dev,
+ libxrandr-dev,
+ libxss-dev,
+ libxt-dev,
+ libxv-dev,
+ libxxf86vm-dev,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Conflicts:
+ libsdl-1.3-dev
+Replaces:
+ libsdl-1.3-dev
+Description: Simple DirectMedia Layer development files
+ SDL is a library that allows programs portable low level access to a video
+ framebuffer, audio output, mouse, and keyboard.
+ .
+ This package contains the files needed to compile and link programs which
+ use SDL.
+
+Package: libsdl2-doc
+Section: doc
+Architecture: all
+Multi-Arch: foreign
+Build-Profiles: <!nodoc>
+Depends:
+ ${misc:Depends},
+Breaks:
+ libsdl2-dev (<< 2.0.4+dfsg-1)
+Replaces:
+ libsdl2-dev (<< 2.0.4+dfsg-1)
+Description: Reference manual for libsdl2
+ SDL is a library that allows programs portable low level access to a video
+ framebuffer, audio output, mouse, and keyboard.
+ .
+ This package contains the reference manual and examples.
+
+Package: libsdl2-tests
+Section: misc
+Architecture: any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Suggests:
+ gnome-desktop-testing
+Breaks:
+ libsdl2-dev (<< 2.0.22+dfsg-2~)
+Replaces:
+ libsdl2-dev (<< 2.0.22+dfsg-2~)
+Description: Simple DirectMedia Layer automated and manual tests
+ SDL is a library that allows programs portable low level access to a video
+ framebuffer, audio output, mouse, and keyboard.
+ .
+ This package contains manual and automated tests. The automated tests can
+ be run using ginsttest-runner in the gnome-desktop-testing package,
+ or manually.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0f080f8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,567 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: SDL
+Upstream-Contact: Sam Lantinga <slouken at libsdl.org>
+Source: https://www.libsdl.org/
+Files-Excluded: Android.mk
+                android-project
+                src/hidapi/windows/ddk_build
+                src/render/metal/SDL_shaders_metal_*.h
+                src/video/os2/SDL_gradd.h
+                test/unifont-*
+                VisualC
+                VisualC-WinRT
+                Xcode
+                Xcode-iOS
+
+Files: *
+Copyright:
+ 1997-2023 Sam Lantinga <slouken at libsdl.org>
+ 2012 Raspberry Pi Foundation
+ 2012-2018 RISC OS Open Ltd
+ 2018-2019 EXL
+ 2020-2022 Valve Corporation
+ 2022 Collabora Ltd.
+License: zlib/libpng and zlib-libpng-like-permissive
+
+Files: include/SDL_egl.h
+       include/SDL_opengl_glext.h
+       include/SDL_opengles2_khrplatform.h
+Copyright: 1997-2021 Sam Lantinga
+           2008-2014 The Khronos Group Inc.
+License: zlib/libpng and Expat-like and Apache-2.0
+
+Files: include/SDL_opengles2_gl2.h
+       include/SDL_opengles2_gl2ext.h
+       include/SDL_opengles2_gl2platform.h
+Copyright: 1997-2016 Sam Lantinga <slouken at libsdl.org>
+License: SGI-Free-Software-License-B
+
+Files: include/SDL_hidapi.h
+       src/hidapi/*
+Copyright: 2009-2010 Alan Ott, Signal 11 Software
+           1997-2021 Sam Lantinga
+           2021 Valve Corporation
+License: BSD-3-clause or GPL-3 or hidapi-orig, and zlib/libpng
+
+Files: src/libm/*
+Copyright: 1993 by Sun Microsystems, Inc. All rights reserved.
+License: SunPro
+
+Files: src/main/windows/SDL_windows_main.c
+Copyright: 1998 Sam Lantinga
+License: PublicDomain_Sam_Lantinga
+Comment: SDL_main.c, placed in the public domain by Sam Lantinga  4/13/98
+
+Files: src/main/winrt/SDL_winrt_main_NonXAML.cpp
+Copyright: 2014 David Ludwig
+License: PublicDomain_David_Ludwig
+
+Files: src/render/SDL_yuv_sw.c
+Copyright: 1995 Erik Corry
+           1995 The Regents of the University of California
+           1995 Brown University
+License: BrownUn_UnCalifornia_ErikCorry
+
+Files: src/stdlib/SDL_qsort.c
+Copyright: 1998 Gareth McCaughan
+License: Gareth_McCaughan
+
+Files: src/test/SDL_test_md5.c include/SDL_test_md5.h
+Copyright: 1997-2012 Sam Lantinga <slouken at libsdl.org>
+           1990-1991 RSA Data Security, Inc.
+License: zlib/libpng and RSA_Data_Security
+
+Files:
+ src/video/arm/pixman-arm-asm.h
+ src/video/arm/pixman-arm-neon-asm.S
+ src/video/arm/pixman-arm-neon-asm.h
+Copyright:
+ 2009-2010 Nokia Corporation
+License: Mozilla-permissive and Expat and zlib/libpng
+
+Files: src/video/khronos/vulkan/*.h
+Copyright:
+ 2014-2020 The Khronos Group Inc.
+ 2015-2017 Valve Corporation
+ 2015-2017 LunarG, Inc.
+License: Apache-2.0
+
+Files: src/video/haiku/SDL_bkeyboard.cc
+       src/video/haiku/SDL_bkeyboard.h
+Copyright: 1997-2012 Sam Lantinga
+License: LGPL-2.1+
+
+Files: test/testautomation_*
+Copyright: Edgar Simo "bobbens"
+License: PublicDomain_Edgar_Simo
+
+Files: test/testautomation_rwops.c
+       include/SDL_test_fuzzer.h
+       include/SDL_test_harness.h
+Copyright: 2011 Markus Kauppila <markus.kauppila at gmail.com>
+License: zlib/libpng
+
+Files: test/testhaptic.c
+Copyright: 1997-2011 Sam Lantinga <slouken at libsdl.org>
+           2008 Edgar Simo Serra
+License: BSD-3-clause
+
+Files: test/testrumble.c
+Copyright: 1997-2011 Sam Lantinga <slouken at libsdl.org>
+           2011 Edgar Simo Serra
+License: BSD-3-clause
+
+Files: test/nacl/*
+Copyright: 2013 The Chromium Authors
+License: BSD-3-clause-chromium
+
+Files: test/shapes/*
+Copyright: none
+License: zlib/libpng
+Comment: No specific information about the images
+
+Files: wayland-protocols/*.xml
+Copyright:
+ 2008-2011 Kristian Høgsberg
+ 2010-2013 Intel Corporation
+ 2012-2016 Collabora, Ltd.
+ 2014 Stephen "Lyude" Chandler Paul
+ 2015-2016 Jan Arne Petersen
+ 2015 Samsung Electronics Co., Ltd
+ 2015-2018 Red Hat, Inc.
+ 2018 Purism SPC
+ 2022 Kenny Levinsen
+License: Expat and MIT-open-group
+
+Files: debian/*
+Copyright: 2015-2020, Gianfranco Costamagna <locutusofborg at debian.org>
+           2011-2013, Manuel A. Fernandez Montecelo <mafm at debian.org>
+           2011-2013, Felix Geyer <fgeyer at debian.org>
+           2011, Roman Vasiyarov <rvasiyarov at gmail.com>
+           2010, Jon Dowland <jmtd at debian.org>
+           2009, Barry deFreese <bdefreese at debian.org>
+           2007-2008, Aurelien Jarno <aurel32 at debian.org>
+           2007-2008, Sam Hocevar (Debian packages) <sam+deb at zoy.org>
+           2002-2007, Josselin Mouette <joss at debian.org>
+           2001, Christian T. Steigies <cts at debian.org>
+           2001, Branden Robinson <branden at debian.org>
+           2012, Canonical Ltd.
+           2018-2023, Simon McVittie
+           2022-2023, Collabora Ltd.
+License: LGPL-2.1+
+
+Files: debian/tests/cmake-findsdl2/FindSDL2.cmake
+Copyright: 2003-2009 Kitware, Inc.
+License: BSD-3-clause-kitware
+Comment:
+ Taken from the openjk package. Similar files exist in hedgewars, spring,
+ megaglest, etc.
+
+License: SGI-Free-Software-License-B
+ SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
+ Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
+ .
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice including the dates of first publication and
+ either this permission notice or a reference to
+ http://oss.sgi.com/projects/FreeB/
+ shall be included in all copies or substantial portions of the Software.
+ ,
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+ .
+ Except as contained in this notice, the name of Silicon Graphics, Inc.
+ shall not be used in advertising or otherwise to promote the sale, use or
+ other dealings in this Software without prior written authorization from
+ Silicon Graphics, Inc.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice (including the next
+ paragraph) shall be included in all copies or substantial portions of the
+ Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+License: Expat-like
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and/or associated documentation files (the
+ "Materials"), to deal in the Materials without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Materials, and to
+ permit persons to whom the Materials are furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Materials.
+ .
+ THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+License: zlib/libpng
+ This software is provided 'as-is', without any express or implied
+ warranty.  In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+    claim that you wrote the original software. If you use this software
+    in a product, an acknowledgment in the product documentation would be
+    appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+    misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
+License: zlib-libpng-like-permissive
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+  .
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely.
+
+License: LGPL-2.1+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or (at
+ your option) any later version.
+ .
+ On Debian systems, the complete text of version 2.1 of the GNU Lesser General
+ Public License can be found in '/usr/share/common-licenses/LGPL-2.1'.
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+      http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, a copy of the Apache License version 2.0
+ can be found in /usr/share/common-licenses/Apache-2.0.
+
+License: BSD-3-clause-chromium
+ Copyright (c) 2011 Google Inc. All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+    * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following disclaimer
+ in the documentation and/or other materials provided with the
+ distribution.
+    * Neither the name of Google Inc. nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: BSD-3-clause-kitware
+ Copyright 2003-2009 Kitware, Inc.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ * Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ .
+ * Neither the names of Kitware, Inc., the Insight Software Consortium,
+   nor the names of their contributors may be used to endorse or promote
+   products derived from this software without specific prior written
+   permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+     * Redistributions of source code must retain the above copyright
+       notice, this list of conditions and the following disclaimer.
+     * Redistributions in binary form must reproduce the above copyright
+       notice, this list of conditions and the following disclaimer in the
+       documentation and/or other materials provided with the distribution.
+     * Neither the name of the LibQxt project nor the
+       names of its contributors may be used to endorse or promote products
+       derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+Comment:
+  Copyright (C) 1997-2011 Sam Lantinga <slouken at libsdl.org>
+  .
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+  .
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely.
+  .
+  .
+  Copyright (c) 2011, Edgar Simo Serra
+  All rights reserved.
+  .
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are met:
+  .
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+    * Neither the name of the Simple Directmedia Layer (SDL) nor the names of
+      its contributors may be used to endorse or promote products derived from
+      this software without specific prior written permission.
+  .
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: BrownUn_UnCalifornia_ErikCorry
+ /* This code was derived from code carrying the following copyright notices:
+  * Copyright (c) 1995 The Regents of the University of California.
+  * All rights reserved.
+  *
+  * Permission to use, copy, modify, and distribute this software and its
+  * documentation for any purpose, without fee, and without written agreement is
+  * hereby granted, provided that the above copyright notice and the following
+  * two paragraphs appear in all copies of this software.
+  *
+  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
+  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
+  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
+  * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+  *
+  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
+  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+  * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
+  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+  *
+  * Copyright (c) 1995 Erik Corry
+  * All rights reserved.
+  *
+  * Permission to use, copy, modify, and distribute this software and its
+  * documentation for any purpose, without fee, and without written agreement is
+  * hereby granted, provided that the above copyright notice and the following
+  * two paragraphs appear in all copies of this software.
+  *
+  * IN NO EVENT SHALL ERIK CORRY BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+  * SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+  * THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ERIK CORRY HAS BEEN ADVISED
+  * OF THE POSSIBILITY OF SUCH DAMAGE.
+  *
+  * ERIK CORRY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+  * PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
+  * BASIS, AND ERIK CORRY HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT,
+  * UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+  *
+  * Portions of this software Copyright (c) 1995 Brown University.
+  * All rights reserved.
+  *
+  * Permission to use, copy, modify, and distribute this software and its
+  * documentation for any purpose, without fee, and without written agreement
+  * is hereby granted, provided that the above copyright notice and the
+  * following two paragraphs appear in all copies of this software.
+  *
+  * IN NO EVENT SHALL BROWN UNIVERSITY BE LIABLE TO ANY PARTY FOR
+  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
+  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF BROWN
+  * UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+  *
+  * BROWN UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+  * PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
+  * BASIS, AND BROWN UNIVERSITY HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
+  * SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+  */
+
+License: GPL-3
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in
+ /usr/share/common-licenses/GPL-3.
+
+License: Gareth_McCaughan
+  You may use it in anything you like; you may make money
+  out of it; you may distribute it in object form or as
+  part of an executable without including source code;
+  you don't have to credit me. (But it would be nice if
+  you did.)
+
+License: SunPro
+  Developed at SunPro, a Sun Microsystems, Inc. business.
+  Permission to use, copy, modify, and distribute this
+  software is freely granted, provided that this notice
+  is preserved.
+
+License: PublicDomain_Sam_Lantinga
+ Placed in the public domain by Sam Lantinga  4/13/98
+
+License: PublicDomain_David_Ludwig
+ placed in the public domain by David Ludwig  3/13/14
+
+License: PublicDomain_Edgar_Simo
+ Written by Edgar Simo "bobbens"
+ .
+ Released under Public Domain.
+
+License: RSA_Data_Security
+ ***********************************************************************
+ ** utl_md5.c -- the source code for MD5 routines                      **
+ ** RSA Data Security, Inc. MD5 Message-Digest Algorithm              **
+ ** Created: 2/17/90 RLR                                              **
+ ** Revised: 1/91 SRD,AJ,BSK,JT Reference C ver., 7/10 constant corr. **
+ ***********************************************************************
+ ***********************************************************************
+ ** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved.  **
+ **                                                                   **
+ ** License to copy and use this software is granted provided that    **
+ ** it is identified as the "RSA Data Security, Inc. MD5 Message-     **
+ ** Digest Algorithm" in all material mentioning or referencing this  **
+ ** software or this function.                                        **
+ **                                                                   **
+ ** License is also granted to make and use derivative works          **
+ ** provided that such works are identified as "derived from the RSA  **
+ ** Data Security, Inc. MD5 Message-Digest Algorithm" in all          **
+ ** material mentioning or referencing the derived work.              **
+ **                                                                   **
+ ** RSA Data Security, Inc. makes no representations concerning       **
+ ** either the merchantability of this software or the suitability    **
+ ** of this software for any particular purpose.  It is provided "as  **
+ ** is" without express or implied warranty of any kind.              **
+ **                                                                   **
+ ** These notices must be retained in any copies of any part of this  **
+ ** documentation and/or software.                                    **
+ ***********************************************************************
+
+License: MIT-open-group
+ Permission to use, copy, modify, distribute, and sell this
+ software and its documentation for any purpose is hereby granted
+ without fee, provided that the above copyright notice appear in
+ all copies and that both that copyright notice and this permission
+ notice appear in supporting documentation, and that the name of
+ the copyright holders not be used in advertising or publicity
+ pertaining to distribution of the software without specific,
+ written prior permission.  The copyright holders make no
+ representations about the suitability of this software for any
+ purpose.  It is provided "as is" without express or implied
+ warranty.
+ .
+ THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+ AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
+ THIS SOFTWARE.
+Comment: SPDX: MIT-open-group
+
+License: Mozilla-permissive
+ Permission to use, copy, modify, distribute, and sell this software and its
+ documentation for any purpose is hereby granted without fee, provided that
+ the above copyright notice appear in all copies and that both that
+ copyright notice and this permission notice appear in supporting
+ documentation, and that the name of Mozilla Corporation not be used in
+ advertising or publicity pertaining to distribution of the software without
+ specific, written prior permission.  Mozilla Corporation makes no
+ representations about the suitability of this software for any purpose.  It
+ is provided "as is" without express or implied warranty.
+ .
+ THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+ AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+ OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ SOFTWARE.
+Comment:
+ Same as MIT-open-group but with "Mozilla Corporation" instead of
+ "The copyright holders"
+
+License: hidapi-orig
+ This software may be used by anyone for any reason so
+ long as the copyright notice in the source files
+ remains intact.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..475271b
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,4 @@
+BUGS.txt
+CREDITS.txt
+README-SDL.txt
+README.md
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..b6829f9
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,20 @@
+[DEFAULT]
+pristine-tar = True
+debian-branch = debian/latest
+upstream-branch = upstream/2.28.x
+sign-tags = True
+
+[import-orig]
+filter = [
+  'Android.mk',
+  'android-project',
+  'src/hidapi/windows/ddk_build',
+  'src/render/metal/SDL_shaders_metal_*.h',
+  'src/video/os2/SDL_gradd.h',
+  'test/unifont-*',
+  'VisualC',
+  'VisualC-WinRT',
+  'Xcode',
+  'Xcode-iOS',
+  ]
+filter-pristine-tar = True
diff --git a/debian/libsdl2-2.0-0.install b/debian/libsdl2-2.0-0.install
new file mode 100644
index 0000000..e4193c7
--- /dev/null
+++ b/debian/libsdl2-2.0-0.install
@@ -0,0 +1 @@
+usr/lib/*/libSDL2-2.0.so.0*
diff --git a/debian/libsdl2-2.0-0.symbols b/debian/libsdl2-2.0-0.symbols
new file mode 100644
index 0000000..97f9f00
--- /dev/null
+++ b/debian/libsdl2-2.0-0.symbols
@@ -0,0 +1,840 @@
+libSDL2-2.0.so.0 libsdl2-2.0-0 #MINVER#
+* Build-Depends-Package: libsdl2-dev
+ (arch=linux-any)SDL_LinuxSetThreadPriority at Base 2.0.12
+ (arch=linux-any)SDL_LinuxSetThreadPriorityAndPolicy at Base 2.0.18
+ SDL_AddEventWatch at Base 2.0.12
+ SDL_AddHintCallback at Base 2.0.12
+ SDL_AddTimer at Base 2.0.12
+ SDL_AllocFormat at Base 2.0.12
+ SDL_AllocPalette at Base 2.0.12
+ SDL_AllocRW at Base 2.0.12
+ SDL_AtomicAdd at Base 2.0.12
+ SDL_AtomicCAS at Base 2.0.12
+ SDL_AtomicCASPtr at Base 2.0.12
+ SDL_AtomicGet at Base 2.0.12
+ SDL_AtomicGetPtr at Base 2.0.12
+ SDL_AtomicLock at Base 2.0.12
+ SDL_AtomicSet at Base 2.0.12
+ SDL_AtomicSetPtr at Base 2.0.12
+ SDL_AtomicTryLock at Base 2.0.12
+ SDL_AtomicUnlock at Base 2.0.12
+ SDL_AudioInit at Base 2.0.12
+ SDL_AudioQuit at Base 2.0.12
+ SDL_AudioStreamAvailable at Base 2.0.12
+ SDL_AudioStreamClear at Base 2.0.12
+ SDL_AudioStreamFlush at Base 2.0.12
+ SDL_AudioStreamGet at Base 2.0.12
+ SDL_AudioStreamPut at Base 2.0.12
+ SDL_BuildAudioCVT at Base 2.0.12
+ SDL_CalculateGammaRamp at Base 2.0.12
+ SDL_CaptureMouse at Base 2.0.12
+ SDL_ClearComposition at Base 2.0.22
+ SDL_ClearError at Base 2.0.12
+ SDL_ClearHints at Base 2.0.12
+ SDL_ClearQueuedAudio at Base 2.0.12
+ SDL_CloseAudio at Base 2.0.12
+ SDL_CloseAudioDevice at Base 2.0.12
+ SDL_ComposeCustomBlendMode at Base 2.0.12
+ SDL_CondBroadcast at Base 2.0.12
+ SDL_CondSignal at Base 2.0.12
+ SDL_CondWait at Base 2.0.12
+ SDL_CondWaitTimeout at Base 2.0.12
+ SDL_ConvertAudio at Base 2.0.12
+ SDL_ConvertPixels at Base 2.0.12
+ SDL_ConvertSurface at Base 2.0.12
+ SDL_ConvertSurfaceFormat at Base 2.0.12
+ SDL_CreateColorCursor at Base 2.0.12
+ SDL_CreateCond at Base 2.0.12
+ SDL_CreateCursor at Base 2.0.12
+ SDL_CreateMutex at Base 2.0.12
+ SDL_CreateRGBSurface at Base 2.0.12
+ SDL_CreateRGBSurfaceFrom at Base 2.0.12
+ SDL_CreateRGBSurfaceWithFormat at Base 2.0.12
+ SDL_CreateRGBSurfaceWithFormatFrom at Base 2.0.12
+ SDL_CreateRenderer at Base 2.0.12
+ SDL_CreateSemaphore at Base 2.0.12
+ SDL_CreateShapedWindow at Base 2.0.12
+ SDL_CreateSoftwareRenderer at Base 2.0.12
+ SDL_CreateSystemCursor at Base 2.0.12
+ SDL_CreateTexture at Base 2.0.12
+ SDL_CreateTextureFromSurface at Base 2.0.12
+ SDL_CreateThread at Base 2.0.12
+ SDL_CreateThreadWithStackSize at Base 2.0.12
+ SDL_CreateWindow at Base 2.0.12
+ SDL_CreateWindowAndRenderer at Base 2.0.12
+ SDL_CreateWindowFrom at Base 2.0.12
+ SDL_DYNAPI_entry at Base 2.0.12
+ SDL_DelEventWatch at Base 2.0.12
+ SDL_DelHintCallback at Base 2.0.12
+ SDL_Delay at Base 2.0.12
+ SDL_DequeueAudio at Base 2.0.12
+ SDL_DestroyCond at Base 2.0.12
+ SDL_DestroyMutex at Base 2.0.12
+ SDL_DestroyRenderer at Base 2.0.12
+ SDL_DestroySemaphore at Base 2.0.12
+ SDL_DestroyTexture at Base 2.0.12
+ SDL_DestroyWindow at Base 2.0.12
+ SDL_DestroyWindowSurface at Base 2.27.1
+ SDL_DetachThread at Base 2.0.12
+ SDL_DisableScreenSaver at Base 2.0.12
+ SDL_DuplicateSurface at Base 2.0.12
+ SDL_EnableScreenSaver at Base 2.0.12
+ SDL_EncloseFPoints at Base 2.0.22
+ SDL_EnclosePoints at Base 2.0.12
+ SDL_Error at Base 2.0.12
+ SDL_EventState at Base 2.0.12
+ SDL_FillRect at Base 2.0.12
+ SDL_FillRects at Base 2.0.12
+ SDL_FilterEvents at Base 2.0.12
+ SDL_FlashWindow at Base 2.0.16
+ SDL_FlushEvent at Base 2.0.12
+ SDL_FlushEvents at Base 2.0.12
+ SDL_FreeAudioStream at Base 2.0.12
+ SDL_FreeCursor at Base 2.0.12
+ SDL_FreeFormat at Base 2.0.12
+ SDL_FreePalette at Base 2.0.12
+ SDL_FreeRW at Base 2.0.12
+ SDL_FreeSurface at Base 2.0.12
+ SDL_FreeWAV at Base 2.0.12
+ SDL_GL_BindTexture at Base 2.0.12
+ SDL_GL_CreateContext at Base 2.0.12
+ SDL_GL_DeleteContext at Base 2.0.12
+ SDL_GL_ExtensionSupported at Base 2.0.12
+ SDL_GL_GetAttribute at Base 2.0.12
+ SDL_GL_GetCurrentContext at Base 2.0.12
+ SDL_GL_GetCurrentWindow at Base 2.0.12
+ SDL_GL_GetDrawableSize at Base 2.0.12
+ SDL_GL_GetProcAddress at Base 2.0.12
+ SDL_GL_GetSwapInterval at Base 2.0.12
+ SDL_GL_LoadLibrary at Base 2.0.12
+ SDL_GL_MakeCurrent at Base 2.0.12
+ SDL_GL_ResetAttributes at Base 2.0.12
+ SDL_GL_SetAttribute at Base 2.0.12
+ SDL_GL_SetSwapInterval at Base 2.0.12
+ SDL_GL_SwapWindow at Base 2.0.12
+ SDL_GL_UnbindTexture at Base 2.0.12
+ SDL_GL_UnloadLibrary at Base 2.0.12
+ SDL_GUIDFromString at Base 2.24.0
+ SDL_GUIDToString at Base 2.24.0
+ SDL_GameControllerAddMapping at Base 2.0.12
+ SDL_GameControllerAddMappingsFromRW at Base 2.0.12
+ SDL_GameControllerClose at Base 2.0.12
+ SDL_GameControllerEventState at Base 2.0.12
+ SDL_GameControllerFromInstanceID at Base 2.0.12
+ SDL_GameControllerFromPlayerIndex at Base 2.0.12
+ SDL_GameControllerGetAppleSFSymbolsNameForAxis at Base 2.0.18
+ SDL_GameControllerGetAppleSFSymbolsNameForButton at Base 2.0.18
+ SDL_GameControllerGetAttached at Base 2.0.12
+ SDL_GameControllerGetAxis at Base 2.0.12
+ SDL_GameControllerGetAxisFromString at Base 2.0.12
+ SDL_GameControllerGetBindForAxis at Base 2.0.12
+ SDL_GameControllerGetBindForButton at Base 2.0.12
+ SDL_GameControllerGetButton at Base 2.0.12
+ SDL_GameControllerGetButtonFromString at Base 2.0.12
+ SDL_GameControllerGetFirmwareVersion at Base 2.24.0
+ SDL_GameControllerGetJoystick at Base 2.0.12
+ SDL_GameControllerGetNumTouchpadFingers at Base 2.0.14
+ SDL_GameControllerGetNumTouchpads at Base 2.0.14
+ SDL_GameControllerGetPlayerIndex at Base 2.0.12
+ SDL_GameControllerGetProduct at Base 2.0.12
+ SDL_GameControllerGetProductVersion at Base 2.0.12
+ SDL_GameControllerGetSensorData at Base 2.0.14
+ SDL_GameControllerGetSensorDataRate at Base 2.0.16
+ SDL_GameControllerGetSensorDataWithTimestamp at Base 2.26.0
+ SDL_GameControllerGetSerial at Base 2.0.14
+ SDL_GameControllerGetStringForAxis at Base 2.0.12
+ SDL_GameControllerGetStringForButton at Base 2.0.12
+ SDL_GameControllerGetTouchpadFinger at Base 2.0.14
+ SDL_GameControllerGetType at Base 2.0.12
+ SDL_GameControllerGetVendor at Base 2.0.12
+ SDL_GameControllerHasAxis at Base 2.0.14
+ SDL_GameControllerHasButton at Base 2.0.14
+ SDL_GameControllerHasLED at Base 2.0.14
+ SDL_GameControllerHasRumble at Base 2.0.18
+ SDL_GameControllerHasRumbleTriggers at Base 2.0.18
+ SDL_GameControllerHasSensor at Base 2.0.14
+ SDL_GameControllerIsSensorEnabled at Base 2.0.14
+ SDL_GameControllerMapping at Base 2.0.12
+ SDL_GameControllerMappingForDeviceIndex at Base 2.0.12
+ SDL_GameControllerMappingForGUID at Base 2.0.12
+ SDL_GameControllerMappingForIndex at Base 2.0.12
+ SDL_GameControllerName at Base 2.0.12
+ SDL_GameControllerNameForIndex at Base 2.0.12
+ SDL_GameControllerNumMappings at Base 2.0.12
+ SDL_GameControllerOpen at Base 2.0.12
+ SDL_GameControllerPath at Base 2.24.0
+ SDL_GameControllerPathForIndex at Base 2.24.0
+ SDL_GameControllerRumble at Base 2.0.12
+ SDL_GameControllerRumbleTriggers at Base 2.0.14
+ SDL_GameControllerSendEffect at Base 2.0.16
+ SDL_GameControllerSetLED at Base 2.0.14
+ SDL_GameControllerSetPlayerIndex at Base 2.0.12
+ SDL_GameControllerSetSensorEnabled at Base 2.0.14
+ SDL_GameControllerTypeForIndex at Base 2.0.12
+ SDL_GameControllerUpdate at Base 2.0.12
+ SDL_GetAssertionHandler at Base 2.0.12
+ SDL_GetAssertionReport at Base 2.0.12
+ SDL_GetAudioDeviceName at Base 2.0.12
+ SDL_GetAudioDeviceSpec at Base 2.0.16
+ SDL_GetAudioDeviceStatus at Base 2.0.12
+ SDL_GetAudioDriver at Base 2.0.12
+ SDL_GetAudioStatus at Base 2.0.12
+ SDL_GetBasePath at Base 2.0.12
+ SDL_GetCPUCacheLineSize at Base 2.0.12
+ SDL_GetCPUCount at Base 2.0.12
+ SDL_GetClipRect at Base 2.0.12
+ SDL_GetClipboardText at Base 2.0.12
+ SDL_GetClosestDisplayMode at Base 2.0.12
+ SDL_GetColorKey at Base 2.0.12
+ SDL_GetCurrentAudioDriver at Base 2.0.12
+ SDL_GetCurrentDisplayMode at Base 2.0.12
+ SDL_GetCurrentVideoDriver at Base 2.0.12
+ SDL_GetCursor at Base 2.0.12
+ SDL_GetDefaultAssertionHandler at Base 2.0.12
+ SDL_GetDefaultAudioInfo at Base 2.24.0
+ SDL_GetDefaultCursor at Base 2.0.12
+ SDL_GetDesktopDisplayMode at Base 2.0.12
+ SDL_GetDisplayBounds at Base 2.0.12
+ SDL_GetDisplayDPI at Base 2.0.12
+ SDL_GetDisplayMode at Base 2.0.12
+ SDL_GetDisplayName at Base 2.0.12
+ SDL_GetDisplayOrientation at Base 2.0.12
+ SDL_GetDisplayUsableBounds at Base 2.0.12
+ SDL_GetError at Base 2.0.12
+ SDL_GetErrorMsg at Base 2.0.14
+ SDL_GetEventFilter at Base 2.0.12
+ SDL_GetGlobalMouseState at Base 2.0.12
+ SDL_GetGrabbedWindow at Base 2.0.12
+ SDL_GetHint at Base 2.0.12
+ SDL_GetHintBoolean at Base 2.0.12
+ SDL_GetJoystickGUIDInfo at Base 2.26.0
+ SDL_GetKeyFromName at Base 2.0.12
+ SDL_GetKeyFromScancode at Base 2.0.12
+ SDL_GetKeyName at Base 2.0.12
+ SDL_GetKeyboardFocus at Base 2.0.12
+ SDL_GetKeyboardState at Base 2.0.12
+ SDL_GetMemoryFunctions at Base 2.0.12
+ SDL_GetModState at Base 2.0.12
+ SDL_GetMouseFocus at Base 2.0.12
+ SDL_GetMouseState at Base 2.0.12
+ SDL_GetNumAllocations at Base 2.0.12
+ SDL_GetNumAudioDevices at Base 2.0.12
+ SDL_GetNumAudioDrivers at Base 2.0.12
+ SDL_GetNumDisplayModes at Base 2.0.12
+ SDL_GetNumRenderDrivers at Base 2.0.12
+ SDL_GetNumTouchDevices at Base 2.0.12
+ SDL_GetNumTouchFingers at Base 2.0.12
+ SDL_GetNumVideoDisplays at Base 2.0.12
+ SDL_GetNumVideoDrivers at Base 2.0.12
+ SDL_GetOriginalMemoryFunctions at Base 2.24.0
+ SDL_GetPerformanceCounter at Base 2.0.12
+ SDL_GetPerformanceFrequency at Base 2.0.12
+ SDL_GetPixelFormatName at Base 2.0.12
+ SDL_GetPlatform at Base 2.0.12
+ SDL_GetPointDisplayIndex at Base 2.24.0
+ SDL_GetPowerInfo at Base 2.0.12
+ SDL_GetPrefPath at Base 2.0.12
+ SDL_GetPreferredLocales at Base 2.0.14
+ SDL_GetPrimarySelectionText at Base 2.26.0
+ SDL_GetQueuedAudioSize at Base 2.0.12
+ SDL_GetRGB at Base 2.0.12
+ SDL_GetRGBA at Base 2.0.12
+ SDL_GetRectDisplayIndex at Base 2.24.0
+ SDL_GetRelativeMouseMode at Base 2.0.12
+ SDL_GetRelativeMouseState at Base 2.0.12
+ SDL_GetRenderDrawBlendMode at Base 2.0.12
+ SDL_GetRenderDrawColor at Base 2.0.12
+ SDL_GetRenderDriverInfo at Base 2.0.12
+ SDL_GetRenderTarget at Base 2.0.12
+ SDL_GetRenderer at Base 2.0.12
+ SDL_GetRendererInfo at Base 2.0.12
+ SDL_GetRendererOutputSize at Base 2.0.12
+ SDL_GetRevision at Base 2.0.12
+ SDL_GetRevisionNumber at Base 2.0.12
+ SDL_GetScancodeFromKey at Base 2.0.12
+ SDL_GetScancodeFromName at Base 2.0.12
+ SDL_GetScancodeName at Base 2.0.12
+ SDL_GetShapedWindowMode at Base 2.0.12
+ SDL_GetSurfaceAlphaMod at Base 2.0.12
+ SDL_GetSurfaceBlendMode at Base 2.0.12
+ SDL_GetSurfaceColorMod at Base 2.0.12
+ SDL_GetSystemRAM at Base 2.0.12
+ SDL_GetTextureAlphaMod at Base 2.0.12
+ SDL_GetTextureBlendMode at Base 2.0.12
+ SDL_GetTextureColorMod at Base 2.0.12
+ SDL_GetTextureScaleMode at Base 2.0.12
+ SDL_GetTextureUserData at Base 2.0.18
+ SDL_GetThreadID at Base 2.0.12
+ SDL_GetThreadName at Base 2.0.12
+ SDL_GetTicks64 at Base 2.0.18
+ SDL_GetTicks at Base 2.0.12
+ SDL_GetTouchDevice at Base 2.0.12
+ SDL_GetTouchDeviceType at Base 2.0.12
+ SDL_GetTouchFinger at Base 2.0.12
+ SDL_GetTouchName at Base 2.0.22
+ SDL_GetVersion at Base 2.0.12
+ SDL_GetVideoDriver at Base 2.0.12
+ SDL_GetWindowBordersSize at Base 2.0.12
+ SDL_GetWindowBrightness at Base 2.0.12
+ SDL_GetWindowData at Base 2.0.12
+ SDL_GetWindowDisplayIndex at Base 2.0.12
+ SDL_GetWindowDisplayMode at Base 2.0.12
+ SDL_GetWindowFlags at Base 2.0.12
+ SDL_GetWindowFromID at Base 2.0.12
+ SDL_GetWindowGammaRamp at Base 2.0.12
+ SDL_GetWindowGrab at Base 2.0.12
+ SDL_GetWindowICCProfile at Base 2.0.18
+ SDL_GetWindowID at Base 2.0.12
+ SDL_GetWindowKeyboardGrab at Base 2.0.16
+ SDL_GetWindowMaximumSize at Base 2.0.12
+ SDL_GetWindowMinimumSize at Base 2.0.12
+ SDL_GetWindowMouseGrab at Base 2.0.16
+ SDL_GetWindowMouseRect at Base 2.0.18
+ SDL_GetWindowOpacity at Base 2.0.12
+ SDL_GetWindowPixelFormat at Base 2.0.12
+ SDL_GetWindowPosition at Base 2.0.12
+ SDL_GetWindowSize at Base 2.0.12
+ SDL_GetWindowSizeInPixels at Base 2.26.0
+ SDL_GetWindowSurface at Base 2.0.12
+ SDL_GetWindowTitle at Base 2.0.12
+ SDL_GetWindowWMInfo at Base 2.0.12
+ SDL_GetYUVConversionMode at Base 2.0.12
+ SDL_GetYUVConversionModeForResolution at Base 2.0.12
+ SDL_HapticClose at Base 2.0.12
+ SDL_HapticDestroyEffect at Base 2.0.12
+ SDL_HapticEffectSupported at Base 2.0.12
+ SDL_HapticGetEffectStatus at Base 2.0.12
+ SDL_HapticIndex at Base 2.0.12
+ SDL_HapticName at Base 2.0.12
+ SDL_HapticNewEffect at Base 2.0.12
+ SDL_HapticNumAxes at Base 2.0.12
+ SDL_HapticNumEffects at Base 2.0.12
+ SDL_HapticNumEffectsPlaying at Base 2.0.12
+ SDL_HapticOpen at Base 2.0.12
+ SDL_HapticOpenFromJoystick at Base 2.0.12
+ SDL_HapticOpenFromMouse at Base 2.0.12
+ SDL_HapticOpened at Base 2.0.12
+ SDL_HapticPause at Base 2.0.12
+ SDL_HapticQuery at Base 2.0.12
+ SDL_HapticRumbleInit at Base 2.0.12
+ SDL_HapticRumblePlay at Base 2.0.12
+ SDL_HapticRumbleStop at Base 2.0.12
+ SDL_HapticRumbleSupported at Base 2.0.12
+ SDL_HapticRunEffect at Base 2.0.12
+ SDL_HapticSetAutocenter at Base 2.0.12
+ SDL_HapticSetGain at Base 2.0.12
+ SDL_HapticStopAll at Base 2.0.12
+ SDL_HapticStopEffect at Base 2.0.12
+ SDL_HapticUnpause at Base 2.0.12
+ SDL_HapticUpdateEffect at Base 2.0.12
+ SDL_Has3DNow at Base 2.0.12
+ SDL_HasARMSIMD at Base 2.0.12
+ SDL_HasAVX2 at Base 2.0.12
+ SDL_HasAVX512F at Base 2.0.12
+ SDL_HasAVX at Base 2.0.12
+ SDL_HasAltiVec at Base 2.0.12
+ SDL_HasClipboardText at Base 2.0.12
+ SDL_HasColorKey at Base 2.0.12
+ SDL_HasEvent at Base 2.0.12
+ SDL_HasEvents at Base 2.0.12
+ SDL_HasIntersection at Base 2.0.12
+ SDL_HasIntersectionF at Base 2.0.22
+ SDL_HasLASX at Base 2.24.0
+ SDL_HasLSX at Base 2.24.0
+ SDL_HasMMX at Base 2.0.12
+ SDL_HasNEON at Base 2.0.12
+ SDL_HasPrimarySelectionText at Base 2.26.0
+ SDL_HasRDTSC at Base 2.0.12
+ SDL_HasSSE2 at Base 2.0.12
+ SDL_HasSSE3 at Base 2.0.12
+ SDL_HasSSE41 at Base 2.0.12
+ SDL_HasSSE42 at Base 2.0.12
+ SDL_HasSSE at Base 2.0.12
+ SDL_HasScreenKeyboardSupport at Base 2.0.12
+ SDL_HasSurfaceRLE at Base 2.0.14
+ SDL_HasWindowSurface at Base 2.27.1
+ SDL_HideWindow at Base 2.0.12
+ SDL_Init at Base 2.0.12
+ SDL_InitSubSystem at Base 2.0.12
+ SDL_IntersectFRect at Base 2.0.22
+ SDL_IntersectFRectAndLine at Base 2.0.22
+ SDL_IntersectRect at Base 2.0.12
+ SDL_IntersectRectAndLine at Base 2.0.12
+ SDL_IsGameController at Base 2.0.12
+ SDL_IsScreenKeyboardShown at Base 2.0.12
+ SDL_IsScreenSaverEnabled at Base 2.0.12
+ SDL_IsShapedWindow at Base 2.0.12
+ SDL_IsTablet at Base 2.0.12
+ SDL_IsTextInputActive at Base 2.0.12
+ SDL_IsTextInputShown at Base 2.0.22
+ SDL_JoystickAttachVirtual at Base 2.0.14
+ SDL_JoystickAttachVirtualEx at Base 2.24.0
+ SDL_JoystickClose at Base 2.0.12
+ SDL_JoystickCurrentPowerLevel at Base 2.0.12
+ SDL_JoystickDetachVirtual at Base 2.0.14
+ SDL_JoystickEventState at Base 2.0.12
+ SDL_JoystickFromInstanceID at Base 2.0.12
+ SDL_JoystickFromPlayerIndex at Base 2.0.12
+ SDL_JoystickGetAttached at Base 2.0.12
+ SDL_JoystickGetAxis at Base 2.0.12
+ SDL_JoystickGetAxisInitialState at Base 2.0.12
+ SDL_JoystickGetBall at Base 2.0.12
+ SDL_JoystickGetButton at Base 2.0.12
+ SDL_JoystickGetDeviceGUID at Base 2.0.12
+ SDL_JoystickGetDeviceInstanceID at Base 2.0.12
+ SDL_JoystickGetDevicePlayerIndex at Base 2.0.12
+ SDL_JoystickGetDeviceProduct at Base 2.0.12
+ SDL_JoystickGetDeviceProductVersion at Base 2.0.12
+ SDL_JoystickGetDeviceType at Base 2.0.12
+ SDL_JoystickGetDeviceVendor at Base 2.0.12
+ SDL_JoystickGetFirmwareVersion at Base 2.24.0
+ SDL_JoystickGetGUID at Base 2.0.12
+ SDL_JoystickGetGUIDFromString at Base 2.0.12
+ SDL_JoystickGetGUIDString at Base 2.0.12
+ SDL_JoystickGetHat at Base 2.0.12
+ SDL_JoystickGetPlayerIndex at Base 2.0.12
+ SDL_JoystickGetProduct at Base 2.0.12
+ SDL_JoystickGetProductVersion at Base 2.0.12
+ SDL_JoystickGetSerial at Base 2.0.14
+ SDL_JoystickGetType at Base 2.0.12
+ SDL_JoystickGetVendor at Base 2.0.12
+ SDL_JoystickHasLED at Base 2.0.14
+ SDL_JoystickHasRumble at Base 2.0.18
+ SDL_JoystickHasRumbleTriggers at Base 2.0.18
+ SDL_JoystickInstanceID at Base 2.0.12
+ SDL_JoystickIsHaptic at Base 2.0.12
+ SDL_JoystickIsVirtual at Base 2.0.14
+ SDL_JoystickName at Base 2.0.12
+ SDL_JoystickNameForIndex at Base 2.0.12
+ SDL_JoystickNumAxes at Base 2.0.12
+ SDL_JoystickNumBalls at Base 2.0.12
+ SDL_JoystickNumButtons at Base 2.0.12
+ SDL_JoystickNumHats at Base 2.0.12
+ SDL_JoystickOpen at Base 2.0.12
+ SDL_JoystickPath at Base 2.24.0
+ SDL_JoystickPathForIndex at Base 2.24.0
+ SDL_JoystickRumble at Base 2.0.12
+ SDL_JoystickRumbleTriggers at Base 2.0.14
+ SDL_JoystickSendEffect at Base 2.0.16
+ SDL_JoystickSetLED at Base 2.0.14
+ SDL_JoystickSetPlayerIndex at Base 2.0.12
+ SDL_JoystickSetVirtualAxis at Base 2.0.14
+ SDL_JoystickSetVirtualButton at Base 2.0.14
+ SDL_JoystickSetVirtualHat at Base 2.0.14
+ SDL_JoystickUpdate at Base 2.0.12
+ SDL_LoadBMP_RW at Base 2.0.12
+ SDL_LoadDollarTemplates at Base 2.0.12
+ SDL_LoadFile at Base 2.0.12
+ SDL_LoadFile_RW at Base 2.0.12
+ SDL_LoadFunction at Base 2.0.12
+ SDL_LoadObject at Base 2.0.12
+ SDL_LoadWAV_RW at Base 2.0.12
+ SDL_LockAudio at Base 2.0.12
+ SDL_LockAudioDevice at Base 2.0.12
+ SDL_LockJoysticks at Base 2.0.12
+ SDL_LockMutex at Base 2.0.12
+ SDL_LockSensors at Base 2.0.14
+ SDL_LockSurface at Base 2.0.12
+ SDL_LockTexture at Base 2.0.12
+ SDL_LockTextureToSurface at Base 2.0.12
+ SDL_Log at Base 2.0.12
+ SDL_LogCritical at Base 2.0.12
+ SDL_LogDebug at Base 2.0.12
+ SDL_LogError at Base 2.0.12
+ SDL_LogGetOutputFunction at Base 2.0.12
+ SDL_LogGetPriority at Base 2.0.12
+ SDL_LogInfo at Base 2.0.12
+ SDL_LogMessage at Base 2.0.12
+ SDL_LogMessageV at Base 2.0.12
+ SDL_LogResetPriorities at Base 2.0.12
+ SDL_LogSetAllPriority at Base 2.0.12
+ SDL_LogSetOutputFunction at Base 2.0.12
+ SDL_LogSetPriority at Base 2.0.12
+ SDL_LogVerbose at Base 2.0.12
+ SDL_LogWarn at Base 2.0.12
+ SDL_LowerBlit at Base 2.0.12
+ SDL_LowerBlitScaled at Base 2.0.12
+ SDL_MapRGB at Base 2.0.12
+ SDL_MapRGBA at Base 2.0.12
+ SDL_MasksToPixelFormatEnum at Base 2.0.12
+ SDL_MaximizeWindow at Base 2.0.12
+ SDL_MemoryBarrierAcquireFunction at Base 2.0.12
+ SDL_MemoryBarrierReleaseFunction at Base 2.0.12
+ SDL_Metal_CreateView at Base 2.0.12
+ SDL_Metal_DestroyView at Base 2.0.12
+ SDL_Metal_GetDrawableSize at Base 2.0.14
+ SDL_Metal_GetLayer at Base 2.0.14
+ SDL_MinimizeWindow at Base 2.0.12
+ SDL_MixAudio at Base 2.0.12
+ SDL_MixAudioFormat at Base 2.0.12
+ SDL_MouseIsHaptic at Base 2.0.12
+ SDL_NewAudioStream at Base 2.0.12
+ SDL_NumHaptics at Base 2.0.12
+ SDL_NumJoysticks at Base 2.0.12
+ SDL_NumSensors at Base 2.0.12
+ SDL_OnApplicationDidBecomeActive at Base 2.0.12
+ SDL_OnApplicationDidEnterBackground at Base 2.0.12
+ SDL_OnApplicationDidReceiveMemoryWarning at Base 2.0.12
+ SDL_OnApplicationWillEnterForeground at Base 2.0.12
+ SDL_OnApplicationWillResignActive at Base 2.0.12
+ SDL_OnApplicationWillTerminate at Base 2.0.12
+ SDL_OpenAudio at Base 2.0.12
+ SDL_OpenAudioDevice at Base 2.0.12
+ SDL_OpenURL at Base 2.0.14
+ SDL_PauseAudio at Base 2.0.12
+ SDL_PauseAudioDevice at Base 2.0.12
+ SDL_PeepEvents at Base 2.0.12
+ SDL_PixelFormatEnumToMasks at Base 2.0.12
+ SDL_PollEvent at Base 2.0.12
+ SDL_PremultiplyAlpha at Base 2.0.18
+ SDL_PumpEvents at Base 2.0.12
+ SDL_PushEvent at Base 2.0.12
+ SDL_QueryTexture at Base 2.0.12
+ SDL_QueueAudio at Base 2.0.12
+ SDL_Quit at Base 2.0.12
+ SDL_QuitSubSystem at Base 2.0.12
+ SDL_RWFromConstMem at Base 2.0.12
+ SDL_RWFromFP at Base 2.0.12
+ SDL_RWFromFile at Base 2.0.12
+ SDL_RWFromMem at Base 2.0.12
+ SDL_RWclose at Base 2.0.12
+ SDL_RWread at Base 2.0.12
+ SDL_RWseek at Base 2.0.12
+ SDL_RWsize at Base 2.0.12
+ SDL_RWtell at Base 2.0.12
+ SDL_RWwrite at Base 2.0.12
+ SDL_RaiseWindow at Base 2.0.12
+ SDL_ReadBE16 at Base 2.0.12
+ SDL_ReadBE32 at Base 2.0.12
+ SDL_ReadBE64 at Base 2.0.12
+ SDL_ReadLE16 at Base 2.0.12
+ SDL_ReadLE32 at Base 2.0.12
+ SDL_ReadLE64 at Base 2.0.12
+ SDL_ReadU8 at Base 2.0.12
+ SDL_RecordGesture at Base 2.0.12
+ SDL_RegisterEvents at Base 2.0.12
+ SDL_RemoveTimer at Base 2.0.12
+ SDL_RenderClear at Base 2.0.12
+ SDL_RenderCopy at Base 2.0.12
+ SDL_RenderCopyEx at Base 2.0.12
+ SDL_RenderCopyExF at Base 2.0.12
+ SDL_RenderCopyF at Base 2.0.12
+ SDL_RenderDrawLine at Base 2.0.12
+ SDL_RenderDrawLineF at Base 2.0.12
+ SDL_RenderDrawLines at Base 2.0.12
+ SDL_RenderDrawLinesF at Base 2.0.12
+ SDL_RenderDrawPoint at Base 2.0.12
+ SDL_RenderDrawPointF at Base 2.0.12
+ SDL_RenderDrawPoints at Base 2.0.12
+ SDL_RenderDrawPointsF at Base 2.0.12
+ SDL_RenderDrawRect at Base 2.0.12
+ SDL_RenderDrawRectF at Base 2.0.12
+ SDL_RenderDrawRects at Base 2.0.12
+ SDL_RenderDrawRectsF at Base 2.0.12
+ SDL_RenderFillRect at Base 2.0.12
+ SDL_RenderFillRectF at Base 2.0.12
+ SDL_RenderFillRects at Base 2.0.12
+ SDL_RenderFillRectsF at Base 2.0.12
+ SDL_RenderFlush at Base 2.0.12
+ SDL_RenderGeometry at Base 2.0.18
+ SDL_RenderGeometryRaw at Base 2.0.18
+ SDL_RenderGetClipRect at Base 2.0.12
+ SDL_RenderGetIntegerScale at Base 2.0.12
+ SDL_RenderGetLogicalSize at Base 2.0.12
+ SDL_RenderGetMetalCommandEncoder at Base 2.0.12
+ SDL_RenderGetMetalLayer at Base 2.0.12
+ SDL_RenderGetScale at Base 2.0.12
+ SDL_RenderGetViewport at Base 2.0.12
+ SDL_RenderGetWindow at Base 2.0.22
+ SDL_RenderIsClipEnabled at Base 2.0.12
+ SDL_RenderLogicalToWindow at Base 2.0.18
+ SDL_RenderPresent at Base 2.0.12
+ SDL_RenderReadPixels at Base 2.0.12
+ SDL_RenderSetClipRect at Base 2.0.12
+ SDL_RenderSetIntegerScale at Base 2.0.12
+ SDL_RenderSetLogicalSize at Base 2.0.12
+ SDL_RenderSetScale at Base 2.0.12
+ SDL_RenderSetVSync at Base 2.0.18
+ SDL_RenderSetViewport at Base 2.0.12
+ SDL_RenderTargetSupported at Base 2.0.12
+ SDL_RenderWindowToLogical at Base 2.0.18
+ SDL_ReportAssertion at Base 2.0.12
+ SDL_ResetAssertionReport at Base 2.0.12
+ SDL_ResetHint at Base 2.24.0
+ SDL_ResetHints at Base 2.26.0
+ SDL_ResetKeyboard at Base 2.24.0
+ SDL_RestoreWindow at Base 2.0.12
+ SDL_SIMDAlloc at Base 2.0.12
+ SDL_SIMDFree at Base 2.0.12
+ SDL_SIMDGetAlignment at Base 2.0.12
+ SDL_SIMDRealloc at Base 2.0.14
+ SDL_SaveAllDollarTemplates at Base 2.0.12
+ SDL_SaveBMP_RW at Base 2.0.12
+ SDL_SaveDollarTemplate at Base 2.0.12
+ SDL_SemPost at Base 2.0.12
+ SDL_SemTryWait at Base 2.0.12
+ SDL_SemValue at Base 2.0.12
+ SDL_SemWait at Base 2.0.12
+ SDL_SemWaitTimeout at Base 2.0.12
+ SDL_SensorClose at Base 2.0.12
+ SDL_SensorFromInstanceID at Base 2.0.12
+ SDL_SensorGetData at Base 2.0.12
+ SDL_SensorGetDataWithTimestamp at Base 2.26.0
+ SDL_SensorGetDeviceInstanceID at Base 2.0.12
+ SDL_SensorGetDeviceName at Base 2.0.12
+ SDL_SensorGetDeviceNonPortableType at Base 2.0.12
+ SDL_SensorGetDeviceType at Base 2.0.12
+ SDL_SensorGetInstanceID at Base 2.0.12
+ SDL_SensorGetName at Base 2.0.12
+ SDL_SensorGetNonPortableType at Base 2.0.12
+ SDL_SensorGetType at Base 2.0.12
+ SDL_SensorOpen at Base 2.0.12
+ SDL_SensorUpdate at Base 2.0.12
+ SDL_SetAssertionHandler at Base 2.0.12
+ SDL_SetClipRect at Base 2.0.12
+ SDL_SetClipboardText at Base 2.0.12
+ SDL_SetColorKey at Base 2.0.12
+ SDL_SetCursor at Base 2.0.12
+ SDL_SetError at Base 2.0.12
+ SDL_SetEventFilter at Base 2.0.12
+ SDL_SetHint at Base 2.0.12
+ SDL_SetHintWithPriority at Base 2.0.12
+ SDL_SetMainReady at Base 2.0.12
+ SDL_SetMemoryFunctions at Base 2.0.12
+ SDL_SetModState at Base 2.0.12
+ SDL_SetPaletteColors at Base 2.0.12
+ SDL_SetPixelFormatPalette at Base 2.0.12
+ SDL_SetPrimarySelectionText at Base 2.26.0
+ SDL_SetRelativeMouseMode at Base 2.0.12
+ SDL_SetRenderDrawBlendMode at Base 2.0.12
+ SDL_SetRenderDrawColor at Base 2.0.12
+ SDL_SetRenderTarget at Base 2.0.12
+ SDL_SetSurfaceAlphaMod at Base 2.0.12
+ SDL_SetSurfaceBlendMode at Base 2.0.12
+ SDL_SetSurfaceColorMod at Base 2.0.12
+ SDL_SetSurfacePalette at Base 2.0.12
+ SDL_SetSurfaceRLE at Base 2.0.12
+ SDL_SetTextInputRect at Base 2.0.12
+ SDL_SetTextureAlphaMod at Base 2.0.12
+ SDL_SetTextureBlendMode at Base 2.0.12
+ SDL_SetTextureColorMod at Base 2.0.12
+ SDL_SetTextureScaleMode at Base 2.0.12
+ SDL_SetTextureUserData at Base 2.0.18
+ SDL_SetThreadPriority at Base 2.0.12
+ SDL_SetWindowAlwaysOnTop at Base 2.0.16
+ SDL_SetWindowBordered at Base 2.0.12
+ SDL_SetWindowBrightness at Base 2.0.12
+ SDL_SetWindowData at Base 2.0.12
+ SDL_SetWindowDisplayMode at Base 2.0.12
+ SDL_SetWindowFullscreen at Base 2.0.12
+ SDL_SetWindowGammaRamp at Base 2.0.12
+ SDL_SetWindowGrab at Base 2.0.12
+ SDL_SetWindowHitTest at Base 2.0.12
+ SDL_SetWindowIcon at Base 2.0.12
+ SDL_SetWindowInputFocus at Base 2.0.12
+ SDL_SetWindowKeyboardGrab at Base 2.0.16
+ SDL_SetWindowMaximumSize at Base 2.0.12
+ SDL_SetWindowMinimumSize at Base 2.0.12
+ SDL_SetWindowModalFor at Base 2.0.12
+ SDL_SetWindowMouseGrab at Base 2.0.16
+ SDL_SetWindowMouseRect at Base 2.0.18
+ SDL_SetWindowOpacity at Base 2.0.12
+ SDL_SetWindowPosition at Base 2.0.12
+ SDL_SetWindowResizable at Base 2.0.12
+ SDL_SetWindowShape at Base 2.0.12
+ SDL_SetWindowSize at Base 2.0.12
+ SDL_SetWindowTitle at Base 2.0.12
+ SDL_SetYUVConversionMode at Base 2.0.12
+ SDL_ShowCursor at Base 2.0.12
+ SDL_ShowMessageBox at Base 2.0.12
+ SDL_ShowSimpleMessageBox at Base 2.0.12
+ SDL_ShowWindow at Base 2.0.12
+ SDL_SoftStretch at Base 2.0.12
+ SDL_SoftStretchLinear at Base 2.0.16
+ SDL_StartTextInput at Base 2.0.12
+ SDL_StopTextInput at Base 2.0.12
+ SDL_TLSCleanup at Base 2.0.16
+ SDL_TLSCreate at Base 2.0.12
+ SDL_TLSGet at Base 2.0.12
+ SDL_TLSSet at Base 2.0.12
+ SDL_ThreadID at Base 2.0.12
+ SDL_TryLockMutex at Base 2.0.12
+ SDL_UnionFRect at Base 2.0.22
+ SDL_UnionRect at Base 2.0.12
+ SDL_UnloadObject at Base 2.0.12
+ SDL_UnlockAudio at Base 2.0.12
+ SDL_UnlockAudioDevice at Base 2.0.12
+ SDL_UnlockJoysticks at Base 2.0.12
+ SDL_UnlockMutex at Base 2.0.12
+ SDL_UnlockSensors at Base 2.0.14
+ SDL_UnlockSurface at Base 2.0.12
+ SDL_UnlockTexture at Base 2.0.12
+ SDL_UpdateNVTexture at Base 2.0.16
+ SDL_UpdateTexture at Base 2.0.12
+ SDL_UpdateWindowSurface at Base 2.0.12
+ SDL_UpdateWindowSurfaceRects at Base 2.0.12
+ SDL_UpdateYUVTexture at Base 2.0.12
+ SDL_UpperBlit at Base 2.0.12
+ SDL_UpperBlitScaled at Base 2.0.12
+ SDL_VideoInit at Base 2.0.12
+ SDL_VideoQuit at Base 2.0.12
+ SDL_Vulkan_CreateSurface at Base 2.0.12
+ SDL_Vulkan_GetDrawableSize at Base 2.0.12
+ SDL_Vulkan_GetInstanceExtensions at Base 2.0.12
+ SDL_Vulkan_GetVkGetInstanceProcAddr at Base 2.0.12
+ SDL_Vulkan_LoadLibrary at Base 2.0.12
+ SDL_Vulkan_UnloadLibrary at Base 2.0.12
+ SDL_WaitEvent at Base 2.0.12
+ SDL_WaitEventTimeout at Base 2.0.12
+ SDL_WaitThread at Base 2.0.12
+ SDL_WarpMouseGlobal at Base 2.0.12
+ SDL_WarpMouseInWindow at Base 2.0.12
+ SDL_WasInit at Base 2.0.12
+ SDL_WriteBE16 at Base 2.0.12
+ SDL_WriteBE32 at Base 2.0.12
+ SDL_WriteBE64 at Base 2.0.12
+ SDL_WriteLE16 at Base 2.0.12
+ SDL_WriteLE32 at Base 2.0.12
+ SDL_WriteLE64 at Base 2.0.12
+ SDL_WriteU8 at Base 2.0.12
+ SDL_abs at Base 2.0.12
+ SDL_acos at Base 2.0.12
+ SDL_acosf at Base 2.0.12
+ SDL_asin at Base 2.0.12
+ SDL_asinf at Base 2.0.12
+ SDL_asprintf at Base 2.0.18
+ SDL_atan2 at Base 2.0.12
+ SDL_atan2f at Base 2.0.12
+ SDL_atan at Base 2.0.12
+ SDL_atanf at Base 2.0.12
+ SDL_atof at Base 2.0.12
+ SDL_atoi at Base 2.0.12
+ SDL_bsearch at Base 2.24.0
+ SDL_calloc at Base 2.0.12
+ SDL_ceil at Base 2.0.12
+ SDL_ceilf at Base 2.0.12
+ SDL_copysign at Base 2.0.12
+ SDL_copysignf at Base 2.0.12
+ SDL_cos at Base 2.0.12
+ SDL_cosf at Base 2.0.12
+ SDL_crc16 at Base 2.24.0
+ SDL_crc32 at Base 2.0.14
+ SDL_exp at Base 2.0.12
+ SDL_expf at Base 2.0.12
+ SDL_fabs at Base 2.0.12
+ SDL_fabsf at Base 2.0.12
+ SDL_floor at Base 2.0.12
+ SDL_floorf at Base 2.0.12
+ SDL_fmod at Base 2.0.12
+ SDL_fmodf at Base 2.0.12
+ SDL_free at Base 2.0.12
+ SDL_getenv at Base 2.0.12
+ SDL_hid_ble_scan at Base 2.0.18
+ SDL_hid_close at Base 2.0.18
+ SDL_hid_device_change_count at Base 2.0.18
+ SDL_hid_enumerate at Base 2.0.18
+ SDL_hid_exit at Base 2.0.18
+ SDL_hid_free_enumeration at Base 2.0.18
+ SDL_hid_get_feature_report at Base 2.0.18
+ SDL_hid_get_indexed_string at Base 2.0.18
+ SDL_hid_get_manufacturer_string at Base 2.0.18
+ SDL_hid_get_product_string at Base 2.0.18
+ SDL_hid_get_serial_number_string at Base 2.0.18
+ SDL_hid_init at Base 2.0.18
+ SDL_hid_open at Base 2.0.18
+ SDL_hid_open_path at Base 2.0.18
+ SDL_hid_read at Base 2.0.18
+ SDL_hid_read_timeout at Base 2.0.18
+ SDL_hid_send_feature_report at Base 2.0.18
+ SDL_hid_set_nonblocking at Base 2.0.18
+ SDL_hid_write at Base 2.0.18
+ SDL_iconv at Base 2.0.12
+ SDL_iconv_close at Base 2.0.12
+ SDL_iconv_open at Base 2.0.12
+ SDL_iconv_string at Base 2.0.12
+ SDL_isalnum at Base 2.0.16
+ SDL_isalpha at Base 2.0.16
+ SDL_isblank at Base 2.0.16
+ SDL_iscntrl at Base 2.0.16
+ SDL_isdigit at Base 2.0.12
+ SDL_isgraph at Base 2.0.16
+ SDL_islower at Base 2.0.12
+ SDL_isprint at Base 2.0.16
+ SDL_ispunct at Base 2.0.16
+ SDL_isspace at Base 2.0.12
+ SDL_isupper at Base 2.0.12
+ SDL_isxdigit at Base 2.0.16
+ SDL_itoa at Base 2.0.12
+ SDL_lltoa at Base 2.0.12
+ SDL_log10 at Base 2.0.12
+ SDL_log10f at Base 2.0.12
+ SDL_log at Base 2.0.12
+ SDL_logf at Base 2.0.12
+ SDL_lround at Base 2.0.16
+ SDL_lroundf at Base 2.0.16
+ SDL_ltoa at Base 2.0.12
+ SDL_malloc at Base 2.0.12
+ SDL_memcmp at Base 2.0.12
+ SDL_memcpy at Base 2.0.12
+ SDL_memmove at Base 2.0.12
+ SDL_memset at Base 2.0.12
+ SDL_pow at Base 2.0.12
+ SDL_powf at Base 2.0.12
+ SDL_qsort at Base 2.0.12
+ SDL_realloc at Base 2.0.12
+ SDL_round at Base 2.0.16
+ SDL_roundf at Base 2.0.16
+ SDL_scalbn at Base 2.0.12
+ SDL_scalbnf at Base 2.0.12
+ SDL_setenv at Base 2.0.12
+ SDL_sin at Base 2.0.12
+ SDL_sinf at Base 2.0.12
+ SDL_snprintf at Base 2.0.12
+ SDL_sqrt at Base 2.0.12
+ SDL_sqrtf at Base 2.0.12
+ SDL_sscanf at Base 2.0.12
+ SDL_strcasecmp at Base 2.0.12
+ SDL_strcasestr at Base 2.26.0
+ SDL_strchr at Base 2.0.12
+ SDL_strcmp at Base 2.0.12
+ SDL_strdup at Base 2.0.12
+ SDL_strlcat at Base 2.0.12
+ SDL_strlcpy at Base 2.0.12
+ SDL_strlen at Base 2.0.12
+ SDL_strlwr at Base 2.0.12
+ SDL_strncasecmp at Base 2.0.12
+ SDL_strncmp at Base 2.0.12
+ SDL_strrchr at Base 2.0.12
+ SDL_strrev at Base 2.0.12
+ SDL_strstr at Base 2.0.12
+ SDL_strtod at Base 2.0.12
+ SDL_strtokr at Base 2.0.12
+ SDL_strtol at Base 2.0.12
+ SDL_strtoll at Base 2.0.12
+ SDL_strtoul at Base 2.0.12
+ SDL_strtoull at Base 2.0.12
+ SDL_strupr at Base 2.0.12
+ SDL_tan at Base 2.0.12
+ SDL_tanf at Base 2.0.12
+ SDL_tolower at Base 2.0.12
+ SDL_toupper at Base 2.0.12
+ SDL_trunc at Base 2.0.14
+ SDL_truncf at Base 2.0.14
+ SDL_uitoa at Base 2.0.12
+ SDL_ulltoa at Base 2.0.12
+ SDL_ultoa at Base 2.0.12
+ SDL_utf8strlcpy at Base 2.0.12
+ SDL_utf8strlen at Base 2.0.12
+ SDL_utf8strnlen at Base 2.24.0
+ SDL_vasprintf at Base 2.0.18
+ SDL_vsnprintf at Base 2.0.12
+ SDL_vsscanf at Base 2.0.12
+ SDL_wcscasecmp at Base 2.0.14
+ SDL_wcscmp at Base 2.0.12
+ SDL_wcsdup at Base 2.0.12
+ SDL_wcslcat at Base 2.0.12
+ SDL_wcslcpy at Base 2.0.12
+ SDL_wcslen at Base 2.0.12
+ SDL_wcsncasecmp at Base 2.0.14
+ SDL_wcsncmp at Base 2.0.12
+ SDL_wcsstr at Base 2.0.12
diff --git a/debian/libsdl2-dev.install b/debian/libsdl2-dev.install
new file mode 100644
index 0000000..9e11bbf
--- /dev/null
+++ b/debian/libsdl2-dev.install
@@ -0,0 +1,11 @@
+debian/SDL_config.h usr/include/SDL2
+usr/bin/sdl2-config
+usr/include/*/SDL2
+usr/include/SDL2
+usr/lib/*/cmake/SDL2/sdl2-config*.cmake
+usr/lib/*/libSDL2*.so
+usr/lib/*/libSDL2.a
+usr/lib/*/libSDL2_test.a
+usr/lib/*/libSDL2main.a
+usr/lib/*/pkgconfig/sdl2.pc
+usr/share/aclocal/sdl2.m4
diff --git a/debian/libsdl2-dev.manpages b/debian/libsdl2-dev.manpages
new file mode 100644
index 0000000..150752c
--- /dev/null
+++ b/debian/libsdl2-dev.manpages
@@ -0,0 +1 @@
+debian/sdl2-config.1
diff --git a/debian/libsdl2-doc.doc-base b/debian/libsdl2-doc.doc-base
new file mode 100644
index 0000000..f9782aa
--- /dev/null
+++ b/debian/libsdl2-doc.doc-base
@@ -0,0 +1,14 @@
+Document: libsdl2
+Title: LibSDL2 Manual
+Author: Sam Lantinga
+Abstract:
+ SDL is a library that allows programs portable low level access to a video
+ framebuffer, audio output, mouse, and keyboard.
+ .
+ This version of SDL is compiled with X11 and Wayland graphics drivers and OSS,
+ ALSA, NAS, sndio and PulseAudio sound drivers.
+Section: Programming/C++
+
+Format: HTML
+Index: /usr/share/doc/libsdl2-doc/html/index.html
+Files: /usr/share/doc/libsdl2-doc/html/*
diff --git a/debian/libsdl2-doc.examples b/debian/libsdl2-doc.examples
new file mode 100644
index 0000000..c7566aa
--- /dev/null
+++ b/debian/libsdl2-doc.examples
@@ -0,0 +1 @@
+debian/examples.tar.gz
diff --git a/debian/libsdl2-doc.install b/debian/libsdl2-doc.install
new file mode 100644
index 0000000..220eba4
--- /dev/null
+++ b/debian/libsdl2-doc.install
@@ -0,0 +1 @@
+docs/output/html usr/share/doc/libsdl2-doc/
diff --git a/debian/libsdl2-tests.install b/debian/libsdl2-tests.install
new file mode 100644
index 0000000..e2a2951
--- /dev/null
+++ b/debian/libsdl2-tests.install
@@ -0,0 +1,2 @@
+usr/libexec/installed-tests
+usr/share/installed-tests
diff --git a/debian/libsdl2-tests.lintian-overrides b/debian/libsdl2-tests.lintian-overrides
new file mode 100644
index 0000000..0ca5da0
--- /dev/null
+++ b/debian/libsdl2-tests.lintian-overrides
@@ -0,0 +1,4 @@
+# the tests avoid direct calls into libc so there is not necessarily anything to fortify
+libsdl2-tests: hardening-no-fortify-functions [usr/libexec/installed-tests/*]
+# test data is not documentation
+libsdl2-tests: package-contains-documentation-outside-usr-share-doc [usr/libexec/installed-tests/*]
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644
index 0000000..b131de5
--- /dev/null
+++ b/debian/not-installed
@@ -0,0 +1,3 @@
+usr/lib/*/libSDL2.la
+usr/lib/*/libSDL2main.la
+usr/lib/*/libSDL2_test.la
diff --git a/debian/patches/fix-a-possible-memory-leak-in-SDL_vasprintf.patch b/debian/patches/fix-a-possible-memory-leak-in-SDL_vasprintf.patch
new file mode 100644
index 0000000..d982796
--- /dev/null
+++ b/debian/patches/fix-a-possible-memory-leak-in-SDL_vasprintf.patch
@@ -0,0 +1,28 @@
+From: Ozkan Sezer <sezeroz at gmail.com>
+Date: Sun, 5 Nov 2023 20:01:02 +0300
+Subject: fix a possible memory leak in SDL_vasprintf()
+
+(cherry picked from commit 1a83bf2399c29f3028477225067bf6a106068f08)
+Origin: upstream, 2.28.6, commit:9b2c70c9c805d39a5f81a66c4a1851ab6cb0c758
+---
+ src/stdlib/SDL_string.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c
+index 7353d45..b36fda4 100644
+--- a/src/stdlib/SDL_string.c
++++ b/src/stdlib/SDL_string.c
+@@ -1989,6 +1989,7 @@ int SDL_vasprintf(char **strp, const char *fmt, va_list ap)
+ 
+         /* Check error code */
+         if (retval < 0) {
++            SDL_free(p);
+             return retval;
+         }
+ 
+@@ -2010,5 +2011,3 @@ int SDL_vasprintf(char **strp, const char *fmt, va_list ap)
+         }
+     }
+ }
+-
+-/* vi: set ts=4 sw=4 expandtab: */
diff --git a/debian/patches/no-libdir.patch b/debian/patches/no-libdir.patch
new file mode 100644
index 0000000..ef34de7
--- /dev/null
+++ b/debian/patches/no-libdir.patch
@@ -0,0 +1,67 @@
+From: Simon McVittie <smcv at debian.org>
+Date: Mon, 15 Aug 2022 16:47:26 +0100
+Subject: Avoid hard-coding libdir in sdl2-config
+
+This makes the -dev package multiarch co-installable, allowing compilation
+of SDL programs for more than one architecture on the same system.
+
+This is not an upstreamable change, since it relies on Debian-specific
+assumptions:
+
+* we are installing the library into a directory on the linker's default
+  search path
+* static linking is done with at least one of:
+  - $DEB_HOST_MULTIARCH set, or
+  - $PKG_CONFIG set to the host architecture pkg-config, or
+  - $CC set to a compiler for the host architecture that supports the
+    -print-multiarch argument (which Debian's gcc and older Debian
+    packages for clang do), or
+  - a native build (so the build architecture pkg-config is correct)
+
+Adapted from an earlier patch by Gianfranco Costamagna.
+
+Co-authored-by: Gianfranco Costamagna <locutusofborg at debian.org>
+Forwarded: not-needed
+Last-Update: 2023-09-18
+---
+ sdl2-config.in | 16 +++++++++++++---
+ 1 file changed, 13 insertions(+), 3 deletions(-)
+
+diff --git a/sdl2-config.in b/sdl2-config.in
+index f6eca76..d7b7945 100644
+--- a/sdl2-config.in
++++ b/sdl2-config.in
+@@ -7,7 +7,6 @@ bindir=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
+ prefix=$(cd -P -- "$bindir/@bin_prefix_relpath@" && printf '%s\n' "$(pwd -P)")
+ exec_prefix=@exec_prefix@
+ exec_prefix_set=no
+-libdir=@libdir@
+ 
+ @ENABLE_STATIC_FALSE at usage="\
+ @ENABLE_STATIC_FALSE at Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
+@@ -49,12 +48,23 @@ while test $# -gt 0; do
+       echo -I at includedir@/SDL2 @SDL_CFLAGS@
+       ;;
+ @ENABLE_SHARED_TRUE@    --libs)
+- at ENABLE_SHARED_TRUE@      echo -L at libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
++ at ENABLE_SHARED_TRUE@      echo @SDL_RLD_FLAGS@ @SDL_LIBS@
+ @ENABLE_SHARED_TRUE@      ;;
+ @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@    --static-libs)
+ @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@    --libs|--static-libs)
++ at ENABLE_STATIC_TRUE@      if [ -n "${DEB_HOST_MULTIARCH-}" ]; then
++ at ENABLE_STATIC_TRUE@          libdir="/usr/lib/$DEB_HOST_MULTIARCH"
++ at ENABLE_STATIC_TRUE@      elif [ -n "${PKG_CONFIG}" ]; then
++ at ENABLE_STATIC_TRUE@          libdir="$("$PKG_CONFIG" --variable=libdir sdl2)"
++ at ENABLE_STATIC_TRUE@      elif [ -n "$CC" ] && multiarch=$("$CC" -print-multiarch); then
++ at ENABLE_STATIC_TRUE@          # Assume CC is set to a suitable gcc or clang version
++ at ENABLE_STATIC_TRUE@          libdir="/usr/lib/$multiarch"
++ at ENABLE_STATIC_TRUE@      else
++ at ENABLE_STATIC_TRUE@          # Assume not cross-compiling
++ at ENABLE_STATIC_TRUE@          libdir="$(pkg-config --variable=libdir sdl2)"
++ at ENABLE_STATIC_TRUE@      fi
+ @ENABLE_STATIC_TRUE@      sdl_static_libs=$(echo "@SDL_LIBS@ @SDL_STATIC_LIBS@" | sed -E "s#-lSDL2[ $]#$libdir/libSDL2.a #g")
+- at ENABLE_STATIC_TRUE@      echo -L at libdir@ $sdl_static_libs
++ at ENABLE_STATIC_TRUE@      echo $sdl_static_libs
+ @ENABLE_STATIC_TRUE@      ;;
+     *)
+       echo "${usage}" 1>&2
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e7c6a3d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+fix-a-possible-memory-leak-in-SDL_vasprintf.patch
+no-libdir.patch
+test-Don-t-install-bundled-copy-of-unifont.patch
diff --git a/debian/patches/test-Don-t-install-bundled-copy-of-unifont.patch b/debian/patches/test-Don-t-install-bundled-copy-of-unifont.patch
new file mode 100644
index 0000000..dbef925
--- /dev/null
+++ b/debian/patches/test-Don-t-install-bundled-copy-of-unifont.patch
@@ -0,0 +1,24 @@
+From: Simon McVittie <smcv at debian.org>
+Date: Tue, 30 Nov 2021 18:44:56 +0000
+Subject: test: Don't install bundled copy of unifont
+
+We don't include this in the Debian package.
+
+Signed-off-by: Simon McVittie <smcv at debian.org>
+Forwarded: not-needed
+---
+ test/Makefile.in | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/test/Makefile.in b/test/Makefile.in
+index 93df636..6970f65 100644
+--- a/test/Makefile.in
++++ b/test/Makefile.in
+@@ -440,7 +440,6 @@ DATA = \
+ 	testgles2_sdf_img_normal.bmp \
+ 	testgles2_sdf_img_sdf.bmp \
+ 	testyuv.bmp \
+-	unifont-13.0.06.hex \
+ 	utf8.txt \
+ 	$(NULL)
+ 
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..923eacf
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,183 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
+
+built_binaries := $(shell dh_listpackages)
+
+include /usr/share/dpkg/default.mk
+
+confflags = \
+	--disable-alsa-shared \
+	--disable-arts \
+	--disable-directx \
+	--disable-esd \
+	--disable-fusionsound \
+	--disable-jack \
+	--disable-joystick-mfi \
+	--disable-kmsdrm-shared \
+	--disable-libsamplerate-shared \
+	--disable-nas \
+	--disable-pulseaudio-shared \
+	--disable-render-d3d \
+	--disable-rpath \
+	--disable-video-cocoa \
+	--disable-video-directfb \
+	--disable-video-metal \
+	--disable-video-opengles1 \
+	--disable-video-rpi \
+	--disable-video-vivante \
+	--disable-wasapi \
+	--disable-wayland-shared \
+	--disable-x11-shared \
+	--disable-xinput \
+	--enable-alsa \
+	--enable-dbus \
+	--enable-fcitx \
+	--enable-hidapi \
+	--enable-hidapi-joystick \
+	--enable-ibus \
+	--enable-libsamplerate \
+	--enable-pulseaudio \
+	--enable-sdl2-config \
+	--enable-sndio \
+	--enable-vendor-info="${DEB_VENDOR} ${DEB_VERSION}" \
+	--enable-video-kmsdrm \
+	--enable-video-opengl \
+	--enable-video-opengles \
+	--enable-video-opengles2 \
+	--enable-video-x11 \
+	$(NULL)
+
+# disable autoheader (invoked automatically by autoreconf), necessary in order
+# to use debhelper compat level v10 without overriding dh-autoreconf calls
+export AUTOHEADER := /bin/true
+
+
+ifeq ($(DEB_HOST_ARCH_CPU),powerpc)
+  confflags += --disable-altivec
+endif
+
+ifeq ($(DEB_HOST_ARCH_CPU),ppc64el)
+  confflags += --disable-altivec
+endif
+
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+  confflags += --enable-libdecor
+  confflags += --enable-libudev
+  confflags += --enable-pipewire
+  confflags += --enable-video-vulkan
+  confflags += --enable-video-wayland
+else
+  confflags += --disable-libdecor
+  confflags += --disable-libudev
+  confflags += --disable-pipewire
+  confflags += --disable-video-vulkan
+  confflags += --disable-video-wayland
+endif
+
+# don't use libunwind even if it happens to be installed
+confflags += ac_cv_header_libunwind_h=no
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(confflags)
+	# test/configure.ac uses AC_PATH_X, so we need to pass in
+	# --x-includes and --x-libraries to avoid it wanting to use
+	# xmkmf to discover the right values.
+	# test/configure.ac doesn't respect CPPFLAGS or LDFLAGS.
+	dh_auto_configure \
+		--buildsystem=autoconf \
+		--sourcedirectory=$(CURDIR)/test \
+		--builddirectory=$(CURDIR)/debian/build-tests \
+		-- \
+		--x-includes=/usr/include \
+		--x-libraries=/usr/lib/$(DEB_HOST_MULTIARCH) \
+		SDL_CFLAGS=-I$(CURDIR)/include \
+		SDL_LIBS="-L$(CURDIR)/build/.libs -lSDL2" \
+		ac_cv_lib_SDL2_ttf_TTF_Init=no \
+		CFLAGS="$(CPPFLAGS) $(CFLAGS) $(LDFLAGS)" \
+		$(NULL)
+
+override_dh_auto_build-indep:
+	GZIP="-9n" tar \
+		--exclude=autom4te.cache \
+		--owner=0 --group=0 --mode=go=rX,u+rw,a-s \
+		--clamp-mtime --mtime="@$(SOURCE_DATE_EPOCH)" \
+		--sort=name \
+		-czf debian/examples.tar.gz test
+	sed -e 's/FULL_PATH_NAMES *=.*/FULL_PATH_NAMES = NO/' < docs/doxyfile > debian/Doxyfile
+	cd docs && doxygen ../debian/Doxyfile
+	# useless files
+	find docs/output -name "*.md5" -delete
+	find docs/output -type d -empty -delete
+
+# Force examples to be installed in libsdl2-doc, it does not happen with compat
+# level v11 despite having the file debian/libsdl2-doc.examples (it gets
+# installed as part of libsdl2-dev instead)
+override_dh_installexamples-indep:
+	dh_installexamples -i --doc-main-package=libsdl2-doc
+
+override_dh_auto_build-arch: build-library build-tests
+override_dh_auto_build-indep: build-library
+build-library:
+	dh_auto_build -- V=1
+build-tests:
+	dh_auto_build \
+		--buildsystem=autoconf \
+		--sourcedirectory=$(CURDIR)/test \
+		--builddirectory=$(CURDIR)/debian/build-tests \
+		-- \
+		V=1
+
+
+override_dh_auto_clean-indep:
+	dh_auto_clean
+	rm -f debian/Doxyfile
+	rm -f debian/examples.tar.gz
+	rm -rf docs/output
+
+override_dh_auto_test-arch:
+	dh_auto_test
+	LD_LIBRARY_PATH=$(CURDIR)/build/.libs \
+	dh_auto_test \
+		--buildsystem=autoconf \
+		--sourcedirectory=$(CURDIR)/test \
+		--builddirectory=$(CURDIR)/debian/build-tests \
+		-- \
+		V=1
+
+override_dh_auto_install-arch:
+	dh_auto_install -- V=1
+	dh_auto_install \
+		--buildsystem=autoconf \
+		--sourcedirectory=$(CURDIR)/test \
+		--builddirectory=$(CURDIR)/debian/build-tests \
+		-- \
+		V=1
+
+# debhelper >= 13.4 makes all of /usr/libexec executable, which is not
+# quite right for installed-tests
+override_dh_fixperms:
+	dh_fixperms -Xusr/libexec/installed-tests
+ifneq ($(filter %-tests,$(built_binaries)),)
+	chmod --recursive --changes a+rX,u+w,og-w debian/libsdl2-tests/usr/libexec/installed-tests
+endif
+
+override_dh_install:
+	mkdir -p debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/SDL2
+	mv debian/tmp/usr/include/SDL2/SDL_config.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/SDL2/_real_SDL_config.h
+	ln -s ../../SDL2/SDL_platform.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/SDL2/
+	ln -s ../../SDL2/begin_code.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/SDL2/
+	ln -s ../../SDL2/close_code.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/SDL2/
+	dh_install
+
+override_dh_link:
+	# to address lintian warning
+	# W: libsdl2-2.0-0: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.0.0 usr/lib/x86_64-linux-gnu/libSDL2-2.0.so
+	dh_link -plibsdl2-dev usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so.0 usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so
+	dh_link --remaining-packages
+
+override_dh_installchangelogs:
+	dh_installchangelogs -- WhatsNew.txt
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 0000000..33c3a64
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,4 @@
+---
+include:
+  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
diff --git a/debian/sdl2-config.1 b/debian/sdl2-config.1
new file mode 100644
index 0000000..262e067
--- /dev/null
+++ b/debian/sdl2-config.1
@@ -0,0 +1,62 @@
+.TH sdl2-config 1 "2013-07-27" "SDL 2.0"
+.SH NAME
+sdl2-config \- script to get information about the installed version of SDL
+.SH SYNOPSIS
+.B sdl2-config
+[--prefix=[\fIDIR\fR]] [--exec-prefix=[\fIDIR\fR]] [--version] [--cflags] [--libs] [--static-libs]
+.SH DESCRIPTION
+.B sdl2-config
+is a tool that is used to configure and determine the compiler and linker
+flags that should be used to compile and link programs, libraries, and
+plugins that use SDL.  It is also used internally by the m4 macros that are
+included with SDL.
+.SH OPTIONS
+.TP
+.B --cflags
+Print the compiler flags that are necessary to compile a program or library
+that uses SDL.
+.TP
+.BI --exec-prefix\fR[=\fIDIR\fR]
+If \fIDIR\fR is not specified, print the exec prefix of the current SDL
+installation.
+.IP
+If \fIDIR\fR is specified, use it instead of the installation exec prefix that
+SDL was built with when computing the output for the --cflags, --libs and
+--static-libs options.  This option must be specified before any of the options
+--cflags, --libs and --static-libs.
+.TP
+.B --libs
+Print the linker flags that are necessary to link a program that uses SDL.
+.TP
+.B --static-libs
+Print the linker flags that are necessary to statically link a program that uses SDL.
+.TP
+.BI --prefix\fR[=\fIDIR\fR]
+If \fIDIR\fR is not specified, print the prefix of the current SDL installation.
+.IP
+If \fIDIR\fR is specified, use it instead of the installation prefix that SDL
+was built with when computing the output for the --cflags, --libs and
+--static-libs options.  This option is also used for the exec prefix if
+--exec-prefix was not specified.  This option must be specified before any of
+the options --cflags, --libs and --static-libs.
+.TP
+.B --version
+Prints the currently installed version of SDL on standard output.
+.SH EXAMPLES
+.TP
+gcc -o main.o $(sdl2-config --cflags) main.c
+is how you might use
+.B sdl2-config
+to compile a C source file for an executable program.
+.TP
+gcc -o my_app $(sdl2-config --libs) main.o util.o
+is how you might use
+.B sdl2-config
+to link compiled objects into an executable program.
+.SH AUTHOR
+The Simple DirectMedia Layer (SDL) library was written by Sam Lantinga.
+.PP
+This manual page was written by Branden Robinson, originally for Progeny
+Linux Systems, Inc., and the Debian Project.
+.br
+Updated in 2013 by Manuel A. Fernandez Montecelo <mafm at debian.org>.
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..ffc0104
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore = "debian/gbp.conf$"
diff --git a/debian/tests/build b/debian/tests/build
new file mode 100755
index 0000000..f9717fe
--- /dev/null
+++ b/debian/tests/build
@@ -0,0 +1,90 @@
+#!/bin/sh
+# autopkgtest check: Build and run a program against SDL, to verify that the
+# headers and pkg-config file are installed correctly
+#
+# Based on glib2.0's debian/tests/build
+# (C) 2012 Canonical Ltd.
+# (C) 2018 Simon McVittie
+# Authors: Martin Pitt, Simon McVittie
+
+set -eux
+
+# Ideally this test could be re-run with mode=static. However, statically
+# linking libSDL2 doesn't actually work, because there is no libasound.a
+# in libasound-dev (since 1.0.27-3 in 2013).
+mode=dynamic
+
+WORKDIR=$(mktemp -d)
+trap 'rm -rf "$WORKDIR"' 0 INT QUIT ABRT PIPE TERM
+
+if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
+    CROSS_COMPILE="$DEB_HOST_GNU_TYPE-"
+else
+    CROSS_COMPILE=
+fi
+
+cd "$WORKDIR"
+cat <<EOF > use-sdl.c
+#undef NDEBUG
+#include <assert.h>
+
+#include <SDL_version.h>
+
+int main(void)
+{
+    SDL_version compiled;
+    SDL_version linked;
+
+    SDL_VERSION(&compiled);
+    SDL_GetVersion(&linked);
+
+    assert(compiled.major == 2);
+    assert(linked.major == 2);
+
+    return 0;
+}
+EOF
+
+for tool in pkg-config sdl2-config; do
+    for cc in "${CROSS_COMPILE}gcc" clang; do
+        cflags=
+        pcflags=
+        scflags=--libs
+
+        case "$mode" in
+        (static)
+            cflags=-static
+            pcflags=--static
+            scflags=--static-libs
+            ;;
+        esac
+
+        case "$cc" in
+        (clang)
+            cflags="$cflags ${DEB_HOST_GNU_TYPE:+--target="${DEB_HOST_GNU_TYPE}"}"
+            ;;
+        esac
+
+        exe="use-${tool}-${cc}-${mode}"
+
+        case "$tool" in
+        (pkg-config)
+            # Deliberately word-splitting cflags, pcflags, pkg-config output
+            # shellcheck disable=SC2046,SC2086
+            "$cc" $cflags -o "${exe}" use-sdl.c $("${CROSS_COMPILE}pkg-config" $pcflags --cflags --libs sdl2)
+            ;;
+        (sdl2-config)
+            # shellcheck disable=SC2046,SC2086
+            "$cc" $cflags -o "${exe}" use-sdl.c $(PKG_CONFIG="${CROSS_COMPILE}pkg-config" sdl2-config --cflags $scflags)
+            ;;
+        (*)
+            exit 1
+            ;;
+        esac
+
+        echo "build (with $tool, $cc, $mode): OK"
+        [ -x "${exe}" ]
+        ./"${exe}"
+        echo "run (with $tool, $cc, $mode): OK"
+    done
+done
diff --git a/debian/tests/cmake b/debian/tests/cmake
new file mode 100755
index 0000000..b5e4c90
--- /dev/null
+++ b/debian/tests/cmake
@@ -0,0 +1,73 @@
+#!/bin/sh
+# Copyright 2019-2022 Collabora Ltd.
+# SPDX-License-Identifier: Zlib
+# (see "zlib/libpng" in debian/copyright)
+
+set -eux
+
+WORKDIR="$(mktemp -d)"
+cleanup () {
+    rm -fr "$WORKDIR"
+}
+
+if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
+    cat <<EOF > "$WORKDIR/toolchain.cmake"
+set(CMAKE_C_COMPILER $DEB_HOST_GNU_TYPE-gcc)
+set(CMAKE_CXX_COMPILER $DEB_HOST_GNU_TYPE-g++)
+set(PKG_CONFIG_EXECUTABLE $DEB_HOST_GNU_TYPE-pkg-config)
+EOF
+    CCFILE=-DCMAKE_TOOLCHAIN_FILE="$WORKDIR/toolchain.cmake"
+else
+    CCFILE=
+fi
+
+srcdir="$(pwd)"
+
+mkdir "$WORKDIR/targets"
+(
+    cd "$WORKDIR/targets"
+    cmake $CCFILE "$srcdir/debian/tests/cmake-targets"
+)
+make -C "$WORKDIR/targets" VERBOSE=1
+"$WORKDIR/targets/hello"
+make -C "$WORKDIR/targets" VERBOSE=1 clean
+
+mkdir "$WORKDIR/example"
+(
+    cd "$WORKDIR/example"
+    cmake $CCFILE "$srcdir/debian/tests/cmake-example"
+)
+make -C "$WORKDIR/example" VERBOSE=1
+"$WORKDIR/example/hello"
+make -C "$WORKDIR/example" VERBOSE=1 clean
+
+mkdir "$WORKDIR/findsdl2"
+(
+    cd "$WORKDIR/findsdl2"
+    cmake $CCFILE "$srcdir/debian/tests/cmake-findsdl2"
+)
+make -C "$WORKDIR/findsdl2" VERBOSE=1
+"$WORKDIR/findsdl2/hello"
+make -C "$WORKDIR/findsdl2" VERBOSE=1 clean
+
+mkdir "$WORKDIR/main"
+(
+    cd "$WORKDIR/main"
+    cmake $CCFILE "$srcdir/debian/tests/cmake-main"
+)
+make -C "$WORKDIR/main" VERBOSE=1
+(
+    export SDL_AUDIODRIVER=dummy
+    export SDL_VIDEODRIVER=dummy
+    "$WORKDIR/main/program"
+)
+make -C "$WORKDIR/main" VERBOSE=1 clean
+
+mkdir "$WORKDIR/static"
+(
+    cd "$WORKDIR/static"
+    cmake $CCFILE "$srcdir/debian/tests/cmake-static"
+)
+make -C "$WORKDIR/static" VERBOSE=1
+"$WORKDIR/static/hello"
+make -C "$WORKDIR/static" VERBOSE=1 clean
diff --git a/debian/tests/cmake-example/CMakeLists.txt b/debian/tests/cmake-example/CMakeLists.txt
new file mode 100644
index 0000000..7497e13
--- /dev/null
+++ b/debian/tests/cmake-example/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Copyright 2019 Collabora Ltd.
+# SPDX-License-Identifier: Zlib
+# (see "zlib/libpng" in debian/copyright)
+
+cmake_minimum_required(VERSION 3.13)
+project(Hello)
+
+find_package(SDL2 REQUIRED)
+include_directories(${SDL2_INCLUDE_DIRS})
+
+add_executable(hello hello.c)
+target_link_libraries(hello SDL2)
diff --git a/debian/tests/cmake-example/hello.c b/debian/tests/cmake-example/hello.c
new file mode 100644
index 0000000..fcf9bdb
--- /dev/null
+++ b/debian/tests/cmake-example/hello.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2019 Collabora Ltd.
+ * SPDX-License-Identifier: Zlib
+ * (see "zlib/libpng" in debian/copyright)
+ */
+
+#include <SDL.h>
+
+int
+main (int argc, char **argv)
+{
+  if (SDL_Init(0) != 0) {
+      SDL_Log("SDL_Init: %s", SDL_GetError());
+      return 1;
+  }
+
+  SDL_Log("Hello, world!");
+  SDL_Quit();
+  return 0;
+}
diff --git a/debian/tests/cmake-findsdl2/CMakeLists.txt b/debian/tests/cmake-findsdl2/CMakeLists.txt
new file mode 100644
index 0000000..d92a5f7
--- /dev/null
+++ b/debian/tests/cmake-findsdl2/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Copyright 2019 Collabora Ltd.
+# SPDX-License-Identifier: Zlib
+# (see "zlib/libpng" in debian/copyright)
+
+cmake_minimum_required(VERSION 3.13)
+project(Hello)
+
+list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_SOURCE_DIR}")
+
+find_package(SDL2 REQUIRED)
+include_directories(${SDL2_INCLUDE_DIR})
+
+add_executable(hello hello.c)
+target_link_libraries(hello SDL2)
diff --git a/debian/tests/cmake-findsdl2/FindSDL2.cmake b/debian/tests/cmake-findsdl2/FindSDL2.cmake
new file mode 100644
index 0000000..5be23d6
--- /dev/null
+++ b/debian/tests/cmake-findsdl2/FindSDL2.cmake
@@ -0,0 +1,182 @@
+# Locate SDL2 library
+# This module defines
+# SDL2_LIBRARY, the name of the library to link against
+# SDL2_FOUND, if false, do not try to link to SDL2
+# SDL2_INCLUDE_DIR, where to find SDL.h
+#
+# This module responds to the the flag:
+# SDL2_BUILDING_LIBRARY
+# If this is defined, then no SDL2main will be linked in because
+# only applications need main().
+# Otherwise, it is assumed you are building an application and this
+# module will attempt to locate and set the the proper link flags
+# as part of the returned SDL2_LIBRARY variable.
+#
+# Don't forget to include SDLmain.h and SDLmain.m your project for the
+# OS X framework based version. (Other versions link to -lSDL2main which
+# this module will try to find on your behalf.) Also for OS X, this
+# module will automatically add the -framework Cocoa on your behalf.
+#
+#
+# Additional Note: If you see an empty SDL2_LIBRARY_TEMP in your configuration
+# and no SDL2_LIBRARY, it means CMake did not find your SDL2 library
+# (SDL2.dll, libsdl2.so, SDL2.framework, etc).
+# Set SDL2_LIBRARY_TEMP to point to your SDL2 library, and configure again.
+# Similarly, if you see an empty SDL2MAIN_LIBRARY, you should set this value
+# as appropriate. These values are used to generate the final SDL2_LIBRARY
+# variable, but when these values are unset, SDL2_LIBRARY does not get created.
+#
+#
+# $SDL2DIR is an environment variable that would
+# correspond to the ./configure --prefix=$SDL2DIR
+# used in building SDL2.
+# l.e.galup  9-20-02
+#
+# Modified by Eric Wing.
+# Added code to assist with automated building by using environmental variables
+# and providing a more controlled/consistent search behavior.
+# Added new modifications to recognize OS X frameworks and
+# additional Unix paths (FreeBSD, etc).
+# Also corrected the header search path to follow "proper" SDL guidelines.
+# Added a search for SDL2main which is needed by some platforms.
+# Added a search for threads which is needed by some platforms.
+# Added needed compile switches for MinGW.
+#
+# On OSX, this will prefer the Framework version (if found) over others.
+# People will have to manually change the cache values of
+# SDL2_LIBRARY to override this selection or set the CMake environment
+# CMAKE_INCLUDE_PATH to modify the search paths.
+#
+# Note that the header path has changed from SDL2/SDL.h to just SDL.h
+# This needed to change because "proper" SDL convention
+# is #include "SDL.h", not <SDL2/SDL.h>. This is done for portability
+# reasons because not all systems place things in SDL2/ (see FreeBSD).
+
+#=============================================================================
+# Copyright 2003-2009 Kitware, Inc.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+#   notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright
+#   notice, this list of conditions and the following disclaimer in the
+#   documentation and/or other materials provided with the distribution.
+#
+# * Neither the names of Kitware, Inc., the Insight Software Consortium,
+#   nor the names of their contributors may be used to endorse or promote
+#   products derived from this software without specific prior written
+#   permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+SET(SDL2_SEARCH_PATHS
+	~/Library/Frameworks
+	/Library/Frameworks
+	/usr/local
+	/usr
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+)
+
+FIND_PATH(SDL2_INCLUDE_DIR SDL.h
+	NAMES SDL2
+	HINTS
+	$ENV{SDL2DIR}
+	PATH_SUFFIXES include/SDL2 include
+	PATHS ${SDL2_SEARCH_PATHS}
+)
+
+FIND_LIBRARY(SDL2_LIBRARY_TEMP
+	NAMES SDL2
+	HINTS
+	$ENV{SDL2DIR}
+	PATH_SUFFIXES lib64 lib
+	PATHS ${SDL2_SEARCH_PATHS}
+)
+
+IF(NOT SDL2_BUILDING_LIBRARY)
+	IF(NOT ${SDL2_INCLUDE_DIR} MATCHES ".framework")
+		# Non-OS X framework versions expect you to also dynamically link to
+		# SDL2main. This is mainly for Windows and OS X. Other (Unix) platforms
+		# seem to provide SDL2main for compatibility even though they don't
+		# necessarily need it.
+		FIND_LIBRARY(SDL2MAIN_LIBRARY
+			NAMES SDL2main
+			HINTS
+			$ENV{SDL2DIR}
+			PATH_SUFFIXES lib64 lib
+			PATHS ${SDL2_SEARCH_PATHS}
+		)
+	ENDIF(NOT ${SDL2_INCLUDE_DIR} MATCHES ".framework")
+ENDIF(NOT SDL2_BUILDING_LIBRARY)
+
+# SDL2 may require threads on your system.
+# The Apple build may not need an explicit flag because one of the
+# frameworks may already provide it.
+# But for non-OSX systems, I will use the CMake Threads package.
+IF(NOT APPLE)
+	FIND_PACKAGE(Threads)
+ENDIF(NOT APPLE)
+
+# MinGW needs an additional library, mwindows
+# It's total link flags should look like -lmingw32 -lSDL2main -lSDL2 -lmwindows
+# (Actually on second look, I think it only needs one of the m* libraries.)
+IF(MINGW)
+	SET(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW")
+ENDIF(MINGW)
+
+IF(SDL2_LIBRARY_TEMP)
+	# For SDL2main
+	IF(NOT SDL2_BUILDING_LIBRARY)
+		IF(SDL2MAIN_LIBRARY)
+			SET(SDL2_LIBRARY_TEMP ${SDL2MAIN_LIBRARY} ${SDL2_LIBRARY_TEMP})
+		ENDIF(SDL2MAIN_LIBRARY)
+	ENDIF(NOT SDL2_BUILDING_LIBRARY)
+
+	# For OS X, SDL2 uses Cocoa as a backend so it must link to Cocoa.
+	# CMake doesn't display the -framework Cocoa string in the UI even
+	# though it actually is there if I modify a pre-used variable.
+	# I think it has something to do with the CACHE STRING.
+	# So I use a temporary variable until the end so I can set the
+	# "real" variable in one-shot.
+	IF(APPLE)
+		SET(SDL2_LIBRARY_TEMP ${SDL2_LIBRARY_TEMP} "-framework Cocoa")
+	ENDIF(APPLE)
+
+	# For threads, as mentioned Apple doesn't need this.
+	# In fact, there seems to be a problem if I used the Threads package
+	# and try using this line, so I'm just skipping it entirely for OS X.
+	IF(NOT APPLE)
+		SET(SDL2_LIBRARY_TEMP ${SDL2_LIBRARY_TEMP} ${CMAKE_THREAD_LIBS_INIT})
+	ENDIF(NOT APPLE)
+
+	# For MinGW library
+	IF(MINGW)
+		SET(SDL2_LIBRARY_TEMP ${MINGW32_LIBRARY} ${SDL2_LIBRARY_TEMP})
+	ENDIF(MINGW)
+
+	# Set the final string here so the GUI reflects the final state.
+	SET(SDL2_LIBRARY ${SDL2_LIBRARY_TEMP} CACHE STRING "Where the SDL2 Library can be found")
+	# Set the temp variable to INTERNAL so it is not seen in the CMake GUI
+	SET(SDL2_LIBRARY_TEMP "${SDL2_LIBRARY_TEMP}" CACHE INTERNAL "")
+ENDIF(SDL2_LIBRARY_TEMP)
+
+INCLUDE(FindPackageHandleStandardArgs)
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2 REQUIRED_VARS SDL2_LIBRARY SDL2_INCLUDE_DIR)
diff --git a/debian/tests/cmake-findsdl2/README.txt b/debian/tests/cmake-findsdl2/README.txt
new file mode 100644
index 0000000..f23abba
--- /dev/null
+++ b/debian/tests/cmake-findsdl2/README.txt
@@ -0,0 +1,16 @@
+THIS IS NOT THE RECOMMENDED WAY TO USE SDL2 FROM CMAKE
+
+Since SDL 2.0.6, the recommended way to link to a system copy of SDL2
+from a CMake project is to behave like debian/tests/cmake-example - use
+find_package(SDL2) without a FindSDL2 macro. However, not all upstream
+projects that build using CMake have caught up with this yet.
+
+This specific implementation was taken from openjk,
+but it's regularly copied around, and can be found
+in hedgewars, spring and many other packages:
+https://codesearch.debian.net/search?q=Other+versions+link+to+-lSDL2main&literal=1
+
+Inclusion of a vaguely similar file in CMake was rejected in
+<https://github.com/Kitware/CMake/pull/149>.
+
+Bug-Debian: https://bugs.debian.org/951087
diff --git a/debian/tests/cmake-findsdl2/hello.c b/debian/tests/cmake-findsdl2/hello.c
new file mode 100644
index 0000000..fcf9bdb
--- /dev/null
+++ b/debian/tests/cmake-findsdl2/hello.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2019 Collabora Ltd.
+ * SPDX-License-Identifier: Zlib
+ * (see "zlib/libpng" in debian/copyright)
+ */
+
+#include <SDL.h>
+
+int
+main (int argc, char **argv)
+{
+  if (SDL_Init(0) != 0) {
+      SDL_Log("SDL_Init: %s", SDL_GetError());
+      return 1;
+  }
+
+  SDL_Log("Hello, world!");
+  SDL_Quit();
+  return 0;
+}
diff --git a/debian/tests/cmake-main/CMakeLists.txt b/debian/tests/cmake-main/CMakeLists.txt
new file mode 100644
index 0000000..a2fc766
--- /dev/null
+++ b/debian/tests/cmake-main/CMakeLists.txt
@@ -0,0 +1,10 @@
+# Copyright 2022 quyykk
+# SPDX-License-Identifier: Zlib
+
+cmake_minimum_required(VERSION 3.13)
+
+project(Test LANGUAGES CXX)
+
+find_package(SDL2 CONFIG REQUIRED)
+add_executable(program test.cpp)
+target_link_libraries(program PRIVATE SDL2::SDL2 SDL2::SDL2main)
diff --git a/debian/tests/cmake-main/test.cpp b/debian/tests/cmake-main/test.cpp
new file mode 100644
index 0000000..8f89c6e
--- /dev/null
+++ b/debian/tests/cmake-main/test.cpp
@@ -0,0 +1,14 @@
+// Copyright 2022 quyykk
+// SPDX-License-Identifer: Zlib
+
+#include <iostream>
+#include <SDL2/SDL.h>
+
+int main()
+{
+	if(SDL_Init(SDL_INIT_VIDEO) != 0)
+		return -1;
+
+	std::cout << "initialized!\n";
+	return 0;
+}
diff --git a/debian/tests/cmake-static/CMakeLists.txt b/debian/tests/cmake-static/CMakeLists.txt
new file mode 100644
index 0000000..5f06247
--- /dev/null
+++ b/debian/tests/cmake-static/CMakeLists.txt
@@ -0,0 +1,11 @@
+# Copyright 2019-2022 Collabora Ltd.
+# SPDX-License-Identifier: Zlib
+# (see "zlib/libpng" in debian/copyright)
+
+cmake_minimum_required(VERSION 3.13)
+project(Hello)
+
+find_package(SDL2 REQUIRED)
+
+add_executable(hello hello.c)
+target_link_libraries(hello SDL2::SDL2-static)
diff --git a/debian/tests/cmake-static/hello.c b/debian/tests/cmake-static/hello.c
new file mode 100644
index 0000000..fcf9bdb
--- /dev/null
+++ b/debian/tests/cmake-static/hello.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2019 Collabora Ltd.
+ * SPDX-License-Identifier: Zlib
+ * (see "zlib/libpng" in debian/copyright)
+ */
+
+#include <SDL.h>
+
+int
+main (int argc, char **argv)
+{
+  if (SDL_Init(0) != 0) {
+      SDL_Log("SDL_Init: %s", SDL_GetError());
+      return 1;
+  }
+
+  SDL_Log("Hello, world!");
+  SDL_Quit();
+  return 0;
+}
diff --git a/debian/tests/cmake-targets/CMakeLists.txt b/debian/tests/cmake-targets/CMakeLists.txt
new file mode 100644
index 0000000..e221b05
--- /dev/null
+++ b/debian/tests/cmake-targets/CMakeLists.txt
@@ -0,0 +1,11 @@
+# Copyright 2019-2022 Collabora Ltd.
+# SPDX-License-Identifier: Zlib
+# (see "zlib/libpng" in debian/copyright)
+
+cmake_minimum_required(VERSION 3.13)
+project(Hello)
+
+find_package(SDL2 REQUIRED)
+
+add_executable(hello hello.c)
+target_link_libraries(hello SDL2::SDL2)
diff --git a/debian/tests/cmake-targets/hello.c b/debian/tests/cmake-targets/hello.c
new file mode 100644
index 0000000..fcf9bdb
--- /dev/null
+++ b/debian/tests/cmake-targets/hello.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2019 Collabora Ltd.
+ * SPDX-License-Identifier: Zlib
+ * (see "zlib/libpng" in debian/copyright)
+ */
+
+#include <SDL.h>
+
+int
+main (int argc, char **argv)
+{
+  if (SDL_Init(0) != 0) {
+      SDL_Log("SDL_Init: %s", SDL_GetError());
+      return 1;
+  }
+
+  SDL_Log("Hello, world!");
+  SDL_Quit();
+  return 0;
+}
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e0f25b9
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,15 @@
+Tests: build
+Depends: build-essential, clang:native, libsdl2-dev
+Restrictions: superficial, allow-stderr
+
+Tests: deprecated-use
+Depends: build-essential, clang:native, libsdl2-dev, libsdl2-ttf-dev
+Restrictions: superficial, allow-stderr
+
+Tests: cmake
+Depends: build-essential, cmake, libsdl2-dev
+Restrictions: superficial, allow-stderr
+
+Tests: installed-tests
+Depends: gnome-desktop-testing, libsdl2-tests
+Restrictions: superficial, allow-stderr
diff --git a/debian/tests/deprecated-use b/debian/tests/deprecated-use
new file mode 100755
index 0000000..074d0d5
--- /dev/null
+++ b/debian/tests/deprecated-use
@@ -0,0 +1,138 @@
+#!/bin/sh
+# This test exercises various ways to use SDL2 that are considered
+# incorrect, but used to work.
+#
+# Loosely based on glib2.0's debian/tests/build
+# (C) 2012 Canonical Ltd.
+# (C) 2018-2020 Simon McVittie
+# Authors: Martin Pitt, Simon McVittie
+
+set -eux
+
+WORKDIR=$(mktemp -d)
+trap 'rm -rf "$WORKDIR"' 0 INT QUIT ABRT PIPE TERM
+
+if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
+    CROSS_COMPILE="$DEB_HOST_GNU_TYPE-"
+else
+    CROSS_COMPILE=
+fi
+
+cd "$WORKDIR"
+cat <<EOF > use-sdl.c
+#undef NDEBUG
+#include <assert.h>
+
+#ifdef WRONG_INCLUDE_PATH
+# if INDIRECT
+#   include <SDL2/SDL_ttf.h>
+# else
+#   include <SDL2/SDL.h>
+# endif
+#else
+# if INDIRECT
+#   include <SDL_ttf.h>
+# else
+#   include <SDL.h>
+# endif
+#endif
+
+int main(void)
+{
+    SDL_version compiled;
+    SDL_version linked;
+
+    SDL_VERSION(&compiled);
+    SDL_GetVersion(&linked);
+
+    assert(compiled.major == 2);
+    assert(linked.major == 2);
+
+    return 0;
+}
+EOF
+
+cd "$WORKDIR"
+cat <<EOF > use-ttf.c
+#undef NDEBUG
+#include <assert.h>
+
+#ifdef WRONG_INCLUDE_PATH
+# include <SDL2/SDL_ttf.h>
+#else
+# include <SDL_ttf.h>
+#endif
+
+int main(void)
+{
+    const SDL_version *version = TTF_Linked_Version();
+    assert (version != NULL);
+
+    return 0;
+}
+EOF
+
+# Emulate the assumption made by neverball_1.6.0+git20180603-2,
+# which assumes that the CFLAGS from sdl2-config are enough to
+# find related libraries like SDL2_ttf.
+
+for tool in pkg-config sdl2-config; do
+    case "$tool" in
+    (pkg-config)
+        # shellcheck disable=SC2046
+        "${CROSS_COMPILE}gcc" -o "use-${tool}" use-ttf.c $("${CROSS_COMPILE}pkg-config" --cflags --libs sdl2 SDL2_ttf)
+        ;;
+    (sdl2-config)
+        # shellcheck disable=SC2046
+        "${CROSS_COMPILE}gcc" -o "use-${tool}" use-ttf.c $(PKG_CONFIG="${CROSS_COMPILE}pkg-config" sdl2-config --cflags --libs) -lSDL2_ttf
+        ;;
+    (*)
+        exit 1
+        ;;
+    esac
+
+    echo "build (with $tool): OK"
+    [ -x use-${tool} ]
+    ./use-${tool}
+    echo "run (with $tool): OK"
+done
+
+# Emulate the assumption made by planetblupi_1.14.2-1,
+# which assumes that the SDL2 headers are in /usr/include/SDL2 without
+# consulting pkg-config.
+
+# shellcheck disable=SC2046
+"${CROSS_COMPILE}gcc" -o use-sdl use-sdl.c -I/usr/include/SDL2 $("${CROSS_COMPILE}pkg-config" --libs sdl2)
+# shellcheck disable=SC2046
+"${CROSS_COMPILE}gcc" -o use-ttf use-ttf.c -I/usr/include/SDL2 $("${CROSS_COMPILE}pkg-config" --libs sdl2 SDL2_ttf)
+echo "build (assuming headers in /usr/include/SDL2): OK"
+[ -x use-sdl ]
+./use-sdl
+[ -x use-ttf ]
+./use-ttf
+echo "run: OK"
+
+# Emulate the assumption made by jag_0.3.5-5, mrboom_4.9-1 and
+# trigger-rally_0.6.6.1-2, which assume that the SDL2 headers can be
+# included via #include <SDL2/foo.h>.
+
+"${CROSS_COMPILE}gcc" -o use-sdl use-sdl.c -DWRONG_INCLUDE_PATH -lSDL2
+"${CROSS_COMPILE}gcc" -o use-ttf use-ttf.c -DWRONG_INCLUDE_PATH -lSDL2 -lSDL2_ttf
+echo "build (assuming <SDL2/*.h> and -lSDL2* in default search paths): OK"
+[ -x use-sdl ]
+./use-sdl
+[ -x use-ttf ]
+./use-ttf
+echo "run: OK"
+
+# clang has different symlink behaviour, so building jag_0.3.5-5 etc.
+# with clang would have a different failure mode. Test that too.
+
+clang ${DEB_HOST_GNU_TYPE:+--target="${DEB_HOST_GNU_TYPE}"} -o use-sdl use-sdl.c -DWRONG_INCLUDE_PATH -lSDL2
+clang ${DEB_HOST_GNU_TYPE:+--target="${DEB_HOST_GNU_TYPE}"} -o use-ttf use-ttf.c -DWRONG_INCLUDE_PATH -lSDL2 -lSDL2_ttf
+echo "build (clang, assuming <SDL2/*.h> and -lSDL2* in default search paths): OK"
+[ -x use-sdl ]
+./use-sdl
+[ -x use-ttf ]
+./use-ttf
+echo "run: OK"
diff --git a/debian/tests/installed-tests b/debian/tests/installed-tests
new file mode 100755
index 0000000..7cd5fe8
--- /dev/null
+++ b/debian/tests/installed-tests
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -eu
+
+namespace=SDL2/
+
+if [ -z "${HOME-}" ] || ! [ -w "${HOME}" ]; then
+    export HOME="${AUTOPKGTEST_TMP}"
+fi
+
+export SDL_AUDIODRIVER=dummy
+export SDL_VIDEODRIVER=dummy
+cd "$AUTOPKGTEST_TMP"
+
+if [ -z "$(ginsttest-runner -l "$namespace")" ]; then
+    echo "Error: no installed-tests found matching $namespace" >&2
+    exit 1
+fi
+
+exec ginsttest-runner --tap "$namespace"
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..a998002
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Repository: https://github.com/libsdl-org/SDL.git
+Repository-Browse: https://github.com/libsdl-org/SDL
+Bug-Database: https://github.com/libsdl-org/SDL/issues
+Bug-Submit: https://github.com/libsdl-org/SDL/issues/new
diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..a2ecdfa
--- /dev/null
+++ b/debian/upstream/signing-key.asc
@@ -0,0 +1,23 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQGiBDpWOb0RBADQwd3d9mzt6KzqlsgXf9mikBuMbpKzYs1SBKYpdzUs9sRY0CnH
+vCQTrL5sI57yKLnqEl6SbIiE75ZwrSWwvUDFFTh35Jew5nPZwv64en2kw2y4qrnJ
+kBZCHDSU4KgfUZtoJ25Tmeru5MLNbXxCOoMszO5L5OchwMrGMtmFLRA/bwCgy5Th
+d1/vJo+bej9tbgv++SJ05o0D/3MPK7EBoxWkQ0I+ScqOsvSMRQXWc/hXy4lyIp8e
+xJByBApkv0LiiT3KlPpq/K2gTlDlCZ/JTt6Rv8Ug0g47R3a0aoz9kfc15UjHdiap
+UOfF9MWmmbw59Lyx6+y2e0/C5xWzNOR1G4G5y4RZL/GXrp67xz/0fEhI85R+eASq
+AEfSBAC5ZxwnBwyl+h+PXeJYKrPQjSUlgtSAkKp7PNBywwlue1LcSb7j4cc+cmgH
+QMVuM883LPE59btNzFTAZjlzzIMiaXf5h9EkDARTGQ1wFiO3V5vIbVLh4kAoNfpT
+egy7bYn3UrlbKg3V2DbCdEXm1zQufZzK7T0yenA5Ps8xXX7mNrQhU2FtIExhbnRp
+bmdhIDxzbG91a2VuQGxpYnNkbC5vcmc+iF8EExECABcFAjpWOb0FCwcKAwQDFQMC
+AxYCAQIXgAASCRAwpZN3p3Y75gdlR1BHAAEB31EAnjxYj6c496zRYru3fzUiPgl9
+JjFZAKCOkxoODf9qHbcdmFi1Mq0dTMP3OLkBDQQ6VjnDEAQA++MHQHlE0CPyEEX8
+urvzDmsnX9/lGpZeZ1/ECm4QT/04QVdRJReaz1/8ha/JJ3J/jw+Ti3aHxvyLsXR/
+dH61wKnqbQ+3UFI0di6Z+a2idPLkUeqnAFWUSLsjSzmYPeTE76Tw9BsBMcfmyYWe
+jPZRNz4zNCNR21PNdSRSCq9/3NMAAwYD/1j+HquGLdhhd4jpKZtepybOxArNpZWE
+t7DruzN6OdiwognWNrgx59iW2EJeCYgGuI1+3Ega0EjQ9ybPCmfR6SdE0ro2CmYR
+JsYoJaHn0l6IArmF0E97jstIVVy3nNI729CFEPIvOHM8+0Hdd6gpNSQtbEFItt5l
+XBwc8gr/AtqXiE4EGBECAAYFAjpWOcMAEgkQMKWTd6d2O+YHZUdQRwABAcZlAJ9z
+Xumd1FC6YnvEST9eUQbeitjFhQCfYSvy7PxXgSfXedKsZmHWdka01zY=
+=62+H
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..73f5d47
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,12 @@
+version=4
+# Upstream releases official Autotools 'make dist' tarballs, so we use
+# those in preference to git tags
+opts="\
+    compression=gzip, \
+    dversionmangle=s/\+(?:git)?[0-9]*(?:\+g[0-9a-f]*)//;s/[+~](?:ds|dfsg)[0-9]*//, \
+    downloadurlmangle=s#/tag/#/download/#;s#((?:pre)?release-?@ANY_VERSION@)$#$1/SDL2-$2.tar.gz#, \
+    filenamemangle=s#(?:pre)?release-?@ANY_VERSION@#SDL2-$1.tar.gz#, \
+    pgpmode=auto, \
+    repack, \
+    repacksuffix=+dfsg" \
+https://github.com/libsdl-org/SDL/tags .*/releases/tag/release-?(2\.[0-9.]+)
diff --git a/debian/watch.devel b/debian/watch.devel
new file mode 100644
index 0000000..b6e9fcc
--- /dev/null
+++ b/debian/watch.devel
@@ -0,0 +1,12 @@
+version=4
+# Upstream releases official Autotools 'make dist' tarballs, so we use
+# those in preference to git tags
+opts="\
+    compression=gzip, \
+    dversionmangle=s/\+(?:git)?[0-9]*(?:\+g[0-9a-f]*)//;s/[+~](?:ds|dfsg)[0-9]*//, \
+    downloadurlmangle=s#/tag/#/download/#;s#((?:pre)?release-?@ANY_VERSION@)$#$1/SDL2-$2.tar.gz#, \
+    filenamemangle=s#(?:pre)?release-?@ANY_VERSION@#SDL2-$1.tar.gz#, \
+    pgpmode=auto, \
+    repack, \
+    repacksuffix=+dfsg" \
+https://github.com/libsdl-org/SDL/tags .*/releases/tag/(?:pre)?release-?(2\.[0-9.]+)


More information about the Neon-commits mailing list