mc: move one-liner patch into recipe

This commit is contained in:
Sergei Reznikov
2016-10-04 11:23:14 +03:00
parent 87d78fb645
commit 91ba6909b8
2 changed files with 6 additions and 12 deletions

View File

@@ -11,7 +11,6 @@ LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://ftp.midnight-commander.org/mc-$portVersion.tar.xz"
CHECKSUM_SHA256="f7636815c987c1719c4f5de2dcd156a0e7d097b1d10e4466d2bdead343d5bece"
PATCHES="mc-$portVersion.patch"
ARCHITECTURES="x86_gcc2 x86 x86_64"
@@ -56,6 +55,12 @@ BUILD_PREREQUIRES="
cmd:tar
"
PATCH()
{
sed -i '1i #define REAL_UNIX_SYSTEM' lib/tty/tty-slang.h
}
BUILD()
{
CFLAGS="-D_BSD_SOURCE" LIBS=-lnetwork runConfigure configure \

View File

@@ -1,11 +0,0 @@
diff --git a/lib/tty/tty-slang.h b/lib/tty/tty-slang.h
--- a/lib/tty/tty-slang.h
+++ b/lib/tty/tty-slang.h
@@ -1,6 +1,7 @@
#ifndef MC__TTY_SLANG_H
#define MC__TTY_SLANG_H
+#define REAL_UNIX_SYSTEM
#ifdef HAVE_SLANG_SLANG_H
#include <slang/slang.h>