# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           app 1.0

name                xastir
categories          science
license             GPL-2+
maintainers         {ra1nb0w @ra1nb0w} openmaintainer
description         Amateur Radio APRS tracking software
long_description    {*}${description}
homepage            http://www.xastir.org/

github.setup        Xastir Xastir 2.1.8 Release-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  8e32480f5bd43d262d3ca2153fb69c492273ad25 \
                    sha256  8b010e0ae665c1dd5f83c609940b6b8b56ad0f777bac0f637f599311111bf973 \
                    size    2222069
revision            13

use_autoconf        yes
autoconf.cmd        ./bootstrap.sh

depends_build       port:autoconf \
                    port:automake \
                    port:pkgconfig

depends_lib         port:xorg-libXp \
                    port:xpm \
                    port:xorg-libXt \
                    port:fontconfig \
                    lib:libXm:openmotif \
                    port:libgeotiff \
                    port:ImageMagick \
                    port:gdal \
                    port:pcre \
                    port:db48 \
                    port:tiff \
                    port:proj4 \
                    port:shapelib \
                    port:curl

patchfiles          patch-acinclude.m4.diff \
                    patch-bootstrap.sh.diff \
                    patch-configure.ac.diff

configure.args      --without-graphicsmagick

configure.cppflags-append   -I${prefix}/include/db48
configure.ldflags-append    -L${prefix}/lib/db48

app.create yes
app.name Xastir
app.executable xastir
app.icon symbols/icon.png
app.retina yes
