# -*- 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 88147 2011-12-20 18:48:59Z pixilla@macports.org $

PortSystem 1.0
name                rasqal
version             0.9.28
description         Raptor RDF Query Library
long_description    Rasqal is an open source C library that handles Resource \
                    Description Framework (RDF) query syntaxes, query \
                    construction and query execution returning result \
                    bindings. The supported query languages are SPARQL and RDQL.
maintainers         pixilla openmaintainer
license             {LGPL-2.1+ GPL-2+ Apache-2+}
categories          www
platforms           darwin
homepage            http://librdf.org/rasqal/
master_sites        http://download.librdf.org/source/

checksums           rmd160  d384cd3e19058cd005e9e9d5fbca7aad7cbdb41e \
                    sha256  ddcde4bfb132e385ddceb7ab646c4ae025bdbc39c6c6398a94bf534259a9ba33

depends_build       port:pkgconfig

depends_lib         port:curl \
                    port:libiconv \
                    port:libxml2 \
                    port:libxslt \
                    port:mhash \
                    port:mpfr \
                    port:openssl \
                    port:raptor2 \
                    port:zlib

# prevent "-L/lib" from appearing in rasqal.pc
configure.args-append --with-mhash=${prefix}

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