Currently ports/misc/mc builds the Midnight Commander with SAMBA support. This leads to very long startup time of MC when DNS is not accessible due to resolver (which is used by MC's SAMBA support) timeout. This may be avoided by building the port WITHOUT_SAMBA, but this "feature" is quite obscure. The port depends on 5 extra perl modules for RELENG_4 just to support *.deb and *.zip types of VFS and provides no way to axe out the dependency when this support is not needed. The port always build internal editor - no way to disable. Here is an attempt to provide a way to build MC with lesser dependancy list. We introduce new Makefile variable MINIMAL that defines a wish to axe out as many MC's features as possible: it turns off SAMBA support (does not if WITH_SAMBA is defined also), it turns off X Window support (does not if WITH_X is defined also), it turns off internal editor (does not if WITH_EDIT is defined also; one may use WITHOUT_EDIT alone just to disable the editor), it turns off dependency of SLANG (does not if WITH_SLANG is defined also) and switches to plain NCURSES, it turns off subshell support (does not if WITH_SUBSHELL is defined also), it turns off dependency of extra perl modules (does not if WITH_PERL_MODULES is defined also; one may use WITHOUT_PERL_MODULES alone). The following patch is just intended to provide an infrastructure for making slightly more light-weight package of MC. It works but is not complete - f.e., it does not eliminate dependency of iconv package. One may turn off all features but one (or several): a command make MINIMAL=yes WITH_EDIT=yes keeps internal editor in places and disables other features. How-To-Repeat: N/A
Responsible Changed From-To: freebsd-ports-bugs->fjoe Over to maintainer
State Changed From-To: open->closed Committed, thanks!