From 9a6f1a09f6377c77221565fa39bb50bc23b0f941 Mon Sep 17 00:00:00 2001
From: Pav Lucistnik <pav@FreeBSD.org>
Date: Wed, 20 Oct 2004 01:58:22 +0000
Subject: - Added option WITH_SUBSHELL - building mc-light with subshell
 support

PR:		ports/72853
Submitted by:	Andrey Slusar <anray@inet.ua>
Approved by:	maintainer address bounced:
		<<< 553 <e0-a11.b1.lan.prg.vol.cz[195.122.204.152]>: Client host rejected: REJECT long domain name. spam possible.
		550 5.1.1 <sam@brj.pp.ru>... User unknown
---
 misc/mc-light/Makefile                |  5 ++++-
 misc/mc-light/files/patch-config.h.in | 11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 misc/mc-light/files/patch-config.h.in

(limited to 'misc/mc-light')

diff --git a/misc/mc-light/Makefile b/misc/mc-light/Makefile
index 931f9f2ee66e..23449c07f553 100644
--- a/misc/mc-light/Makefile
+++ b/misc/mc-light/Makefile
@@ -26,13 +26,16 @@ CONFIGURE_ARGS+=--with-included-slang \
 		--with-gettext \
 		--with-vfs \
 		--with-netrc \
-		--without-subshell \
 		--without-gpm-mouse \
 		--with-edit
 
 MAN1=		mc.1 mcedit.1
 MAN8=		mcserv.8
 
+.if !defined(WITH_SUBSHELL)
+CONFIGURE_ARGS+=--without-subshell
+.endif
+
 .if !defined(WITHOUT_NLS)
 USE_GETTEXT=	yes
 PLIST_SUB+=	NLS=""
diff --git a/misc/mc-light/files/patch-config.h.in b/misc/mc-light/files/patch-config.h.in
new file mode 100644
index 000000000000..306b0850535d
--- /dev/null
+++ b/misc/mc-light/files/patch-config.h.in
@@ -0,0 +1,11 @@
+--- config.h.in.orig	Tue Oct 19 04:00:43 2004
++++ config.h.in	Tue Oct 19 04:01:00 2004
+@@ -322,7 +322,7 @@
+ #undef HAVE_GETWD
+ 
+ /* Define if you have the grantpt function.  */
+-#undef HAVE_GRANTPT
++/* #undef HAVE_GRANTPT */
+ 
+ /* Define if you have the initgroups function.  */
+ #undef HAVE_INITGROUPS
-- 
cgit v1.2.3