# -*- 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 85828 2011-10-16 17:27:04Z devans@macports.org $

PortSystem 1.0

name            lib2geom
version         0.2.0
license         {LGPL-2.1 MPL-1.1}
maintainers     devans openmaintainer
categories      graphics
platforms       darwin
homepage        http://lib2geom.sourceforge.net/

description     lib2geom is a library providing a robust 2D computational geometry framework.

long_description \
                lib2geom (2Geom in private life) is a library initially developed for Inkscape but which \
                will provide a robust 2D computational geometry framework for any application. It is not a \
                rendering library, but instead concentrates on high level algorithms such as computing arc length.

master_sites    sourceforge
checksums       md5     983941e4b115a3af9ee95ab2d9cc35e5 \
                sha1    c0fc2c50e14dba98753400c75241585fda026960 \
                rmd160  f861adb5f7b308dc6197175c8beecfa6682ba42e

depends_build   port:cmake \
                port:pkgconfig

depends_lib     port:gtkmm \
                port:boost \
                port:gsl

patchfiles      patch-src-2geom-CMakeLists.txt.diff \
                patch-src-2geom-toys-CMakeLists.txt.diff

configure.cmd   cmake
configure.args   -Wno-dev -DCMAKE_INSTALL_PREFIX=${prefix} -D2GEOM_BUILD_SHARED=YES
configure.post_args ${worksrcpath}

livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
