1 | # $Id: Portfile 66222 2010-04-07 14:07:44Z takeshi@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup xcodeversion 1.0 |
---|
5 | |
---|
6 | name gnuplot |
---|
7 | version 4.4.0 |
---|
8 | revision 0 |
---|
9 | categories math science |
---|
10 | maintainers nomaintainer |
---|
11 | description A command-driven interactive function plotting program |
---|
12 | long_description Gnuplot is a command-driven interactive function \ |
---|
13 | plotting program. Plots any number of functions, \ |
---|
14 | built up of C operators, C library functions, and \ |
---|
15 | some things C doesn't have like **, sgn(), etc. \ |
---|
16 | Also support for plotting data files, to compare \ |
---|
17 | actual data to theoretical curves. |
---|
18 | platforms darwin |
---|
19 | homepage http://gnuplot.sourceforge.net/ |
---|
20 | master_sites sourceforge |
---|
21 | distfiles ${distname}.tar.gz \ |
---|
22 | ${distname}.pdf |
---|
23 | extract.only ${distname}.tar.gz |
---|
24 | checksums ${distname}.tar.gz \ |
---|
25 | md5 e708665bd512153ad5c35252fe499059 \ |
---|
26 | sha1 04a2eede7b2af8e64144aa8ffede6535b7a043b5 \ |
---|
27 | rmd160 ed15fd44d32b0bf610f52b99e2c36cd160cb08a6 \ |
---|
28 | ${distname}.pdf \ |
---|
29 | md5 f618b64e3679511a385a7ae25b0cdbc7 \ |
---|
30 | sha1 6107557d3c8d893e8f0f67cd610fc890efc4fbb2 \ |
---|
31 | rmd160 783bf418250dc04ccf41fbdf07dc8202d4c34d00 |
---|
32 | |
---|
33 | depends_lib port:expat \ |
---|
34 | port:fontconfig \ |
---|
35 | port:gd2 \ |
---|
36 | port:jpeg \ |
---|
37 | port:pdflib \ |
---|
38 | port:libiconv \ |
---|
39 | port:libpng \ |
---|
40 | port:ncurses \ |
---|
41 | port:readline \ |
---|
42 | port:xpm \ |
---|
43 | port:zlib |
---|
44 | |
---|
45 | platform darwin { |
---|
46 | depends_lib-append port:aquaterm |
---|
47 | configure.cflags-append '-DDEFAULTTERM=\\"aqua\\"' |
---|
48 | } |
---|
49 | |
---|
50 | minimum_xcodeversions {9 3.1} |
---|
51 | |
---|
52 | configure.args --with-readline=${prefix} \ |
---|
53 | --with-gd=${prefix} \ |
---|
54 | --with-pdf=${prefix} \ |
---|
55 | --with-png=${prefix} \ |
---|
56 | --with-x \ |
---|
57 | --enable-datastrings --enable-histograms \ |
---|
58 | --infodir='\${prefix}/share/info' \ |
---|
59 | --mandir='\${prefix}/share/man' \ |
---|
60 | --disable-wxwidgets |
---|
61 | |
---|
62 | configure.ccache no |
---|
63 | |
---|
64 | variant no_x11 { |
---|
65 | depends_lib-delete port:xpm |
---|
66 | configure.args-delete --with-x |
---|
67 | configure.args-append --without-x |
---|
68 | } |
---|
69 | |
---|
70 | variant wxwidgets description "Enable wxWidgets front-end" { |
---|
71 | depends_lib-append port:wxWidgets |
---|
72 | configure.args-delete --disable-wxwidgets |
---|
73 | configure.args-append --with-wx-config=${prefix}/bin/wx-config |
---|
74 | } |
---|
75 | |
---|
76 | variant tutorial description "Build the tutorial (requires a tex install)" { |
---|
77 | depends_lib-append bin:tex:texlive |
---|
78 | configure.args-delete --without-tutorial |
---|
79 | configure.args-append --with-tutorial |
---|
80 | } |
---|
81 | |
---|
82 | destroot.destdir prefix=${destroot}${prefix} |
---|
83 | post-destroot { |
---|
84 | xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} |
---|
85 | xinstall -m 0644 ${distpath}/gnuplot.pdf \ |
---|
86 | ${destroot}${prefix}/share/doc/${name}/ |
---|
87 | } |
---|