blob: ead348b92e75ed7f5c8bb5c7aea8747185ae5e55 [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/"
3LICENSE = "GPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=270bbafe360e73f9840bd7981621f9c2"
5SECTION = "console/utils"
6DEPENDS = "ncurses glib-2.0 util-linux"
Andrew Geissler82c905d2020-04-13 13:39:40 -05007RDEPENDS_${PN} = "ncurses-terminfo-base"
8RRECOMMENDS_${PN} = "ncurses-terminfo"
Brad Bishop19323692019-04-05 15:28:33 -04009
10SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \
11 file://0001-mc-replace-perl-w-with-use-warnings.patch \
Brad Bishop1d80a2e2019-11-15 16:35:03 -050012 file://0001-Add-option-to-control-configure-args.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 file://0001-Ticket-3629-configure.ac-drop-bundled-gettext.patch \
14 file://nomandate.patch \
Brad Bishop19323692019-04-05 15:28:33 -040015 "
Brad Bishop96ff1982019-08-19 13:50:42 -040016SRC_URI[md5sum] = "152927ac29cf0e61d7d019f261bb7d89"
17SRC_URI[sha256sum] = "238c4552545dcf3065359bd50753abbb150c1b22ec5a36eaa02c82808293267d"
Brad Bishop19323692019-04-05 15:28:33 -040018
19inherit autotools gettext pkgconfig
20
21#
22# Both Samba (smb) and sftp require package delivered from meta-openembedded
23#
24PACKAGECONFIG ??= ""
25PACKAGECONFIG[smb] = "--enable-vfs-smb,--disable-vfs-smb,samba,"
26PACKAGECONFIG[sftp] = "--enable-vfs-sftp,--disable-vfs-sftp,libssh2,"
27
Brad Bishop1d80a2e2019-11-15 16:35:03 -050028EXTRA_OECONF = "--with-screen=ncurses --without-gpm-mouse --without-x --disable-configure-args"
Brad Bishop19323692019-04-05 15:28:33 -040029
30CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'"
Brad Bishop1d80a2e2019-11-15 16:35:03 -050031CACHED_CONFIGUREVARS += "ac_cv_path_PYTHON='/usr/bin/env python'"
32CACHED_CONFIGUREVARS += "ac_cv_path_GREP='/usr/bin/env grep'"
Andrew Geissler82c905d2020-04-13 13:39:40 -050033CACHED_CONFIGUREVARS += "mc_cv_have_zipinfo=yes"
Brad Bishop19323692019-04-05 15:28:33 -040034
35do_install_append () {
36 sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${libexecdir}/mc/extfs.d/*
37
38 rm ${D}${libexecdir}/mc/extfs.d/s3+ ${D}${libexecdir}/mc/extfs.d/uc1541
39}
40
41PACKAGES =+ "${BPN}-helpers-perl ${BPN}-helpers ${BPN}-fish"
42
43SUMMARY_${BPN}-helpers-perl = "Midnight Commander Perl-based helper scripts"
44FILES_${BPN}-helpers-perl = "${libexecdir}/mc/extfs.d/a+ ${libexecdir}/mc/extfs.d/apt+ \
45 ${libexecdir}/mc/extfs.d/deb ${libexecdir}/mc/extfs.d/deba \
46 ${libexecdir}/mc/extfs.d/debd ${libexecdir}/mc/extfs.d/dpkg+ \
47 ${libexecdir}/mc/extfs.d/mailfs ${libexecdir}/mc/extfs.d/patchfs \
48 ${libexecdir}/mc/extfs.d/rpms+ ${libexecdir}/mc/extfs.d/ulib \
49 ${libexecdir}/mc/extfs.d/uzip"
50RDEPENDS_${BPN}-helpers-perl = "perl"
51
52SUMMARY_${BPN}-helpers = "Midnight Commander shell helper scripts"
53FILES_${BPN}-helpers = "${libexecdir}/mc/extfs.d/* ${libexecdir}/mc/ext.d/*"
54
55SUMMARY_${BPN}-fish = "Midnight Commander Fish scripts"
56FILES_${BPN}-fish = "${libexecdir}/mc/fish"