rely on gcc. The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to accomplish this. The ports chosen were ports that blocked 2 or more ports from building with clang. (There are several hundred other ports that still fail to build with clang, even with this patch. This is merely one step along the way.) Those interested in fixing these ports with clang, and have clang as their default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes. For those who have gcc as their default compiler, this change is believed to cause no change. Hat: portmgr Tested with: multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various combinations of patch/no-patch and flag settings.
143 lines
3.3 KiB
Makefile
143 lines
3.3 KiB
Makefile
# New ports collection makefile for: gnuplot
|
|
# Date created: 19 April 1998
|
|
# Whom: chuckr
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gnuplot
|
|
PORTVERSION= 4.6.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= math graphics
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
COMMENT= A command-driven interactive function plotting program
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-lasergnu \
|
|
--with-readline=gnu \
|
|
--without-linux-vga \
|
|
--without-lisp-files \
|
|
--without-tutorial \
|
|
--with-bitmap-terminals
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
OPTIONS= X11 "Enable X11 support" on \
|
|
GD "Enable GD support" on \
|
|
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" on \
|
|
CAIRO "Enable CAIRO support" on
|
|
|
|
USE_GCC= any
|
|
|
|
MAN1= gnuplot.1 lasergnu.1
|
|
INFO= gnuplot
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITHOUT_X11)
|
|
CONFIGURE_ARGS+= --without-x
|
|
PLIST_SUB+= X11="@comment "
|
|
.else
|
|
USE_XORG= x11
|
|
PLIST_SUB+= X11=""
|
|
.endif
|
|
|
|
.if defined(WITHOUT_GD)
|
|
CONFIGURE_ARGS+= --without-gd
|
|
.else
|
|
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
|
|
CONFIGURE_ARGS+= --with-gd=${LOCALBASE}
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_GRIDBOX)
|
|
CONFIGURE_ARGS+= --disable-h3d-quadtree --enable-h3d-gridbox
|
|
.endif
|
|
|
|
.if defined(WITHOUT_PDF)
|
|
CONFIGURE_ARGS+= --without-pdf
|
|
.else
|
|
LIB_DEPENDS+= pdf.6:${PORTSDIR}/print/pdflib
|
|
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE}
|
|
.endif
|
|
|
|
.if defined(WITHOUT_PLOT)
|
|
CONFIGURE_ARGS+= --without-plot
|
|
.else
|
|
USE_XORG+= xaw xmu xt xext
|
|
LIB_DEPENDS+= plot.4:${PORTSDIR}/graphics/plotutils
|
|
CONFIGURE_ARGS+= --with-plot=${LOCALBASE}
|
|
.endif
|
|
|
|
.if defined(WITHOUT_TETEX)
|
|
PLIST_SUB+= TETEX="@comment "
|
|
.else
|
|
BUILD_DEPENDS+= kpsexpand:${PORTSDIR}/print/teTeX-base
|
|
RUN_DEPENDS+= kpsexpand:${PORTSDIR}/print/teTeX-base
|
|
CONFIGURE_ARGS+= --with-kpsexpand \
|
|
--with-texdir=${LOCALBASE}/share/texmf/tex/latex/gnuplot
|
|
PLIST_SUB+= TETEX=""
|
|
.endif
|
|
|
|
.if defined(WITHOUT_THINSPLINES)
|
|
CONFIGURE_ARGS+= --disable-thin-splines
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-thin-splines
|
|
.endif
|
|
|
|
.if defined(WITHOUT_WX)
|
|
CONFIGURE_ARGS+= --disable-wxwidgets
|
|
.else
|
|
USE_WX= 2.5-2.8
|
|
WX_CONF_ARGS= absolute
|
|
.endif
|
|
|
|
.if defined(WITHOUT_CAIRO)
|
|
CONFIGURE_ARGS+= --without-cairo
|
|
.else
|
|
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
|
|
USE_GNOME+= pango
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= gnuplot.dvi gnuplot.ps gnuplot.txt psdoc
|
|
.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
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-build:
|
|
@cd ${WRKSRC}/docs && ${MAKE} groff
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/demo && ${FIND} . \
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}/psdoc
|
|
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \
|
|
gnuplot.ps ${DOCSDIR}
|
|
cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${DOCSDIR}/psdoc
|
|
.endif
|
|
|
|
check test: build
|
|
@( cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check ; )
|
|
|
|
.include <bsd.port.mk>
|