# -*- 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 119545 2014-04-30 01:09:28Z ryandesign@macports.org $

PortSystem          1.0

name                libsbml
version             5.10.0
categories          science
platforms           darwin
maintainers         nomaintainer
license             LGPL-2.1+

description         The Systems Biology Markup Language library

long_description    LibSBML is a free, open-source programming library to \
                    help you read, write, manipulate, translate, and validate \
                    SBML files and data streams. It is not an application \
                    itself (though it does come with example programs), but \
                    rather a library you can embed in your own applications.

homepage            http://sbml.org/Software/libSBML
master_sites        sourceforge:project/sbml/libsbml/${version}/stable

distname            libSBML-${version}-core-src
worksrcdir          libsbml-${version}

checksums           rmd160  5ad7c3b8d7128faa491a8fd852565739770fcd5f \
                    sha256  c7e733443caaf4615e90a29111ff988b89b1c9a679de0a9737fc2a86840df1e0

depends_lib         port:bzip2 \
                    port:libxml2 \
                    port:zlib

configure.args      --with-bzip2=${prefix} \
                    --with-libxml=${prefix} \
                    --with-zlib=${prefix}

configure.universal_args-delete --disable-dependency-tracking

variant python26 conflicts python27 python31 python32 python33 description {Configure to use Python version 2.6} {
    depends_lib-append      port:python26
    configure.args-append   --with-python --with-python-interpreter=${prefix}/bin/python2.6
}

variant python27 conflicts python26 python31 python32 python33 description {Configure to use Python version 2.7} {
    depends_lib-append      port:python27
    configure.args-append   --with-python --with-python-interpreter=${prefix}/bin/python2.7
}

variant python31 conflicts python26 python27 python32 python33 description {Configure to use Python version 3.1} {
    depends_lib-append      port:python31
    configure.args-append   --with-python --with-python-interpreter=${prefix}/bin/python3.1
}

variant python32 conflicts python26 python27 python31 python33 description {Configure to use Python version 3.2} {
    depends_lib-append      port:python32
    configure.args-append   --with-python --with-python-interpreter=${prefix}/bin/python3.2
}

variant python33 conflicts python26 python27 python31 python32 description {Configure to use Python version 3.3} {
    depends_lib-append      port:python33
    configure.args-append   --with-python --with-python-interpreter=${prefix}/bin/python3.3
}

livecheck.regex     /libSBML-(\[0-9.\]+)-core-src${extract.suffix}
