Files
haikuports/app-misc/mc/mc-4.8.18.recipe
2016-10-04 11:23:14 +03:00

85 lines
1.9 KiB
Bash

SUMMARY="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="https://www.midnight-commander.org/"
COPYRIGHT="1994-2016, Free Software Foundation"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://ftp.midnight-commander.org/mc-$portVersion.tar.xz"
CHECKSUM_SHA256="f7636815c987c1719c4f5de2dcd156a0e7d097b1d10e4466d2bdead343d5bece"
ARCHITECTURES="x86_gcc2 x86 x86_64"
GLOBAL_WRITABLE_FILES="settings/mc directory keep-old"
PROVIDES="
mc = $portVersion compat >= $portVersion
cmd:mc = $portVersion compat >= $portVersion
cmd:mcedit = $portVersion compat >= $portVersion
cmd:mcdiff = $portVersion compat >= $portVersion
cmd:mcview = $portVersion compat >= $portVersion
"
REQUIRES="
haiku
lib:libiconv
lib:libintl
lib:libncurses
lib:libssh2
lib:libssl
lib:libz
lib:libglib_2.0 >= 0.38
"
BUILD_REQUIRES="
devel:libglib_2.0 >= 0.38
devel:libiconv
devel:libintl
devel:libncurses
devel:libssh2
devel:libssl
devel:libz
"
BUILD_PREREQUIRES="
haiku_devel
cmd:awk
cmd:find
cmd:gcc
cmd:gettext
cmd:make
cmd:perl
cmd:pkg_config
cmd:tar
"
PATCH()
{
sed -i '1i #define REAL_UNIX_SYSTEM' lib/tty/tty-slang.h
}
BUILD()
{
CFLAGS="-D_BSD_SOURCE" LIBS=-lnetwork runConfigure configure \
--datarootdir="$dataRootDir" \
--enable-vfs-smb \
--with-smb-configdir="$settingsDir/samba" \
--with-smb-codepagedir="$settingsDir/samba" \
--with-homedir="$settingsDir/samba" \
--with-screen=ncurses
make $jobArgs
}
INSTALL()
{
make $jobArgs install-strip
}
TEST()
{
make check
}