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-2019, Free Software Foundation" LICENSE="GNU GPL v2" REVISION="1" SOURCE_URI="http://ftp.midnight-commander.org/mc-$portVersion.tar.xz" CHECKSUM_SHA256="dd7f7ce74183307b0df25b5c3e60ad3293fd3d3d27d2f37dd7a10efce13dff1c" ARCHITECTURES="x86_gcc2 x86_64" GLOBAL_WRITABLE_FILES="settings/mc directory keep-old" PROVIDES=" mc = $portVersion cmd:mc = $portVersion cmd:mcdiff = $portVersion cmd:mcedit = $portVersion cmd:mcview = $portVersion " REQUIRES=" haiku lib:libglib_2.0 lib:libiconv lib:libintl lib:libncursesw lib:libssh2 lib:libz " BUILD_REQUIRES=" haiku_devel devel:libglib_2.0 >= 0.38 devel:libiconv devel:libintl devel:libncursesw devel:libssh2 devel:libz " BUILD_PREREQUIRES=" 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/mc" \ --with-screen=ncurses make $jobArgs } INSTALL() { make $jobArgs install-strip } TEST() { make check }