From owner-freebsd-questions Thu Apr 18 6:45:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fat_man.ascendency.net (12-250-130-72.client.attbi.com [12.250.130.72]) by hub.freebsd.org (Postfix) with ESMTP id C177837B400 for ; Thu, 18 Apr 2002 06:45:18 -0700 (PDT) Received: from mike (gateway [192.168.1.1]) by fat_man.ascendency.net (8.11.6/8.11.6) with ESMTP id g3IDhiK20709 for ; Thu, 18 Apr 2002 08:43:44 -0500 (CDT) (envelope-from mike@ascendency.net) Reply-To: From: "Mike Loiterman" To: Subject: WITHOUT_X11 Patch for gnuplot Date: Thu, 18 Apr 2002 08:38:10 -0500 Message-ID: <009101c1e6de$4b0ff630$0301a8c0@mike> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----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