From owner-freebsd-ports Wed May 19 8: 0: 4 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2276815520 for ; Wed, 19 May 1999 08:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA94354; Wed, 19 May 1999 08:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 7BEFB155DE; Wed, 19 May 1999 07:51:07 -0700 (PDT) Message-Id: <19990519145107.7BEFB155DE@hub.freebsd.org> Date: Wed, 19 May 1999 07:51:07 -0700 (PDT) From: m.seaman@inpharmatica.co.uk To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: ports/11781: Option to not use X windows support wherever possible Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11781 >Category: ports >Synopsis: Option to not use X windows support wherever possible >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: Wed May 19 08:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Matthew Seaman >Release: 3.2-STABLE of 19990519 >Organization: Inpharmatica Ltd. >Environment: uname -a FreeBSD b9.farm.inpharmatica.co.uk 3.2-STABLE FreeBSD 3.2-STABLE #0: Wed May 19 13:27:30 BST 1999 matthew@b9.farm.inpharmatica.co.uk:/usr/src/sys/compile/FARM alpha >Description: Certain ports could optionally be built without X windows support: for example editors/emacs20 --- the underlying GNU autoconf mechanism supports a `--with-x=no' argument. In cases like this I suggest that X windows support should be excluded conditionally on setting an environment variable, eg. `NO_X' >How-To-Repeat: cd /usr/ports/editors/emacs20 make >Fix: diff -u Makefile Makefile.no-x --- Makefile Thu Mar 11 21:47:10 1999 +++ Makefile.no-x Wed May 19 15:28:53 1999 @@ -16,10 +16,16 @@ Y2K= http://www.gnu.org/software/year2000.html USE_AUTOCONF= yes +.if !defined(NO_X) USE_XLIB= yes +.endif USE_GMAKE= yes CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd +.if !defined(NO_X) CONFIGURE_ARGS= --with-x-toolkit --with-pop +.else +CONFIGURE_ARGS= --with-x=no --with-pop +.endif MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" MAN1= emacs.1 etags.1 ctags.1 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message