Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | SUMMARY = "Midnight Commander is an ncurses based file manager" |
| 2 | HOMEPAGE = "http://www.midnight-commander.org/" |
| 3 | LICENSE = "GPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=270bbafe360e73f9840bd7981621f9c2" |
| 5 | SECTION = "console/utils" |
| 6 | DEPENDS = "ncurses glib-2.0 util-linux" |
| 7 | RDEPENDS_${PN} = "ncurses-terminfo" |
| 8 | |
| 9 | SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \ |
| 10 | file://0001-mc-replace-perl-w-with-use-warnings.patch \ |
| 11 | " |
| 12 | SRC_URI[md5sum] = "29983a215c96030f06d5b112088ec5dc" |
| 13 | SRC_URI[sha256sum] = "8d9f1c75369967adfd317a05fef9861444ed049b033e4debaeaafc6df218b431" |
| 14 | |
| 15 | inherit autotools gettext pkgconfig |
| 16 | |
| 17 | # |
| 18 | # Both Samba (smb) and sftp require package delivered from meta-openembedded |
| 19 | # |
| 20 | PACKAGECONFIG ??= "" |
| 21 | PACKAGECONFIG[smb] = "--enable-vfs-smb,--disable-vfs-smb,samba," |
| 22 | PACKAGECONFIG[sftp] = "--enable-vfs-sftp,--disable-vfs-sftp,libssh2," |
| 23 | |
| 24 | EXTRA_OECONF = "--with-screen=ncurses --without-gpm-mouse --without-x" |
| 25 | |
| 26 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'" |
| 27 | |
| 28 | do_install_append () { |
| 29 | sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${libexecdir}/mc/extfs.d/* |
| 30 | |
| 31 | rm ${D}${libexecdir}/mc/extfs.d/s3+ ${D}${libexecdir}/mc/extfs.d/uc1541 |
| 32 | } |
| 33 | |
| 34 | PACKAGES =+ "${BPN}-helpers-perl ${BPN}-helpers ${BPN}-fish" |
| 35 | |
| 36 | SUMMARY_${BPN}-helpers-perl = "Midnight Commander Perl-based helper scripts" |
| 37 | FILES_${BPN}-helpers-perl = "${libexecdir}/mc/extfs.d/a+ ${libexecdir}/mc/extfs.d/apt+ \ |
| 38 | ${libexecdir}/mc/extfs.d/deb ${libexecdir}/mc/extfs.d/deba \ |
| 39 | ${libexecdir}/mc/extfs.d/debd ${libexecdir}/mc/extfs.d/dpkg+ \ |
| 40 | ${libexecdir}/mc/extfs.d/mailfs ${libexecdir}/mc/extfs.d/patchfs \ |
| 41 | ${libexecdir}/mc/extfs.d/rpms+ ${libexecdir}/mc/extfs.d/ulib \ |
| 42 | ${libexecdir}/mc/extfs.d/uzip" |
| 43 | RDEPENDS_${BPN}-helpers-perl = "perl" |
| 44 | |
| 45 | SUMMARY_${BPN}-helpers = "Midnight Commander shell helper scripts" |
| 46 | FILES_${BPN}-helpers = "${libexecdir}/mc/extfs.d/* ${libexecdir}/mc/ext.d/*" |
| 47 | |
| 48 | SUMMARY_${BPN}-fish = "Midnight Commander Fish scripts" |
| 49 | FILES_${BPN}-fish = "${libexecdir}/mc/fish" |