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

github.setup    nzjrs osm-gps-map 0.7.3
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name            osm-gps-map-gtk2
revision        1
license         GPL-3
categories      graphics
maintainers     {devans @dbevans} openmaintainer
homepage        http://nzjrs.github.io/${github.project}/

description     A GTK+ 2 widget for displaying OpenStreetMap tiles.

long_description \
                A GTK+ 2 widget that when given GPS co-ordinates, \
                draws a GPS track, and points of interest on a moving map display. \
                Downloads map data from a number of websites, including openstreetmap.org.

checksums       rmd160  c7c48f36a4f9ad3a070324f154da0264d415f80b \
                sha256  669ae7975c67908288272e67e73487fc5faf60e67f5915fd25e18a41d2a51c4a

depends_build   port:pkgconfig \
                port:autoconf \
                port:automake \
                port:libtool \
                port:gnome-common \
                port:gtk-doc

depends_lib     port:libsoup-2.4 \
                path:lib/pkgconfig/gtk+-2.0.pc:gtk2

patchfiles      patch-Makefile.am.diff

gobject_introspection no

configure.cmd   ./autogen.sh

configure.args  --disable-silent-rules

post-destroot {
    set docpath ${destroot}${prefix}/share/gtk-doc/html
    move ${docpath}/libosmgpsmap ${docpath}/libosmgpsmapgtk2
    move ${docpath}/libosmgpsmapgtk2/libosmgpsmap.devhelp2 ${docpath}/libosmgpsmapgtk2/libosmgpsmapgtk2.devhelp2
}

notes "
    This is a legacy version that is compatible with GTK+ 2. For the current GTK+ 3
    compatible version see port osm-gps-map.
"

livecheck.type  none
