mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Merged in 5HT/haikuports (pull request #145)
Haiku Chat fixes and MC 4.8.11 new recipe
This commit is contained in:
66
app-misc/mc/mc-4.8.11.recipe
Normal file
66
app-misc/mc/mc-4.8.11.recipe
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
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#d26b7dd6ee49211f4d18fdfbe193023a3e480389"
|
||||||
|
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>"
|
||||||
|
|
||||||
|
GLOBAL_WRITABLE_FILES="
|
||||||
|
settings/mc directory keep-old
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
mc = $portVersion
|
||||||
|
cmd:mc = $portVersion
|
||||||
|
cmd:mcedit = $portVersion
|
||||||
|
cmd:mcdiff = $portVersion
|
||||||
|
cmd:mcview = $portVersion
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRES="
|
||||||
|
haiku >= $haikuVersion
|
||||||
|
lib:libncurses
|
||||||
|
lib:libintl
|
||||||
|
lib:libiconv
|
||||||
|
lib:libglib_2.0
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
devel:libncurses
|
||||||
|
devel:libintl
|
||||||
|
devel:libiconv
|
||||||
|
devel:libglib_2.0
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:pkg_config
|
||||||
|
haiku_devel >= $haikuVersion
|
||||||
|
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" --datarootdir="$dataRootDir" --with-screen=ncurses
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
}
|
||||||
12
app-misc/mc/patches/mc.patch
Normal file
12
app-misc/mc/patches/mc.patch
Normal 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
|
||||||
|
|
||||||
@@ -9,13 +9,13 @@ DESCRIPTION="
|
|||||||
HOMEPAGE="http://synrc.com/client/chat/haiku/"
|
HOMEPAGE="http://synrc.com/client/chat/haiku/"
|
||||||
SRC_URI="git+https://github.com/devaspot/chat.git"
|
SRC_URI="git+https://github.com/devaspot/chat.git"
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
COPYRIGHT="2012 Maxim Sokhatsky"
|
COPYRIGHT="2010-2014 Maxim Sokhatsky"
|
||||||
REVISION="1"
|
REVISION="2"
|
||||||
ARCHITECTURES="x86_gcc2 x86"
|
ARCHITECTURES="x86_gcc2 x86"
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
chat = $portVersion
|
Chat = $portVersion
|
||||||
app:chat = $portVersion
|
app:Chat = $portVersion
|
||||||
"
|
"
|
||||||
|
|
||||||
REQUIRES="
|
REQUIRES="
|
||||||
@@ -35,18 +35,18 @@ BUILD_PREREQUIRES="
|
|||||||
cmd:gcc$secondaryArchSuffix
|
cmd:gcc$secondaryArchSuffix
|
||||||
cmd:make
|
cmd:make
|
||||||
cmd:which
|
cmd:which
|
||||||
|
cmd:mkdepend
|
||||||
"
|
"
|
||||||
|
|
||||||
BUILD()
|
BUILD()
|
||||||
{
|
{
|
||||||
cd src
|
cd src
|
||||||
make -f Makefile.gcc2 BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
|
BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` make
|
||||||
chmod 755 Chat
|
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTALL()
|
INSTALL()
|
||||||
{
|
{
|
||||||
mkdir -p $appsDir
|
mkdir -p $appsDir
|
||||||
cp src/Chat $appsDir/Chat
|
cp src/objects.x86-gcc2-release/Chat $appsDir/Chat
|
||||||
addAppDeskbarSymlink $appsDir/Chat "Chat"
|
addAppDeskbarSymlink $appsDir/Chat "Chat"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user