ports/113313: math/gnuplot: Add knob not to depend on teTeX-base

Tetsuya Uemura t_uemura at macome.co.jp
Mon Jun 4 05:30:06 UTC 2007

>Number:         113313
>Category:       ports
>Synopsis:       math/gnuplot: Add knob not to depend on teTeX-base
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 04 05:30:05 GMT 2007
>Originator:     Tetsuya Uemura
>Release:        6.2-STABLE
FreeBSD s2882g3nr.macome.co.jp 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon Jun  4 11:37:35 JST 2007     uemura at s2882g3nr.macome.co.jp:/usr/obj/usr/src/sys/S2882G3NR  amd64
By default, Gnuplot doesn't require teTeX-base (kpsexpand) at all and the dependency should be controllable via WITH_XXX or WITHOUT_XXX knob.

Note that Gnuplot *may* require kpsexpand if --with-kpsexpand argument is given to configure, math/gnuplot always gives it, though it is disabled by Gnuplot default.
By installing math/gnuplot via ports also installs teTeX-base and its dependency.
Apply the attached patch to add knob WITHOUT_KPSEXPAND which makes math/gnuplot not to depend on print/teTeX-base if defined.

Patch attached with submission follows:

diff -u3 math/gnuplot.orig/Makefile math/gnuplot/Makefile
--- math/gnuplot.orig/Makefile	Mon May 21 10:34:04 2007
+++ math/gnuplot/Makefile	Mon Jun  4 13:46:25 2007
@@ -17,16 +17,14 @@
 WANT_WX=	yes
-CONFIGURE_ARGS+=--with-kpsexpand \
-		--with-lasergnu \
+CONFIGURE_ARGS+=--with-lasergnu \
 		--with-readline=gnu \
 		--without-linux-vga \
 		--without-lisp-files \
-BUILD_DEPENDS+=	latex:${PORTSDIR}/print/teTeX-base
-OPTIONS=	GD		"Enable GD support"		on \
+OPTIONS=	KPSEXPAND	"Use kpsexpand to find fonts"	on \
+		GD		"Enable GD support"		on \
 		PDF		"Enable PDF support"		on \
 		PLOT		"Enable plot support"		on \
 		WX		"Enable WX support"		off
@@ -35,6 +33,11 @@
 INFO=		gnuplot
 .include <bsd.port.pre.mk>
+.if !defined(WITHOUT_KPSEXPAND)
+BUILD_DEPENDS+=		latex:${PORTSDIR}/print/teTeX-base
+CONFIGURE_ARGS+=	--with-kpsexpand
 .if !defined(WITHOUT_X11)
 USE_XLIB=		yes


More information about the freebsd-ports-bugs mailing list