From 96058b41d903dd3b6a44ecbc11ef1088d7216262 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Tue, 8 Feb 2005 16:42:33 +0000 Subject: - Add support MINIMAL and WITH_FOO knobs PR: 76215 Submitted by: Eugene Grosbein --- misc/mc/Makefile | 21 +++++++++++++++------ misc/mc/pkg-plist | 2 +- 2 files changed, 16 insertions(+), 7 deletions(-) (limited to 'misc/mc') diff --git a/misc/mc/Makefile b/misc/mc/Makefile index afaf2b05f47f..db57eb4d6b75 100644 --- a/misc/mc/Makefile +++ b/misc/mc/Makefile @@ -7,7 +7,7 @@ PORTNAME= mc PORTVERSION= 4.6.0 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= misc shells MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= utils/file/managers/mc/ @@ -25,12 +25,12 @@ GNU_CONFIGURE= yes .include -.if !defined(WITHOUT_SAMBA) +.if defined(WITH_SAMBA) || !(defined(WITHOUT_SAMBA) || defined(MINIMAL)) CONFIGURE_ARGS+=--with-samba --with-configdir=${LOCALBASE}/etc \ --with-codepagedir=${LOCALBASE}/etc/codepages .endif -.if !defined(WITHOUT_ICONV) +.if defined(WITH_ICONV) || !(defined(WITHOUT_ICONV) || defined(MINIMAL)) CONFIGURE_ARGS+=--enable-charset USE_ICONV= yes PLIST_SUB= CHARSETS="" @@ -38,10 +38,17 @@ PLIST_SUB= CHARSETS="" PLIST_SUB= CHARSETS="@comment " .endif -.if !defined(WITH_X11) +.if !defined(WITH_X11) || defined(MINIMAL) CONFIGURE_ARGS+=--without-x .endif +.if !defined(WITH_EDIT) && (defined(WITHOUT_EDIT) || defined(MINIMAL)) +CONFIGURE_ARGS+=--without-edit +PLIST_SUB+= EDITOR="@comment " +.else +PLIST_SUB+= EDITOR="" +.endif + .if ${ARCH} == "alpha" # # something is wrong with slang on alpha: mc enters an infinite loop @@ -49,7 +56,7 @@ CONFIGURE_ARGS+=--without-x WITHOUT_SLANG= yes .endif -.if defined(WITHOUT_SLANG) +.if !defined(WITH_SLANG) && (defined(WITHOUT_SLANG) || defined(MINIMAL)) CONFIGURE_ARGS+=--with-screen=ncurses .else CONFIGURE_ARGS+=--with-screen=slang @@ -58,13 +65,15 @@ CONFIGURE_ENV= CPPFLAGS="-I ${LOCALBASE}/include" \ LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang .endif -.if defined(WITHOUT_SUBSHELL) +.if !defined(WITH_SUBSHELL) && (defined(WITHOUT_SUBSHELL) || defined(MINIMAL)) CONFIGURE_ARGS+=--without-subshell .endif +.if defined(WITH_PERL_MODULES) || !(defined(WITHOUT_PERL_MODULES) || defined(MINIMAL)) .if ${PERL_LEVEL} < 500800 RUN_DEPENDS= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp .endif +.endif MAN1= mc.1 mcedit.1 mcview.1 _MAN1= mc.1 diff --git a/misc/mc/pkg-plist b/misc/mc/pkg-plist index 6c2b42649854..0303e9bb00c4 100644 --- a/misc/mc/pkg-plist +++ b/misc/mc/pkg-plist @@ -1,6 +1,6 @@ bin/mcmfmt bin/mc -bin/mcedit +%%EDITOR%%bin/mcedit bin/mcview bin/midc share/locale/az/LC_MESSAGES/mc.mo -- cgit v1.2.3