Ticket #28794: Portfile.gnuplot

File Portfile.gnuplot, 4.2 KB (added by kthenriksson@…, 13 years ago)
Line 
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
4PortSystem                  1.0
5PortGroup                   xcodeversion 1.0
6
7name                        gnuplot
8version                     4.4.3
9categories                  math science
10platforms                   darwin
11maintainers                 nomaintainer
12
13description                 A command-driven interactive function plotting program
14
15long_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
22homepage                    http://gnuplot.sourceforge.net/
23master_sites                sourceforge \
24                            http://sourceforge.net/projects/gnuplot/files/gnuplot/${version}/:manual
25dist_subdir                 ${name}/${version}
26
27distfiles-append            ${name}.pdf:manual
28extract.only                ${distname}.tar.gz
29checksums                   ${distname}.tar.gz \
30                            sha1    a4d315b9288739e3cbaa04d8ddda7861b4009bd4 \
31                            rmd160  90290eb2b6b9404dc520080439bdee9056e61fc4 \
32                            ${name}.pdf \
33                            sha1    307a035a023cbe02a191273839f3227f143ad797 \
34                            rmd160  3be30cc28926721a62e4b880cbed487cf678e767
35
36depends_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
48patchfiles                  patch-src-variable_c.diff
49
50platform darwin {
51    depends_lib-append      port:aquaterm
52    configure.cflags-append -DDEFAULTTERM='"aqua"'
53}
54
55minimum_xcodeversions       {9 3.1}
56
57configure.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
72configure.ccache            no
73
74variant no_x11 {
75    depends_lib-delete      port:xpm
76    configure.args-delete   --with-x
77    configure.args-append   --without-x
78}
79
80variant 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
86variant 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
92variant 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
98variant 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
104destroot.destdir            prefix=${destroot}${prefix}
105
106post-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}