blob: 546e615d1d1cca8726801f3963a956d6fa462b82 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "Midnight Commander is an ncurses based file manager"
2HOMEPAGE = "http://www.midnight-commander.org/"
Andrew Geissler95ac1b82021-03-31 14:34:31 -05003DESCRIPTION = "GNU Midnight Commander is a visual file manager, licensed under GNU General Public License and therefore qualifies as Free Software. It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included."
Brad Bishop19323692019-04-05 15:28:33 -04004LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "file://COPYING;md5=270bbafe360e73f9840bd7981621f9c2"
6SECTION = "console/utils"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05007DEPENDS = "ncurses glib-2.0 util-linux file-replacement-native"
Patrick Williams213cb262021-08-07 19:21:33 -05008RDEPENDS:${PN} = "ncurses-terminfo-base"
9RRECOMMENDS:${PN} = "ncurses-terminfo"
Brad Bishop19323692019-04-05 15:28:33 -040010
11SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \
12 file://0001-mc-replace-perl-w-with-use-warnings.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 file://nomandate.patch \
Brad Bishop19323692019-04-05 15:28:33 -040014 "
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050015SRC_URI[sha256sum] = "2f52dd9c75c20d8eac7701bd3a8c6c125aaf8cdd9cf12b78ca50a0102b543407"
16
17# remove at next version upgrade or when output changes
18PR = "r1"
19HASHEQUIV_HASH_VERSION .= ".2"
Brad Bishop19323692019-04-05 15:28:33 -040020
21inherit autotools gettext pkgconfig
22
23#
24# Both Samba (smb) and sftp require package delivered from meta-openembedded
25#
26PACKAGECONFIG ??= ""
27PACKAGECONFIG[smb] = "--enable-vfs-smb,--disable-vfs-smb,samba,"
28PACKAGECONFIG[sftp] = "--enable-vfs-sftp,--disable-vfs-sftp,libssh2,"
29
Patrick Williams213cb262021-08-07 19:21:33 -050030CFLAGS:append:libc-musl = ' -DNCURSES_WIDECHAR=1 '
Brad Bishop1d80a2e2019-11-15 16:35:03 -050031EXTRA_OECONF = "--with-screen=ncurses --without-gpm-mouse --without-x --disable-configure-args"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050032EXTRANATIVEPATH += "file-native"
Brad Bishop19323692019-04-05 15:28:33 -040033
34CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'"
Brad Bishop1d80a2e2019-11-15 16:35:03 -050035CACHED_CONFIGUREVARS += "ac_cv_path_PYTHON='/usr/bin/env python'"
36CACHED_CONFIGUREVARS += "ac_cv_path_GREP='/usr/bin/env grep'"
Andrew Geissler82c905d2020-04-13 13:39:40 -050037CACHED_CONFIGUREVARS += "mc_cv_have_zipinfo=yes"
Brad Bishop19323692019-04-05 15:28:33 -040038
Patrick Williams213cb262021-08-07 19:21:33 -050039do_install:append () {
Brad Bishop19323692019-04-05 15:28:33 -040040 sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${libexecdir}/mc/extfs.d/*
41
42 rm ${D}${libexecdir}/mc/extfs.d/s3+ ${D}${libexecdir}/mc/extfs.d/uc1541
43}
44
45PACKAGES =+ "${BPN}-helpers-perl ${BPN}-helpers ${BPN}-fish"
46
Patrick Williams213cb262021-08-07 19:21:33 -050047SUMMARY:${BPN}-helpers-perl = "Midnight Commander Perl-based helper scripts"
48FILES:${BPN}-helpers-perl = "${libexecdir}/mc/extfs.d/a+ ${libexecdir}/mc/extfs.d/apt+ \
Brad Bishop19323692019-04-05 15:28:33 -040049 ${libexecdir}/mc/extfs.d/deb ${libexecdir}/mc/extfs.d/deba \
50 ${libexecdir}/mc/extfs.d/debd ${libexecdir}/mc/extfs.d/dpkg+ \
51 ${libexecdir}/mc/extfs.d/mailfs ${libexecdir}/mc/extfs.d/patchfs \
52 ${libexecdir}/mc/extfs.d/rpms+ ${libexecdir}/mc/extfs.d/ulib \
53 ${libexecdir}/mc/extfs.d/uzip"
Patrick Williams213cb262021-08-07 19:21:33 -050054RDEPENDS:${BPN}-helpers-perl = "perl"
Brad Bishop19323692019-04-05 15:28:33 -040055
Patrick Williams213cb262021-08-07 19:21:33 -050056SUMMARY:${BPN}-helpers = "Midnight Commander shell helper scripts"
57FILES:${BPN}-helpers = "${libexecdir}/mc/extfs.d/* ${libexecdir}/mc/ext.d/*"
Brad Bishop19323692019-04-05 15:28:33 -040058
Patrick Williams213cb262021-08-07 19:21:33 -050059SUMMARY:${BPN}-fish = "Midnight Commander Fish scripts"
60FILES:${BPN}-fish = "${libexecdir}/mc/fish"