blob: 6c3a16aabbed1821cc674cff13e28b852f8d356e [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001SUMMARY = "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"
7RDEPENDS_${PN} = "ncurses-terminfo"
8
9SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \
10 "
11SRC_URI[md5sum] = "db48ce26ba425a61edc51930e94227fd"
12SRC_URI[sha256sum] = "f74e3da70410975cdeb27ee9a66d1dd812250b6d3ede364bca728dd5a48e5471"
13
14inherit autotools gettext pkgconfig
15
16#
17# Both Samba (smb) and sftp require package delivered from meta-openembedded
18#
19PACKAGECONFIG ??= ""
20PACKAGECONFIG[smb] = "--enable-vfs-smb,--disable-vfs-smb,samba,"
21PACKAGECONFIG[sftp] = "--enable-vfs-sftp,--disable-vfs-sftp,libssh2,"
22
23EXTRA_OECONF = "--with-screen=ncurses --without-gpm-mouse --without-x"
24
25do_install_append () {
26 sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${libexecdir}/mc/extfs.d/*
27 sed -i -e '1s,#!.*python,#!${bindir}/env python,' ${D}${libexecdir}/mc/extfs.d/*
28}
29
30PACKAGES =+ "${BPN}-helpers-perl ${BPN}-helpers-python ${BPN}-helpers ${BPN}-fish"
31
32SUMMARY_${BPN}-helpers-perl = "Midnight Commander Perl-based helper scripts"
33FILES_${BPN}-helpers-perl = "${libexecdir}/mc/extfs.d/a+ ${libexecdir}/mc/extfs.d/apt+ \
34 ${libexecdir}/mc/extfs.d/deb ${libexecdir}/mc/extfs.d/deba \
35 ${libexecdir}/mc/extfs.d/debd ${libexecdir}/mc/extfs.d/dpkg+ \
36 ${libexecdir}/mc/extfs.d/mailfs ${libexecdir}/mc/extfs.d/patchfs \
37 ${libexecdir}/mc/extfs.d/rpms+ ${libexecdir}/mc/extfs.d/ulib \
38 ${libexecdir}/mc/extfs.d/uzip"
39RDEPENDS_${BPN}-helpers-perl = "perl"
40
41SUMMARY_${BPN}-helpers-python = "Midnight Commander Python-based helper scripts"
42FILES_${BPN}-helpers-python = "${libexecdir}/mc/extfs.d/s3+ ${libexecdir}/mc/extfs.d/uc1541"
43RDEPENDS_${BPN}-helpers-python = "python"
44
45SUMMARY_${BPN}-helpers = "Midnight Commander shell helper scripts"
46FILES_${BPN}-helpers = "${libexecdir}/mc/extfs.d/* ${libexecdir}/mc/ext.d/*"
47
48SUMMARY_${BPN}-fish = "Midnight Commander Fish scripts"
49FILES_${BPN}-fish = "${libexecdir}/mc/fish"