Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 08:38:10 -0500
From:      "Mike Loiterman" <mike@ascendency.net>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   WITHOUT_X11 Patch for gnuplot 
Message-ID:  <009101c1e6de$4b0ff630$0301a8c0@mike>

next in thread | raw e-mail | index | archive | help
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to build gnuplot without having to build X as well. 
According to the article located here
http://www.freebsd.org/cgi/query-pr.cgi?pr=35177 I should be able to
do this.

When I try to apply the patch listed below I get an error saying
"malformed patch line 30: 	${MKDIR} ${PREFIX}/share/doc/gnuplot"

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


Thanks.

Mike Loiterman
mike@ascendency.net
PGP Key 0xD1B9D18E


-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4
Comment: Message digitally signed by Mike Loiterman

iQA/AwUBPL7MQmjZbUnRudGOEQL7jgCgw9PVB/Xsn1/WmZmxXrbm9pgOh/wAoMmf
u67uolBWel/6fRd9Jlsvxayj
=qLHF
-----END PGP SIGNATURE-----


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009101c1e6de$4b0ff630$0301a8c0>