source: trunk/dports/x11/xtide/Portfile @ 18718

Last change on this file since 18718 was 18718, checked in by jberry, 14 years ago

Whoops. Makefile.in patch still needed.

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.3 2006/07/24 17:54:34 jberry Exp $
2
3PortSystem 1.0
4
5name                                    xtide
6version                                 2.8.3
7revision                                1
8
9categories                              x11 science
10platforms                               darwin
11maintainers                             darwinports@opendarwin.org jberry@darwinports.org
12
13description                             Tide prediction software, with a large database of locations.
14long_description                XTide is a package that provides tide and current predictions \
15                                                in a wide variety of formats.  Graphs, text listings, and calendars \
16                                                can be generated, or a tide clock can be provided on your desktop. \
17                                                For x11, plain command line, and as an http server.
18
19homepage                                http://www.flaterco.com/xtide
20master_sites                    ftp://www.flaterco.com/xtide
21use_bzip2                               yes
22
23set harmonics_version   20060708
24set harmonics_file              harmonics-dwf-${harmonics_version}.tcd.bz2
25
26distfiles                               ${distname}${extract.suffix} \
27                                                ${harmonics_file}
28checksums                               ${distname}${extract.suffix} md5 653fd807116290ab96bd5aa1bb974315 \
29                                                ${harmonics_file} md5 7e8acfeb5aa454c1c19fc14bb7263513
30patchfiles                              patch-Makefile.in
31extract.only                    ${distname}${extract.suffix}
32
33depends_lib                             port:libpng
34configure.args                  --mandir=${prefix}/share/man
35
36post-patch {
37        # Make the default harmonics path conveniently point to our file
38        reinplace s|harmonics.tcd|${prefix}/share/${name}/harmonics.tcd| ${worksrcpath}/TideContext.cc
39}
40
41post-destroot {
42        xinstall -d -m 755 ${destroot}${prefix}/share/xtide
43        xinstall -m 644 ${distpath}/${harmonics_file} ${destroot}${prefix}/share/${name}/harmonics.tcd.bz2
44        system "bzip2 -d ${destroot}${prefix}/share/${name}/harmonics.tcd.bz2"
45}
Note: See TracBrowser for help on using the repository browser.