Ticket #24464: Portfile

File Portfile, 2.5 KB (added by emile@…, 14 years ago)

gnuplot 4.4.0 Portfile

Line 
1# $Id: Portfile 66222 2010-04-07 14:07:44Z takeshi@macports.org $
2
3PortSystem 1.0
4PortGroup xcodeversion 1.0
5
6name                    gnuplot
7version                 4.4.0
8revision        0
9categories              math science
10maintainers             nomaintainer
11description             A command-driven interactive function plotting program
12long_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.
18platforms               darwin
19homepage                http://gnuplot.sourceforge.net/
20master_sites    sourceforge
21distfiles               ${distname}.tar.gz \
22                                ${distname}.pdf
23extract.only    ${distname}.tar.gz
24checksums               ${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
33depends_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
45platform darwin {
46        depends_lib-append              port:aquaterm
47        configure.cflags-append '-DDEFAULTTERM=\\"aqua\\"'
48}
49
50minimum_xcodeversions {9 3.1}
51
52configure.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
62configure.ccache        no
63
64variant no_x11 {
65        depends_lib-delete              port:xpm
66        configure.args-delete   --with-x
67        configure.args-append   --without-x
68}
69
70variant 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
76variant 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
82destroot.destdir        prefix=${destroot}${prefix}
83post-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}