mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
mc: move one-liner patch into recipe
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user