# -*- 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
# $Id: Portfile 115057 2013-12-23 09:12:03Z devans@macports.org $

PortSystem      1.0

PortGroup       github 1.0

set git_name    osm-gps-map
github.setup    nzjrs ${git_name} 0.7.3
name            osm-gps-map-gtk2
revision        1
license         GPL-3
categories      graphics
maintainers     devans openmaintainer
platforms       darwin
homepage        http://nzjrs.github.com/${git_name}

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 \
                port:gtk2

patchfiles      patch-Makefile.am.diff

configure.cmd   ./autogen.sh

configure.args  --enable-introspection=no \
                --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
