Remove FindSDL2 find-module, use sdl2-config.cmake instead
This requires SDL >= 2.0.4.
Since <https://bugzilla.libsdl.org/show_bug.cgi?id=2464> was fixed in
SDL 2.0.4, SDL behaves as a CMake "config-file package", even if it was
not itself built using CMake: it installs a sdl2-config.cmake file to
${libdir}/cmake/SDL2, which tells CMake where to find SDL's headers and
library, analogous to a pkg-config .pc file.
As a result, we no longer need to copy/paste a "find-module package"
to be able to find a system copy of SDL >= 2.0.4 with find_package(SDL2).
Find-module packages are now discouraged by the CMake developers, in
favour of having upstream projects behave as config-file packages.
This results in a small API change: FindSDL2 used to set SDL2_INCLUDE_DIR
and SDL2_LIBRARY, but the standard behaviour for config-file packages is
to set <name>_INCLUDE_DIRS and <name>_LIBRARIES. Use the CONFIG keyword
to make sure we search in config-file package mode, and will not find a
FindSDL2.cmake in some other directory that implements the old interface.
In addition to deleting redundant code, this avoids some assumptions in
FindSDL2 about the layout of a SDL installation. The current libsdl2-dev
package in Debian breaks those assumptions; this is considered a bug
and will hopefully be fixed soon, but it illustrates how fragile these
assumptions can be. We can be more robust against different installation
layouts by relying on SDL's own CMake integration.
When linking to a copy of CMake in a non-standard location, users can
now set the SDL2_DIR or CMAKE_PREFIX_PATH environment variable to point
to it; previously, these users would have used the SDL2DIR environment
variable. This continues to be unnecessary if using matching system-wide
installations of CMake and SDL2, for example both from Debian.
=============================
=== EXTENDED CREDITS LIST ===
=============================
For the main credits, click on the Hedgewars logo in the main menu.
IF NOT OTHERWISE SPECIFIED, ALL OTHER CONTENT IS PROPERTY OF Andrey Korotaev <unC0Rr@gmail.com>.
IF NO LICENSE IS SPECIFIED, THE LICENSE IS THE SAME AS MENTIONED IN README.md.
Note: The asterisk is a placeholder which stands for any sequence of characters.
==========
= FONTS
==========
- see Fonts_LICENSE.txt
==========
= HATS
==========
- Robinator -> Terminator_Glasses (2010)
- shingo666 -> ntd_Samus (2010)
- MeinCookie95 -> InfernalHorns (2010), Mummy (2010), war_* (2010-2011)
- thuban -> Elvis (2010)
- Miphica -> Disguise (2010)
- Blayde -> zoo_Deer (2010), zoo_Moose (2010)
- hillis -> AkuAku (2010)
- Lortinak -> OldMan (2010), ShortHair_* (2010)
- chujoii -> scif_BrainSlug (2010), scif_BrainSlug2 (2010), Dragon (2010), dish_Ladle (2010), Laminaria (2010), Pantsu (2010), zoo_Pig (2010), Plunger (2010), dish_SauceBoatSilver (2010), ShaggyYeti (2010), Sleepwalker (2010), SunWukong (2010), dish_Teapot (2010), dish_Teacup (2010), Zombi (2010)
- Randy Broda -> cyclops (2011), TeamSoldier (2011)
- Zav -> zoo_octopus (2009)
- Star and Moon -> bishop (2011)
- Gimo -> leprechaun [based on tophats] (2011)
- Terrington_Snyde -> pirate_eyepatch (2013), jester (2013)
- Wohlstand -> policegirl [based on policecap and sm_daisy] (2014)
- TheMadCharles -> barrelhider (CC BY 3.0) (2015)
- Trey Perry <perry.j@gmail.com> -> Other hats
- alfadur -> zoo_crocodile (2019)
==========
= GRAVES
==========
- Randy Broda -> dragonball (2012)
- CheezeMonkey -> pi (2011)
- rosenholz -> Whisky (2013)
=================
= FRONTEND IMAGES
=================
(File name suffixes are omitted)
- Tango Project and Wuzzy -> audio, home (CC0)
- abustany and Wuzzy -> Videos (CC0)
- Juliane Krug and Wuzzy -> Palette (CC0)
- raseone and Wuzzy -> folder (CC0)
==================
= OTHER GRAPHICS =
==================
- Custom ammo images for Continental supplies: KarBoy2314PL
==========
= SOUND EFFECTS
==========
- Mine impact sound from http://www.freesound.org/people/adcbicycle/sounds/13947/
- Hammer sound from http://www.freesound.org/people/Syna-Max/sounds/43586/
- Sinegun firing sound remixed from
http://beta.freesound.org/people/aust_paul/sounds/30935/
http://www.freesound.org/people/Edgar/sounds/162/
http://www.freesound.org/people/Ionizing/sounds/22033/
http://www.freesound.org/people/Jovica/sounds/38317/
- Cleaver impact sound remixed from
http://www.freesound.org/people/sethlind/sounds/265021/
- Extra Time sound originally by uair01 (CC-BY 3.0), remixed from
http://www.freesound.org/people/uair01/sounds/65291/
- Air mine impact sound by Wuzzy (CC-0), based on
http://www.freesound.org/people/batchku/sounds/10479/
- Rubber duck sounds are in the Public Domain.
- Countdown sounds by Wuzzy (CC-0)
- Laser Sight sound originally from drzhn (CC-0), remixed from
https://www.freesound.org/people/drzhnn/sounds/199938/
- Flying Saucer boost sound originally by Jagadamba (CC-BY 3.0), remixed from
https://www.freesound.org/people/Jagadamba/sounds/257057/
- Blowtorch sound originally by rombard (CC-0), remixed from
https://www.freesound.org/people/rombart/sounds/197800/
- Flamethrower sound originally by AslakHostaker (CC-0), adapted from
https://freesound.org/people/AslakHostaker/sounds/395039/
- Landspray sound originally by Benboncan (CC BY 3.0), remixed from
https://freesound.org/people/Benboncan/sounds/82390/
- Portable Portal Device color switching sound by Wuzzy (CC-0)
- Portable Portal Device shot sound originally by bubaproducer (CC-BY 3.0), remixed from
https://www.freesound.org/people/bubaproducer/sounds/151026/
- Portal opening sound by Wuzzy (CC-0)
- Invulnerable sound: remix based on a sound by pepingrillin (CC-0)
https://www.freesound.org/people/pepingrillin/sounds/252079/
- Droplet1.ogg, Droplet2.ogg, Droplet3.ogg: based off a recording by saugox (CC-BY 3.0)
https://freesound.org/people/saugox/sounds/37548/
- Shoryuken hit: Based off sound by CGEffex (CC-BY 3.0), tweaked by alfadur
http://freesound.org/people/CGEffex/sounds/98341/
======================
= LICENSE REFERENCES =
======================
- CC-BY 3.0: https://creativecommons.org/licenses/by/3.0/
- CC-0: https://creativecommons.org/publicdomain/zero/1.0/