aboutsummaryrefslogtreecommitdiff
path: root/math/gnuplot
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2007-10-28 23:21:59 +0000
committerGreg Lewis <glewis@FreeBSD.org>2007-10-28 23:21:59 +0000
commit530424e52d74a6397942add9f78199dbc3622e4e (patch)
treea1f72453df1c8e7c4ef47549dc9342385618bd46 /math/gnuplot
parent7790e7024ace587c860e627d6148f6ffb58913c2 (diff)
downloadports-530424e52d74a6397942add9f78199dbc3622e4e.tar.gz
ports-530424e52d74a6397942add9f78199dbc3622e4e.zip
Notes
Diffstat (limited to 'math/gnuplot')
-rw-r--r--math/gnuplot/Makefile20
-rw-r--r--math/gnuplot/pkg-plist6
2 files changed, 18 insertions, 8 deletions
diff --git a/math/gnuplot/Makefile b/math/gnuplot/Makefile
index e2ff73bde2f8..3134458ee8ec 100644
--- a/math/gnuplot/Makefile
+++ b/math/gnuplot/Makefile
@@ -16,19 +16,17 @@ COMMENT= A command-driven interactive function plotting program
GNU_CONFIGURE= yes
WANT_WX= yes
-CONFIGURE_ARGS+=--with-kpsexpand \
- --with-lasergnu \
+CONFIGURE_ARGS+=--with-lasergnu \
--with-readline=gnu \
--without-linux-vga \
--without-lisp-files \
--without-tutorial
-BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX-base
-
OPTIONS= GD "Enable GD support" on \
- GRIDBOX "Use the gridbox optimization for hidden3d" off \
+ GRIDBOX "Use the gridbox optimization for hidden3d" off \
PDF "Enable PDF support" on \
PLOT "Enable plot support" on \
+ TETEX "Search kpsexpand at run-time" on \
THINSPLINES "Enable thin plate splines for grids in dgrid3d" off \
WX "Enable WX support" off
@@ -70,6 +68,14 @@ LIB_DEPENDS+= plot.4:${PORTSDIR}/graphics/plotutils
CONFIGURE_ARGS+= --with-plot=${LOCALBASE}
.endif
+.if defined(WITHOUT_TETEX)
+PLIST_SUB+= TETEX="@comment "
+.else
+BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX-base
+CONFIGURE_ARGS+= --with-kpsexpand
+PLIST_SUB+= TETEX=""
+.endif
+
.if defined(WITHOUT_THINSPLINES)
CONFIGURE_ARGS+= --disable-thin-splines
.else
@@ -84,6 +90,10 @@ WX_CONF_ARGS= absolute
.endif
post-patch:
+.if defined(WITHOUT_TETEX)
+ @${REINPLACE_CMD} -e \
+ '/^install:/s/install-am//' ${WRKSRC}/share/LaTeX/Makefile.in
+.endif
@${REINPLACE_CMD} -e \
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in
@${FIND} "${WRKSRC}" -name '*.orig' -delete
diff --git a/math/gnuplot/pkg-plist b/math/gnuplot/pkg-plist
index 2e66391a4e14..6c8cbab2acf1 100644
--- a/math/gnuplot/pkg-plist
+++ b/math/gnuplot/pkg-plist
@@ -1,7 +1,7 @@
bin/gnuplot
bin/lasergnu
lib/X11/app-defaults/Gnuplot.app-defaults
-libexec/gnuplot/4.2/gnuplot_x11
+%%X11%%libexec/gnuplot/4.2/gnuplot_x11
%%PORTDOCS%%%%DOCSDIR%%/gnuplot.dvi
%%PORTDOCS%%%%DOCSDIR%%/gnuplot.ps
%%PORTDOCS%%%%DOCSDIR%%/gnuplot.txt
@@ -154,8 +154,8 @@ libexec/gnuplot/4.2/gnuplot_x11
%%DATADIR%%/4.2/PostScript/koi8u.ps
%%DATADIR%%/4.2/PostScript/prologue.ps
%%DATADIR%%/4.2/gnuplot.gih
-share/texmf-local/tex/latex/gnuplot/gnuplot.cfg
-@dirrm share/texmf-local/tex/latex/gnuplot
+%%TETEX%%share/texmf-local/tex/latex/gnuplot/gnuplot.cfg
+%%TETEX%%@dirrm share/texmf-local/tex/latex/gnuplot
@dirrmtry share/texmf-local/tex/latex
@dirrmtry share/texmf-local/tex
@dirrmtry share/texmf-local