mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 18:20:07 +02:00
83 lines
1.7 KiB
Bash
83 lines
1.7 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-2017, Free Software Foundation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="http://ftp.midnight-commander.org/mc-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="eb9e56bbb5b2893601d100d0e0293983049b302c5ab61bfb544ad0ee2cc1f2df"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
|
|
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
|
|
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/samba" \
|
|
--with-screen=ncurses
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make $jobArgs install-strip
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|