blob: ca849663e6cd786942e4d592a819d465d43bd7c0 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001SUMMARY = "Midnight Commander is an ncurses based file manager"
2HOMEPAGE = "http://www.midnight-commander.org/"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
5SECTION = "console/utils"
6DEPENDS = "ncurses glib-2.0"
7RDEPENDS_${PN} = "ncurses-terminfo"
8
9PR = "r3"
10
11SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \
12 file://mc-CTRL.patch \
13 file://0001-disable-Ctrl-g-key-and-Ctrl-key.patch \
14 "
15
16SRC_URI[md5sum] = "bdae966244496cd4f6d282d80c9cf3c6"
17SRC_URI[sha256sum] = "a68338862bb30017eb65ed569a58e80ab66ae8cef11c886440c9e9f4d1efc6ab"
18
19inherit autotools gettext pkgconfig
20
21EXTRA_OECONF = "--with-screen=ncurses --without-gpm-mouse --without-x --without-samba"
22
23do_install_append () {
24 sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${libexecdir}/mc/extfs.d/*
25 sed -i -e '1s,#!.*python,#!${bindir}/env python,' ${D}${libexecdir}/mc/extfs.d/*
26}
27
28PACKAGES =+ "${BPN}-helpers-perl ${BPN}-helpers-python ${BPN}-helpers ${BPN}-fish"
29
30SUMMARY_${BPN}-helpers-perl = "Midnight Commander Perl-based helper scripts"
31FILES_${BPN}-helpers-perl = "${libexecdir}/mc/extfs.d/a+ ${libexecdir}/mc/extfs.d/apt+ \
32 ${libexecdir}/mc/extfs.d/deb ${libexecdir}/mc/extfs.d/deba \
33 ${libexecdir}/mc/extfs.d/debd ${libexecdir}/mc/extfs.d/dpkg+ \
34 ${libexecdir}/mc/extfs.d/mailfs ${libexecdir}/mc/extfs.d/patchfs \
35 ${libexecdir}/mc/extfs.d/rpms+ ${libexecdir}/mc/extfs.d/ulib \
36 ${libexecdir}/mc/extfs.d/uzip"
37RDEPENDS_${BPN}-helpers-perl = "perl"
38
39SUMMARY_${BPN}-helpers-python = "Midnight Commander Python-based helper scripts"
40FILES_${BPN}-helpers-python = "${libexecdir}/mc/extfs.d/s3+ ${libexecdir}/mc/extfs.d/uc1541"
41RDEPENDS_${BPN}-helpers-python = "python"
42
43SUMMARY_${BPN}-helpers = "Midnight Commander shell helper scripts"
44FILES_${BPN}-helpers = "${libexecdir}/mc/extfs.d/* ${libexecdir}/mc/ext.d/*"
45
46SUMMARY_${BPN}-fish = "Midnight Commander Fish scripts"
47FILES_${BPN}-fish = "${libexecdir}/mc/fish"
48