Midnight Commander 4.8.11 recipe

This commit is contained in:
Maxim Sokhatsky
2014-01-16 19:38:18 +00:00
parent 6c06b62ea2
commit 7b92e0b46e
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
SUMMARY="Midnight Commander — a powerful file manager."
DESCRIPTION="
GNU Midnight Commander is a text-mode full-screen file manager. It uses a two panel interface and a subshell for command execution. It includes an internal editor with syntax highlighting and an internal viewer with support for binary files. Also included is Virtual Filesystem (VFS), that allows files on remote systems (e.g. FTP, SSH servers) and files inside archives to be manipulated like real files."
HOMEPAGE="http://www.midnight-commander.org/"
SRC_URI="git+https://github.com/MidnightCommander/mc#a8ffc26817fd7a5a60f7672b31b6368b0753226e"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2007 MC Team"
ARCHITECTURES="x86 x86_gcc2"
PATCHES="mc.patch"
SOURCE_DIR="mc-4.8.11"
COOK="Maxim Sokhatsky <maxim@synrc.com>"
PROVIDES="
mc = $portVersion
cmd:mc = $portVersion
cmd:mcedit = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
devel:libncurses
devel:libintl
devel:libiconv
"
BUILD_PREREQUIRES="
cmd:pkg_config
haiku_devel >= $haikuVersion
devel:libglib_2.0
devel:libslang
cmd:gettext
cmd:make
cmd:tar
cmd:libtoolize
cmd:aclocal
cmd:autom4te
cmd:autoconf
cmd:automake
cmd:autoheader
cmd:gcc
"
BUILD()
{
autogen.sh
runConfigure configure --prefix="$prefix" --with-screen=ncurses
make
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,12 @@
diff --git mc-4.8.11/lib/tty/tty-ncurses.c mc-4.8.11-haiku/lib/tty/tty-ncurses.c
--- mc-4.8.11/lib/tty/tty-ncurses.c
+++ mc-4.8.11-haiku/lib/tty/tty-ncurses.c
@@ -66,7 +66,7 @@
/*** file scope macro definitions ****************************************************************/
-#if defined(_AIX) && !defined(CTRL)
+#if !defined(CTRL)
#define CTRL(x) ((x) & 0x1f)
#endif