distribution/packages/tools/sysutils/MC/package.mk

50 lines
1.4 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2011-present AlexELEC (http://alexelec.in.ua)
PKG_NAME="MC"
PKG_VERSION="4.8.22"
PKG_SHA256="ee7868d7ba0498cf2cccefe107d7efee7f2571098806bba2aed5a159db801318"
PKG_LICENSE="GPL"
PKG_SITE="http://www.midnight-commander.org/"
2023-02-24 13:53:43 +00:00
PKG_URL="http://ftp.midnight-commander.org/mc-${PKG_VERSION}.tar.xz"
PKG_SOURCE_NAME="${PKG_NAME}-${PKG_VERSION}.tar.xz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain libtool:host gettext:host glib libssh2 pcre slang"
PKG_LONGDESC="Midnight Commander is a visual file manager"
PKG_TOOLCHAIN="configure"
PKG_CONFIGURE_OPTS_TARGET=" \
--prefix=/usr \
--sysconfdir=/etc \
--with-screen=slang \
2023-02-24 13:53:43 +00:00
--with-sysroot=${SYSROOT_PREFIX} \
2022-02-05 14:23:32 +00:00
--disable-aspell \
--without-diff-viewer \
--disable-doxygen-doc \
--disable-doxygen-dot \
--disable-doxygen-html \
--with-gnu-ld \
--without-libiconv-prefix \
--without-libintl-prefix \
--without-gpm-mouse \
--disable-mclib \
--with-subshell \
--with-edit \
--with-internal-edit \
--enable-vfs-extfs \
--enable-vfs-ftp \
--enable-vfs-sftp \
--enable-vfs-tar \
--without-x \
2023-02-24 13:53:43 +00:00
--with-slang-includes=${SYSROOT_PREFIX}/usr/include"
2022-02-05 14:23:32 +00:00
pre_configure_target() {
2023-02-24 13:53:43 +00:00
LDFLAGS="${LDFLAGS} -lcrypto -lssl"
2022-02-05 14:23:32 +00:00
}
post_install() {
2023-02-24 13:53:43 +00:00
rm -rf ${INSTALL}/etc/mc
mkdir -p ${INSTALL}/usr/config/mc
cp -a ${PKG_DIR}/etc/* ${INSTALL}/usr/config/mc
ln -sf /storage/.config/mc ${INSTALL}/etc/mc
2022-02-05 14:23:32 +00:00
}