1 | # -*- 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 |
---|
2 | # $Id: Portfile 76745 2011-03-07 10:36:59Z jmr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup xcodeversion 1.0 |
---|
6 | |
---|
7 | name gnuplot |
---|
8 | version 4.4.3 |
---|
9 | categories math science |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | |
---|
13 | description A command-driven interactive function plotting program |
---|
14 | |
---|
15 | long_description Gnuplot is a command-driven interactive function \ |
---|
16 | plotting program. Plots any number of functions, \ |
---|
17 | built up of C operators, C library functions, and \ |
---|
18 | some things C doesn't have like **, sgn(), etc. \ |
---|
19 | Also support for plotting data files, to compare \ |
---|
20 | actual data to theoretical curves. |
---|
21 | |
---|
22 | homepage http://gnuplot.sourceforge.net/ |
---|
23 | master_sites sourceforge \ |
---|
24 | http://sourceforge.net/projects/gnuplot/files/gnuplot/${version}/:manual |
---|
25 | dist_subdir ${name}/${version} |
---|
26 | |
---|
27 | distfiles-append ${name}.pdf:manual |
---|
28 | extract.only ${distname}.tar.gz |
---|
29 | checksums ${distname}.tar.gz \ |
---|
30 | sha1 a4d315b9288739e3cbaa04d8ddda7861b4009bd4 \ |
---|
31 | rmd160 90290eb2b6b9404dc520080439bdee9056e61fc4 \ |
---|
32 | ${name}.pdf \ |
---|
33 | sha1 307a035a023cbe02a191273839f3227f143ad797 \ |
---|
34 | rmd160 3be30cc28926721a62e4b880cbed487cf678e767 |
---|
35 | |
---|
36 | depends_lib port:expat \ |
---|
37 | port:fontconfig \ |
---|
38 | port:gd2 \ |
---|
39 | port:jpeg \ |
---|
40 | port:pdflib \ |
---|
41 | port:libiconv \ |
---|
42 | port:libpng \ |
---|
43 | port:ncurses \ |
---|
44 | port:readline \ |
---|
45 | port:xpm \ |
---|
46 | port:zlib |
---|
47 | |
---|
48 | patchfiles patch-src-variable_c.diff |
---|
49 | |
---|
50 | platform darwin { |
---|
51 | depends_lib-append port:aquaterm |
---|
52 | configure.cflags-append -DDEFAULTTERM='"aqua"' |
---|
53 | } |
---|
54 | |
---|
55 | minimum_xcodeversions {9 3.1} |
---|
56 | |
---|
57 | configure.args --with-readline=${prefix} \ |
---|
58 | --with-gd=${prefix} \ |
---|
59 | --with-pdf=${prefix} \ |
---|
60 | --with-png=${prefix} \ |
---|
61 | --with-x \ |
---|
62 | --enable-datastrings \ |
---|
63 | --enable-histograms \ |
---|
64 | --infodir='\${prefix}/share/info' \ |
---|
65 | --mandir='\${prefix}/share/man' \ |
---|
66 | --disable-wxwidgets \ |
---|
67 | --without-latex \ |
---|
68 | --without-tutorial \ |
---|
69 | --without-cairo \ |
---|
70 | --without-lua |
---|
71 | |
---|
72 | configure.ccache no |
---|
73 | |
---|
74 | variant no_x11 { |
---|
75 | depends_lib-delete port:xpm |
---|
76 | configure.args-delete --with-x |
---|
77 | configure.args-append --without-x |
---|
78 | } |
---|
79 | |
---|
80 | variant cairo description "Enable cairo terminals" { |
---|
81 | depends_lib-append port:cairo |
---|
82 | configure.args-delete --without-cairo |
---|
83 | configure.args-append --with-cairo |
---|
84 | } |
---|
85 | |
---|
86 | variant wxwidgets description "Enable wxWidgets front-end" { |
---|
87 | depends_lib-append port:wxWidgets |
---|
88 | configure.args-delete --disable-wxwidgets |
---|
89 | configure.args-append --with-wx-config=${prefix}/bin/wx-config |
---|
90 | } |
---|
91 | |
---|
92 | variant luaterm description "Enable Lua terminal" { |
---|
93 | depends_lib-append port:lua |
---|
94 | configure.args-delete --without-lua |
---|
95 | configure.args-append --with-lua |
---|
96 | } |
---|
97 | |
---|
98 | variant tutorial description "Build the tutorial (requires a tex install)" { |
---|
99 | depends_lib-append bin:tex:texlive |
---|
100 | configure.args-delete --without-tutorial --without-latex |
---|
101 | configure.args-append --with-tutorial |
---|
102 | } |
---|
103 | |
---|
104 | destroot.destdir prefix=${destroot}${prefix} |
---|
105 | |
---|
106 | post-destroot { |
---|
107 | xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} |
---|
108 | xinstall -m 0644 ${distpath}/${name}.pdf \ |
---|
109 | ${destroot}${prefix}/share/doc/${name}/ |
---|
110 | } |
---|