source: trunk/dports/graphics/pgplot/Portfile @ 20312

Last change on this file since 20312 was 20312, checked in by blair@…, 13 years ago

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 20312 2006-11-01 21:50:13Z blair@macports.org $
2
3PortSystem                      1.0
4name                            pgplot
5version                         5.2.2
6revision                        3
7categories                      graphics devel
8maintainers                     darwinports@opendarwin.org
9description                     C/Fortran graphics library
10long_description \
11        The PGPLOT Graphics Subroutine Library is a Fortran- or C-callable, \
12        device-independent graphics package for making simple scientific \
13        graphs.  It is intended for making graphical images of publication \
14        quality with minimum effort on the part of the user. For most \
15        applications, the program can be device-independent, and the output can \
16        be directed to the appropriate device at run time.
17
18platforms                       darwin
19
20homepage                        http://www.astro.caltech.edu/~tjp/pgplot/
21master_sites            ftp://ftp.astro.caltech.edu/pub/pgplot/:pgplot \
22                        sourceforge:aquaterm:aqt
23
24set aqtversion          1.0.0
25
26distfiles                       ${name}5.2.tar.gz:pgplot
27
28distname                        ${name}5.2:pgplot \
29                                aquaterm_src.${aqtversion}:aqt
30
31worksrcdir                      ${name}/build:pgplot
32                               
33
34checksums                       ${name}5.2.tar.gz md5 e8a6e8d0d5ef9d1709dfb567724525ae \
35                                aquaterm_src.${aqtversion}.tar.gz md5 937461dfefb62178bee960bfe88e0991
36
37depends_lib                     lib:libpng:libpng lib:libz:zlib bin:g77-dp-3.4:gcc34
38
39patchfiles                      patch-makemake patch-src_grgfil.f patch-drivers.list \
40                                        patch-pgdispd_proccom.c
41
42post-extract {
43        file mkdir ${worksrcpath}
44}
45
46pre-patch {
47        file copy ${worksrcpath}/../drivers.list ${worksrcpath}/drivers.list
48}
49
50post-patch {
51        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/../src/grgfil.f
52}
53
54configure {
55        cd ${worksrcpath}
56        system "../makemake .. ${ppMakeMakeTarget}"
57}
58
59build.target            all
60
61post-build {
62        cd ${worksrcpath}
63        system "make cpg"
64}
65
66destroot {
67        xinstall -m 755 -d ${destroot}/${prefix}/share/${name} \
68                ${destroot}/${prefix}/share/doc/${name}
69        xinstall -m 644 -W ${worksrcpath} grfont.dat rgb.txt \
70                ${destroot}/${prefix}/share/${name}
71        xinstall -m 644 -W ${worksrcpath} libpgplot.a libcpgplot.a \
72                ${destroot}/${prefix}/lib
73        system "ranlib ${destroot}/${prefix}/lib/libpgplot.a \
74                ${destroot}/${prefix}/lib/libcpgplot.a"
75        xinstall -m 644 -W ${worksrcpath} cpgplot.h ${destroot}/${prefix}/include
76        xinstall -m 644 -W ${worksrcpath} pgplot.doc ../copyright.notice \
77                ${destroot}/${prefix}/share/doc/${name}
78        if {[variant_isset x11]} {
79                xinstall -m 755 -W ${worksrcpath} pgdisp pgxwin_server \
80                        ${destroot}/${prefix}/bin
81        }
82}
83
84variant x11 {
85        depends_lib-append      lib:libX11:XFree86
86
87        patchfiles-append       patch-drivers_x11.list
88}
89
90variant darwin {
91        global ppMakeMakeTarget
92        set ppMakeMakeTarget    darwin
93        patchfiles-append               patch-sys_darwin_aaaread.me \
94                                                        patch-sys_darwin_g77_gcc.conf
95        post-patch {
96                reinplace "s|@@PREFIX@@|${prefix}|g" \
97                        ${worksrcpath}/../sys_darwin/g77_gcc.conf
98                reinplace "s|@@X11PREFIX@@|${x11prefix}|g" \
99                        ${worksrcpath}/../sys_darwin/g77_gcc.conf
100        }
101}
102
103variant aqt {
104# Variant that adds aquaterm driver support
105        distfiles-append        aquaterm_src.${aqtversion}.tar.gz:aqt
106        patchfiles-append       patch-drivers.list_aqt \
107                                                patch-sys_darwin_g77_gcc.conf_aqt \
108                                                patch-makemake_aqt \
109                                                patch-aqdriv.m_aqt
110       
111        pre-patch {
112                file copy ${workpath}/adapters/pgplot/aqdriv.m ${workpath}/pgplot/drivers/
113        }
114}
Note: See TracBrowser for help on using the repository browser.