summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Strogin <steils@gentoo.org>2019-07-30 10:18:13 +0300
committerStefan Strogin <steils@gentoo.org>2019-07-30 10:26:06 +0300
commitf852753fbcded429107d55b542666b8c31e4df3e (patch)
tree71de1ad715cdaadddfec3dac40228b1541852df2 /games-arcade/netris/files
parentdev-python/jsonrpclib: Sync -9999 (diff)
downloadgentoo-f852753fbcded429107d55b542666b8c31e4df3e.tar.gz
gentoo-f852753fbcded429107d55b542666b8c31e4df3e.tar.bz2
gentoo-f852753fbcded429107d55b542666b8c31e4df3e.zip
games-arcade/netris: add patch to build with ncurses[tinfo]
- Update Debian patchset - EAPI=7 Closes: https://bugs.gentoo.org/687992 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Stefan Strogin <steils@gentoo.org>
Diffstat (limited to 'games-arcade/netris/files')
-rw-r--r--games-arcade/netris/files/netris-0.52-tinfo.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/games-arcade/netris/files/netris-0.52-tinfo.patch b/games-arcade/netris/files/netris-0.52-tinfo.patch
new file mode 100644
index 000000000000..2b2363a1c61a
--- /dev/null
+++ b/games-arcade/netris/files/netris-0.52-tinfo.patch
@@ -0,0 +1,14 @@
+diff --git a/Configure b/Configure
+index a8bf8f6..3fa9097 100755
+--- a/Configure
++++ b/Configure
+@@ -80,6 +80,9 @@ for lib in -lcurses -lncurses; do
+ LFLAGS="$lib"
+ fi
+ done
++if $CC $CFLAGS $LEXTRA test.c -ltinfo > /dev/null 2>&1; then
++ LFLAGS="$LFLAGS -ltinfo"
++fi
+ for lib in -lsocket -lnsl -ltermcap; do
+ if $CC $CFLAGS $LEXTRA test.c $lib > /dev/null 2>&1; then
+ LFLAGS="$LFLAGS $lib"