From stijn@sandcat.dyndns.org  Thu Feb 21 03:24:14 2002
Return-Path: <stijn@sandcat.dyndns.org>
Received: from sandcat.dyndns.org (pcwin165.win.tue.nl [131.155.69.121])
	by hub.freebsd.org (Postfix) with ESMTP
	id EBF3937B400; Thu, 21 Feb 2002 03:24:13 -0800 (PST)
Received: by sandcat.dyndns.org (Postfix, from userid 1001)
	id 922E23122; Thu, 21 Feb 2002 12:24:10 +0100 (CET)
Message-Id: <20020221112410.922E23122@sandcat.dyndns.org>
Date: Thu, 21 Feb 2002 12:24:10 +0100 (CET)
From: Stijn Hoop <stijn@win.tue.nl>
Reply-To: Stijn Hoop <stijn@win.tue.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc: chuckr@FreeBSD.org
Subject: math/gnuplot missing WITHOUT_X11 option
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35177
>Category:       ports
>Synopsis:       math/gnuplot missing WITHOUT_X11 option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    chuckr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 21 03:30:01 PST 2002
>Closed-Date:    Tue Nov 05 14:31:00 PST 2002
>Last-Modified:  Tue Nov 05 14:31:00 PST 2002
>Originator:     Stijn Hoop
>Release:        FreeBSD 4.5-RC i386
>Organization:
>Environment:

System: FreeBSD 4.5-RC #0: Wed Jan 16 04:30:08 CET 2002

>Description:

- gnuplot can be installed without X11, however the port is missing support
  for this.

>How-To-Repeat:

N/A

>Fix:

- Apply the following patch, or something like it.

diff -urN /usr/ports/math/gnuplot/Makefile gnuplot/Makefile
--- /usr/ports/math/gnuplot/Makefile	Tue Sep 11 05:19:45 2001
+++ gnuplot/Makefile	Thu Feb 21 12:10:33 2002
@@ -16,15 +16,24 @@
 LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
 		gd.2:${PORTSDIR}/graphics/gd
 
+.if !defined(WITHOUT_X11) || ${WITHOUT_X11} != "yes"
 USE_XLIB=	yes
+.endif
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/gd"
 CONFIGURE_ARGS=	--exec-prefix=${PREFIX} \
 		--includedir=${LOCALBASE}/include/ \
 		--libdir=${LOCALBASE}/lib \
-		--with-x --without-linux-vga \
+		--without-linux-vga \
 		--with-gd=${LOCALBASE}/lib \
 		--with-readline=gnu --with-lasergnu --with-png
+
+.if defined(WITHOUT_X11) && ${WITHOUT_X11} == "yes"
+CONFIGURE_ARGS+=	--without-x
+.else
+CONFIGURE_ARGS+=	--with-x
+.endif
 
 post-install:
 	${MKDIR} ${PREFIX}/share/doc/gnuplot
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->chuckr 
Responsible-Changed-By: petef 
Responsible-Changed-When: Thu Feb 21 08:43:09 PST 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35177 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Tue Nov 5 14:30:46 PST 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35177 
>Unformatted:
