# -*- 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
PortGroup compiler_blacklist_versions 1.0
maintainers {dstrubbe @dstrubbe} openmaintainer
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://ftp.flaterco.com/xtide/
set docdir ${prefix}/share/doc/${subport}
set harmonics_dir ${prefix}/share/${name}/harmonics
set wvs_dir ${prefix}/share/${name}/wvs
set conf_dir ${prefix}/etc/${name}
set conf_file ${conf_dir}/xtide.conf
livecheck.url ${homepage}files.html
if {${name} eq ${subport}} {
master_sites-append https://src.fedoraproject.org/repo/pkgs/${name}/${distfiles}/59de866e0684e123419d7a1c97ea23a5/
checksums rmd160 a4924c09f452e63da12012781bea7607f9178ec4 \
sha256 e5c4afbb17269fdde296e853f2cb84845ed1c1bb1932f780047ad71d623bc681
depends_lib port:libpng \
depends_run port:${name}-data
# Put config file path within MacPorts filesystem hierarchy, and reflect this in documentation.
reinplace -locale C -W ${worksrcpath} "s|/etc/xtide\\.conf|${conf_dir}/xtide\\.conf|g" \
libxtide/Global.cc tide.1 xtide.1 xttpd.8
# Per the configure script: "if using GCC, version 4.4 or later is required"
compiler.blacklist *gcc-4.2 gcc-4.0 gcc-3.3 {clang < 300}
configure.args-append --without-x
variant xwindows description {Build xtide executable for use with X-Windows} {
depends_lib-append port:xorg-libXaw
configure.args-delete --without-x
default_variants-append +xwindows
# Set up config file to where xtide-data and xtide-wvs will put files.
xinstall -d -m 755 ${destroot}${conf_dir}