# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup xcodeversion 1.0 name gnuplot version 4.4.4 categories math science # the license has some inconvenient requirements that we're not meeting # to be allowed to distribute binaries license Restrictive # luckily nothing has to link against this installs_libs no platforms darwin maintainers nomaintainer 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. homepage http://gnuplot.sourceforge.net/ master_sites sourceforge \ http://sourceforge.net/projects/gnuplot/files/gnuplot/${version}/:manual dist_subdir ${name}/${version} distfiles-append ${name}.pdf:manual extract.only ${distname}.tar.gz checksums ${distname}.tar.gz \ rmd160 7e1d039c05c46fa38b53a3c4afbd328509da901d \ sha256 d228599d08d5f87bcb79af8af8bb432c77d942802b1643f920c7baaeaf1ddbfd \ ${name}.pdf \ rmd160 f8bd424418bbf87e405c0f3d7eb2bf759c4770d5 \ sha256 3495b65604239d78cdad5ac3b34864572382c09ddf8ea202bddafce9133a1adf depends_lib port:expat \ port:fontconfig \ port:gd2 \ port:jpeg \ port:pdflib \ port:libiconv \ port:libpng \ port:ncurses \ port:readline \ port:xpm \ port:zlib patchfiles patch-src-variable_c.diff platform darwin { depends_lib-append port:aquaterm configure.cflags-append -DDEFAULTTERM='"aqua"' } minimum_xcodeversions {9 3.1} configure.args --with-readline=${prefix} \ --with-gd=${prefix} \ --with-pdf=${prefix} \ --with-png=${prefix} \ --with-x \ --enable-datastrings \ --enable-histograms \ --infodir='\${prefix}/share/info' \ --mandir='\${prefix}/share/man' \ --disable-wxwidgets \ --without-latex \ --without-tutorial \ --without-cairo \ --without-lua configure.ccache no variant no_x11 { depends_lib-delete port:xpm configure.args-delete --with-x configure.args-append --without-x } variant wxwidgets description "Enable wxWidgets front-end" { depends_lib-append port:wxWidgets configure.args-delete --disable-wxwidgets configure.args-append --with-wx-config=${prefix}/bin/wx-config } if {[variant_isset wxwidgets]} { # wxWidgets is not universal and is 32-bit only universal_variant no supported_archs i386 ppc } variant luaterm description "Enable Lua terminal" { depends_lib-append port:lua configure.args-delete --without-lua configure.args-append --with-lua } variant pangocairo description "Enable cairo-based terminals" { depends_lib-append path:lib/pkgconfig/pango.pc:pango configure.args-delete --without-cairo } variant tutorial description "Build the tutorial (requires a tex install)" { depends_lib-append bin:tex:texlive configure.args-delete --without-tutorial --without-latex configure.args-append --with-tutorial } default_variants +luaterm +pangocairo destroot.destdir prefix=${destroot}${prefix} post-destroot { xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} xinstall -m 0644 ${distpath}/${name}.pdf \ ${destroot}${prefix}/share/doc/${name}/ }