4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2020, Michal Nowak
27 USE_DEFAULT_TEST_TRANSFORMS
= yes
28 include ..
/..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_VERSION
= 4.8.32
33 COMPONENT_SUMMARY
= The GNU Midnight Commander file manager
34 COMPONENT_DESCRIPTION
= GNU Midnight Commander is a full-screen text mode application that allows user to copy
, move and delete files and whole directory trees
, search for files and run commands in the subshell
35 COMPONENT_PROJECT_URL
= https
://www.midnight-commander.org
/
36 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
37 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
38 COMPONENT_ARCHIVE_URL
= https
://github.com
/MidnightCommander
/mc
/archive
/refs
/tags/$(COMPONENT_VERSION
).
tar.gz
39 COMPONENT_ARCHIVE_HASH
= sha256
:5b8e6a66b53f67a430296e3e490c00af17cbbb449f6c56f406ff02a11d516ba1
40 COMPONENT_FMRI
= file
/mc
41 COMPONENT_CLASSIFICATION
= Desktop
(GNOME
)/File Managers
42 COMPONENT_LICENSE
= GPLv3
43 COMPONENT_LICENSE_FILE
= doc
/COPYING
45 include $(WS_MAKE_RULES
)/common.mk
47 COMPONENT_PREP_ACTION
= ( cd
$(@D
) ; $(CONFIG_SHELL
) autogen.sh
)
49 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
50 CONFIGURE_OPTIONS
+= --with-x
51 CONFIGURE_OPTIONS
+= --enable-charset
52 CONFIGURE_OPTIONS
+= --disable-vfs-undelfs
53 CONFIGURE_OPTIONS
+= --with-screen
=slang
54 CONFIGURE_OPTIONS
+= --enable-vfs-sftp
=no
55 CONFIGURE_OPTIONS
+= "mc_cv_nroff_tascii="
57 # pkgdepend doesn't like the first line of a Python script to be:
58 # '#!/usr/bin/python' or '#!/usr/bin/env python'so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
59 COMPONENT_POST_INSTALL_ACTION
+= \
60 $(GSED
) -i
-e
's?\/usr\/bin\/python?\/usr\/bin\/python$(PYTHON_VERSION)?' \
61 $(PROTO_DIR
)/usr
/libexec
/mc
/extfs.d
/s3
+ ; \
62 $(GSED
) -i
-e
's?\/usr\/bin\/env python3?\/usr\/bin\/python$(PYTHON_VERSION)?' \
63 $(PROTO_DIR
)/usr
/libexec
/mc
/extfs.d
/uc1541
;
65 # Manually added dependencies
66 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
69 TEST_REQUIRED_PACKAGES
+= developer
/check
71 # Auto-generated dependencies
72 REQUIRED_PACKAGES
+= library
/glib2
73 REQUIRED_PACKAGES
+= library
/slang
74 REQUIRED_PACKAGES
+= runtime
/perl
75 REQUIRED_PACKAGES
+= shell/ksh93
76 REQUIRED_PACKAGES
+= system
/library
77 REQUIRED_PACKAGES
+= sysutils
/e2fsprogs