aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/supertux/APKBUILD7
-rw-r--r--community/supertux/missing-include-for-FLT_EPSILON.patch13
2 files changed, 18 insertions, 2 deletions
diff --git a/community/supertux/APKBUILD b/community/supertux/APKBUILD
index 8972542a60..cfb7e8ff50 100644
--- a/community/supertux/APKBUILD
+++ b/community/supertux/APKBUILD
@@ -11,7 +11,9 @@ depends="$pkgname-data"
makedepends="boost-dev cmake curl-dev freetype-dev glew-dev libpng-dev libvorbis-dev openal-soft-dev physfs-dev sdl2-dev sdl2_image-dev"
subpackages="$pkgname-doc $pkgname-data::noarch"
options="!check" # no test suite
-source="https://github.com/SuperTux/supertux/releases/download/v$pkgver/SuperTux-v$pkgver-Source.tar.gz"
+source="https://github.com/SuperTux/supertux/releases/download/v$pkgver/SuperTux-v$pkgver-Source.tar.gz
+ missing-include-for-FLT_EPSILON.patch
+ "
builddir="$srcdir/SuperTux-v$pkgver-Source"
build() {
@@ -41,4 +43,5 @@ data() {
mv "$pkgdir"/usr/share/games "$subpkgdir"/usr/share/games
}
-sha512sums="5baa783ee589b42a9bbce3740659dbb7b617ebfcc00c0a038c03d31b56700e3923c8548700ccebe42b325ca03bd85186bc5edef9f6580d93dc48d8aca88cbf74 SuperTux-v0.6.2-Source.tar.gz"
+sha512sums="5baa783ee589b42a9bbce3740659dbb7b617ebfcc00c0a038c03d31b56700e3923c8548700ccebe42b325ca03bd85186bc5edef9f6580d93dc48d8aca88cbf74 SuperTux-v0.6.2-Source.tar.gz
+4e4116cb0dc7f996cdb96484eac99bd7f5a16829f6b082cc2e4c17b22e6e2f34501b8e3e4caf3c956369c5cd6caa12179b8a4cb1f93c2c8c8b014e3829272cb3 missing-include-for-FLT_EPSILON.patch"
diff --git a/community/supertux/missing-include-for-FLT_EPSILON.patch b/community/supertux/missing-include-for-FLT_EPSILON.patch
new file mode 100644
index 0000000000..44bc370a74
--- /dev/null
+++ b/community/supertux/missing-include-for-FLT_EPSILON.patch
@@ -0,0 +1,13 @@
+diff --git a/src/supertux/game_session.cpp b/src/supertux/game_session.cpp
+index 41de52e..a8ebfc9 100644
+--- a/src/supertux/game_session.cpp
++++ b/src/supertux/game_session.cpp
+@@ -14,6 +14,8 @@
+ // You should have received a copy of the GNU General Public License
+ // along with this program. If not, see <http://www.gnu.org/licenses/>.
+
++#include <cfloat>
++
+ #include "supertux/game_session.hpp"
+
+ #include "audio/sound_manager.hpp"