From owner-freebsd-ports Sat Nov 2 8: 0:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BEEF37B401 for ; Sat, 2 Nov 2002 08:00:10 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B695143E7B for ; Sat, 2 Nov 2002 08:00:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gA2G09x3059601 for ; Sat, 2 Nov 2002 08:00:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gA2G09L2059600; Sat, 2 Nov 2002 08:00:09 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9190237B401 for ; Sat, 2 Nov 2002 07:59:51 -0800 (PST) Received: from nebula.wanadoo.fr (ca-sqy-5-233.abo.wanadoo.fr [80.8.58.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CCC743E6E for ; Sat, 2 Nov 2002 07:59:48 -0800 (PST) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost.wanadoo.fr [127.0.0.1]) by nebula.wanadoo.fr (8.12.6/8.12.6) with ESMTP id gA2G0xKU029687 for ; Sat, 2 Nov 2002 17:01:00 +0100 (CET) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.6/8.12.6/Submit) id gA2G0wlL029686; Sat, 2 Nov 2002 17:00:58 +0100 (CET) Message-Id: <200211021600.gA2G0wlL029686@nebula.wanadoo.fr> Date: Sat, 2 Nov 2002 17:00:58 +0100 (CET) From: Aurélien Nephtali Reply-To: Aurélien Nephtali To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/44834: [PATCH] Allow 'gnuplot' port to be compiled without X Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44834 >Category: ports >Synopsis: [PATCH] Allow 'gnuplot' port to be compiled without X >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: Sat Nov 02 08:00:09 PST 2002 >Closed-Date: >Last-Modified: >Originator: Aurélien Nephtali (aurelien.nephtali@wanadoo.fr) >Release: FreeBSD 5.0-CURRENT i386 >Organization: none >Environment: System: FreeBSD nebula.wanadoo.fr 5.0-CURRENT FreeBSD 5.0-CURRENT #9: Sat Nov 2 12:08:43 CET 2002 dak@nebula.wanadoo.fr:/usr/src/sys/i386/compile/NEBULA i386 >Description: gnuplot (/usr/ports/math/gnuplot) can be compiled on a system without X11 installed. The attached patch handles the WITHOUT_X11 option. I don't looked into gnuplot+ (/usr/ports/math/gnuplot+) but it could be the same thing to modify. >How-To-Repeat: >Fix: --- Makefile.patch begins here --- --- /usr/ports/math/gnuplot/Makefile Sat Nov 2 16:48:45 2002 +++ /usr/ports/math/gnuplot/Makefile Sat Nov 2 16:54:24 2002 @@ -16,15 +16,22 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ gd.2:${PORTSDIR}/graphics/gd +.if !defined(WITHOUT_X11) 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_W11) +CONFIGURE_ARGS += --with-x=no +.else +CONFIGURE_ARGS += --with-x +.endif post-install: ${MKDIR} ${PREFIX}/share/doc/gnuplot --- Makefile.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message