From patchwork Sun Mar 8 21:37:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Condarelli X-Patchwork-Id: 447824 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 32F2A1401AA for ; Mon, 9 Mar 2015 08:52:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6BC1D31D9D; Sun, 8 Mar 2015 21:52:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W9b0QKFBY112; Sun, 8 Mar 2015 21:52:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C318D32123; Sun, 8 Mar 2015 21:52:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4D5D31C2237 for ; Sun, 8 Mar 2015 21:52:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 480CD31B31 for ; Sun, 8 Mar 2015 21:52:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4UHioLYuM0Gn for ; Sun, 8 Mar 2015 21:52:15 +0000 (UTC) X-Greylist: delayed 00:15:01 by SQLgrey-1.7.6 Received: from relaygw4-23.mclink.it (relaygw4-23.mclink.it [195.78.211.249]) by silver.osuosl.org (Postfix) with ESMTP id 77DBB31673 for ; Sun, 8 Mar 2015 21:52:15 +0000 (UTC) Received: from [195.110.128.82] (HELO smtpoutgw3.mclink.it) by relaygw4-23.mclink.it (CommuniGate Pro SMTP 6.0.6) with ESMTP id 46554831 for buildroot@buildroot.org; Sun, 08 Mar 2015 22:37:13 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AoGgAjwPxU/7T8/l9ag1gSA0WIEqcHBQEBAQEBAQUBdowEhXqFdA6BXgEBAQEBAXyFD0+BAogzAQjDD4YKiXsdGoN9BZNzghsFg0+BU5IhI4FFAYIpPTGCQwEBAQ Received: from host180-252-static.254-95-b.business.telecomitalia.it (HELO ariag25.fritz.box) ([95.254.252.180]) by smtpoutgw3.mclink.it with ESMTP; 08 Mar 2015 22:37:12 +0100 From: Mauro Condarelli To: buildroot@buildroot.org Date: Sun, 8 Mar 2015 22:37:07 +0100 Message-Id: <1425850629-14725-1-git-send-email-mc5686@mclink.it> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH 1/3] Added new package 'mc' (Midnight Commander). X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Mauro Condarelli --- package/Config.in | 1 + package/mc/Config.in | 10 ++++++++++ package/mc/mc.mk | 27 +++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 package/mc/Config.in create mode 100644 package/mc/mc.mk diff --git a/package/Config.in b/package/Config.in index cab9382..745426e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1351,6 +1351,7 @@ menu "Text editors and viewers" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/less/Config.in" endif + source "package/mc/Config.in" source "package/nano/Config.in" source "package/uemacs/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS diff --git a/package/mc/Config.in b/package/mc/Config.in new file mode 100644 index 0000000..735523f --- /dev/null +++ b/package/mc/Config.in @@ -0,0 +1,10 @@ +# mc prefers slang, but can use ncurses too +config BR2_PACKAGE_MC + bool "mc" + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_SLANG if !BR2_PACKAGE_NCURSES + help + GNU Midnight Commander is a visual file manager, licensed under GNU General Public License. + It can use either SLang(preferred) or ncurses for screen handling; if neither is enabled SLang will be automatically chosen. + + https://www.midnight-commander.org/ diff --git a/package/mc/mc.mk b/package/mc/mc.mk new file mode 100644 index 0000000..678e1f7 --- /dev/null +++ b/package/mc/mc.mk @@ -0,0 +1,27 @@ +################################################################################ +# +# mc +# +################################################################################ + +MC_VERSION_MAJOR = 4.8 +MC_VERSION = $(MC_VERSION_MAJOR).13 +MC_SOURCE = mc-$(MC_VERSION).tar.bz2 +MC_SITE = http://ftp.midnight-commander.org +MC_INSTALL_STAGING = YES +MC_INSTALL_TARGET = YES +MC_CONF_OPTS = --disable-shared +MC_DEPENDENCIES = libglib2 host-pkgconf + +# mc prefers slang, so use that if enabled, otherwise +# fallback to using ncurses. +# Either or both will be enabled, but we prefer slang. +ifeq ($(BR2_PACKAGE_SLANG),y) +MC_DEPENDENCIES += slang +MC_CONF_OPTS += --with-screen=slang +else +MC_DEPENDENCIES += ncurses +MC_CONF_OPTS += --with-screen=ncurses +endif + +$(eval $(autotools-package))