# $Id: Portfile,v 1.15 2005/08/11 21:33:22 rshaw Exp $ PortSystem 1.0 name gnuplot version 4.0.0 revision 1 categories math science maintainers darwinports@opendarwin.org description A command-driven interactive function plotting program long_description Gnuplot is a command-driven interactive function \ plotting program. Plots any number of functions, \ built up of C operators, C library functions, and \ some things C doesn't have like **, sgn(), etc. \ Also support for plotting data files, to compare \ actual data to theoretical curves. platforms darwin homepage http://gnuplot.sourceforge.net/ master_sites sourceforge distfiles ${distname}.tar.gz \ ${name}.pdf.gz gpcard.pdf extract.only ${distname}.tar.gz checksums ${distname}.tar.gz md5 66258443d9f93cc4f46b147dac33e63a \ ${name}.pdf.gz md5 51c6d737bf76c18db844c96bc27e22c6 \ gpcard.pdf md5 3042331d0801c31bf423428d9be66924 depends_lib lib:libgd.2:gd2 \ lib:libjpeg.62:jpeg \ lib:libpdf.5:pdflib \ lib:libpng12.0:libpng \ lib:libreadline.5:readline \ lib:libX11.6:XFree86 \ lib:libz.1:zlib patchfiles patch-term-pdf.trm \ patch-term-tkcanvas.trm platform darwin 8 { patchfiles-append patch-src-gplt_x11.c } platform darwin { depends_lib-append lib:libaquaterm.1:aquaterm } configure.env LDFLAGS="-L${prefix}/lib" \ CPPFLAGS="-I${prefix}/include -no-cpp-precomp" configure.args --with-readline=gnu --with-gd --with-png --with-pdf --with-x \ --infodir='\${prefix}/share/info' \ --mandir='\${prefix}/share/man' variant no_x11 { depends_lib-delete lib:libX11.6:XFree86 configure.args-delete --with-x configure.args-append --without-x } destroot.destdir prefix=${destroot}${prefix} post-destroot { xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} system "gunzip -v -c ${distpath}/gnuplot.pdf.gz \ >${destroot}${prefix}/share/doc/${name}/gnuplot.pdf" xinstall -m 0644 ${distpath}/gpcard.pdf \ ${destroot}${prefix}/share/doc/${name} }