# -*- 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 86033 2011-10-18 17:29:56Z snc@macports.org $

PortSystem 1.0

name		libqalculate
version		0.9.7
revision    1
categories	math
platforms	darwin
maintainers	vcn.com:jjstickel
license     GPL-2+

description	libqalculate is math libary for expression evaluation \
		with units, variables and functions support and CAS \
		functionality.

long_description \
		libqalculate is math libary for expression evaluation \
		with units, variables and functions support and CAS \
		functionality.  This library directly supports the \
		GUI interface qalculate-gtk or qalculate-kde.

homepage	http://qalculate.sourceforge.net/
master_sites	sourceforge:qalculate

checksums           md5     a1507ab862f4ad9852788619aada35cd \
                    sha1    c15f7f3a97995decf62cc964956fc1e374ecd78c \
                    rmd160  cc9e198769bea9731f92d2f3836875c83f715674

depends_build port:p5.12-xml-parser \
    port:pkgconfig

depends_lib	port:cln\
    port:libxml2\
    path:lib/pkgconfig/glib-2.0.pc:glib2\
    port:readline

use_parallel_build	yes

patch {
    reinplace "s|<malloc.h>|<malloc/malloc.h>|" ${worksrcpath}/src/qalc.cc
}
