Skip to content
Permalink
Browse files

New port xtide. Tide prediction software. Command line client, x11 in…

…terface,

built in http server...

If an x11 guru would look this over I'd appreciate it...I'm not much into X
myself, so I might have dinged that part up.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14702 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Oct 19, 2005
1 parent dbaa06d commit b56250e91b2dc4af21e24cd05a3d52a1223c349a
Showing with 66 additions and 0 deletions.
  1. +43 −0 x11/xtide/Portfile
  2. +23 −0 x11/xtide/files/patch-Makefile.in
@@ -0,0 +1,43 @@
# $Id: Portfile,v 1.1 2005/10/19 04:07:31 jberry Exp $

PortSystem 1.0

name xtide
version 2.8.2

categories x11 science
platforms darwin
maintainers darwinports@opendarwin.org jberry@darwinports.org

description Tide prediction software, with a large database of locations.
long_description XTide is a package that provides tide and current predictions \
in a wide variety of formats.  Graphs, text listings, and calendars \
can be generated, or a tide clock can be provided on your desktop. \
For x11, plain command line, and as an http server.

homepage http://www.flaterco.com/xtide
master_sites ftp://www.flaterco.com/xtide

set harmonics_version 20050905
set harmonics_file harmonics-dwf-${harmonics_version}.tcd.gz

distfiles ${distname}${extract.suffix} \
${harmonics_file}
checksums ${distname}${extract.suffix} md5 3218480ad7e147549b56cfa9fa103b50 \
${harmonics_file} md5 48a952a7705bcb6a964e95d87b4059e2
patchfiles patch-Makefile.in
extract.only ${distname}${extract.suffix}

depends_lib port:libpng
configure.args --mandir=${prefix}/share/man

post-patch {
# Make the default harmonics path conveniently point to our file
reinplace s|harmonics.tcd|${prefix}/share/${name}/harmonics.tcd| ${worksrcpath}/TideContext.cc
}

post-destroot {
xinstall -d -m 755 ${destroot}${prefix}/share/xtide
xinstall -m 644 ${distpath}/${harmonics_file} ${destroot}${prefix}/share/${name}/harmonics.tcd.gz
system "gzip -d ${destroot}${prefix}/share/${name}/harmonics.tcd.gz"
}
@@ -0,0 +1,23 @@
--- Makefile.in.orig 2005-10-17 22:34:30.000000000 -0700
+++ Makefile.in 2005-10-17 22:36:02.000000000 -0700
@@ -53,13 +53,13 @@
$(CC) $(CXXFLAGS) $(extraswitches) -o libtcd/tide_db.o libtcd/tide_db.c

install:
- mkdir -m 755 -p $(bindir) $(sbindir) $(mandir)/man1 $(mandir)/man8
- cp xtide tide $(bindir)
- cp xttpd $(sbindir)
- chmod 755 $(bindir)/xtide $(bindir)/tide $(sbindir)/xttpd
- cp DOCUMENTATION/*.1 $(mandir)/man1
- cp DOCUMENTATION/*.8 $(mandir)/man8
- chmod 644 $(mandir)/man1/xtide.1 $(mandir)/man1/tide.1 $(mandir)/man8/xttpd.8
+ mkdir -m 755 -p $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man8
+ cp xtide tide $(DESTDIR)$(bindir)
+ cp xttpd $(DESTDIR)$(sbindir)
+ chmod 755 $(DESTDIR)$(bindir)/xtide $(DESTDIR)$(bindir)/tide $(DESTDIR)$(sbindir)/xttpd
+ cp DOCUMENTATION/*.1 $(DESTDIR)$(mandir)/man1
+ cp DOCUMENTATION/*.8 $(DESTDIR)$(mandir)/man8
+ chmod 644 $(DESTDIR)$(mandir)/man1/xtide.1 $(DESTDIR)$(mandir)/man1/tide.1 $(DESTDIR)$(mandir)/man8/xttpd.8

clean:
rm -f $(PROGRAMS) *.o libtcd/*.a libtcd/*.o

0 comments on commit b56250e

Please sign in to comment.
You can’t perform that action at this time.