aboutsummaryrefslogtreecommitdiffstats
path: root/misc/mc-light
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-06-01 22:22:24 +0800
committersem <sem@FreeBSD.org>2005-06-01 22:22:24 +0800
commit17afcedf52cd528f30812b005a2659618ecb04b4 (patch)
treeac8a4bd02d84c031a9ab3c127f7e6725ccd6785b /misc/mc-light
parent8fe2e5fe7123f300e733fd32015d635d68424faa (diff)
downloadfreebsd-ports-gnome-17afcedf52cd528f30812b005a2659618ecb04b4.tar.gz
freebsd-ports-gnome-17afcedf52cd528f30812b005a2659618ecb04b4.tar.zst
freebsd-ports-gnome-17afcedf52cd528f30812b005a2659618ecb04b4.zip
- Migrate to OPTIONS
- Add MC_IN_MC knob. It allows to run mcedit inside mc. Approved by: maintainer
Diffstat (limited to 'misc/mc-light')
-rw-r--r--misc/mc-light/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/misc/mc-light/Makefile b/misc/mc-light/Makefile
index cfaef4d02665..135c335d56e9 100644
--- a/misc/mc-light/Makefile
+++ b/misc/mc-light/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mc-light
PORTVERSION= 4.1.40.p9
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= misc shells
MASTER_SITES= http://mc.linuxinside.com/Releases/
DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/}
@@ -19,6 +19,10 @@ RUN_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
CONFLICTS= mc-4.6*
+OPTIONS= NLS "Enable gettext support" on \
+ SUBSHELL "Build with subshell support (only for bash!)" off \
+ MC_IN_MC "Allow run mc inside mc (useful for mcedit)" off
+
USE_GMAKE= yes
USE_ICONV= yes
USE_GNOME= pkgconfig gnometarget
@@ -33,6 +37,8 @@ CONFIGURE_ARGS+=--with-included-slang \
MAN1= mc.1 mcedit.1
MAN8= mcserv.8
+.include <bsd.port.pre.mk>
+
.if !defined(WITH_SUBSHELL)
CONFIGURE_ARGS+=--without-subshell
.endif
@@ -45,9 +51,13 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
+.if defined(WITH_MC_IN_MC)
+CONFIGURE_ENV+= CPPFLAGS=-DMC_IN_MC_ALLOWED
+.endif
+
post-install:
.for i in a arfs audio cpio deb esp ftplist hp48 iso lha lslR mailfs patchfs rar rpm trpm uarj uha zip zoo
${CHMOD} 755 ${PREFIX}/share/mc/extfs/${i}
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>