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