games-puzzle/atris: modernize autotools and do not use implicit

Signed-off-by: Samuel Bauer <samuel.bauer@yahoo.fr>
This commit is contained in:
Samuel Bauer
2023-07-13 23:43:31 +02:00
parent 103d54f4fe
commit 25e2524453
2 changed files with 18 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit desktop
inherit autotools desktop
DESCRIPTION="Alizarin tetris"
HOMEPAGE="https://www.wkiri.com/projects/atris/"
@@ -26,8 +26,14 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-path-and-fullscreen.patch
"${FILESDIR}"/${P}-no-implicit.patch
)
src_prepare() {
default
eautoreconf
}
src_install() {
dobin atris
insinto /usr/share/${PN}

View File

@@ -0,0 +1,11 @@
--- a/configure.in
+++ b/configure.in
@@ -69,7 +69,7 @@
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found! Get it from http://www.libsdl.org ])
)
-CFLAGS="$CFLAGS -Wall -Wimplicit -Wsign-compare -Wpointer-arith $SDL_CFLAGS -DATRIS_LIBDIR=\\\"$GAME_INSTALLDIR\\\""
+CFLAGS="$CFLAGS -Wall -Wsign-compare -Wpointer-arith $SDL_CFLAGS -DATRIS_LIBDIR=\\\"$GAME_INSTALLDIR\\\""
LIBS="$LIBS $SDL_LIBS"
# Finally create all the generated files