Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2002 17:23:19 -0400 (EDT)
From:      Steve Wills <freebsd@stevenwills.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/41768: Feature request: WITHOUT_SHELL for Nethack port
Message-ID:  <200208182123.g7ILNJJw050480@tigger.example.com>

next in thread | raw e-mail | index | archive | help

>Number:         41768
>Category:       ports
>Synopsis:       Feature request: WITHOUT_SHELL for Nethack port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 18 14:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     User &
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
>Environment:
>Description:
	It would be nice if the Nethack34 port supported a WITHOUT_SHELL option
>How-To-Repeat:
>Fix:

	Here's a patch that does it, may not be the *best* way, but it works:

--- Makefile.orig	Sun Aug 18 16:55:17 2002
+++ Makefile	Sun Aug 18 16:56:09 2002
@@ -65,6 +65,9 @@
 	@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/include/config.h
 	@${PERL} -pi -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/src/sounds.c
 	@${PERL} -pi -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp
+.if defined(WITHOUT_SHELL)
+	@${PERL} -pi -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h
+.endif
 
 pre-configure:
 	@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208182123.g7ILNJJw050480>