Date: Sat, 2 Nov 2002 17:00:58 +0100 (CET) From: Aurélien Nephtali <aurelien.nephtali@wanadoo.fr> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44834: [PATCH] Allow 'gnuplot' port to be compiled without X Message-ID: <200211021600.gA2G0wlL029686@nebula.wanadoo.fr>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211021600.gA2G0wlL029686>