# $Id: Portfile 104220 2013-03-21 03:37:44Z larryv@macports.org $

PortSystem          1.0

name                gpp4
version             1.3.1
revision            1
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          science
maintainers         fastmail.net:konrad.hinsen openmaintainer
license             LGPL-3+

description         macromolecular crystallography library
long_description    The goal of this project -- named gpp4 to \
                    distinguish it from CCP4 -- is to provide a \
                    drop-in replacement for the CCP4 libraries, that \
                    as carefully as possible implements the current \
                    CCP4 library interface, while not requiring the \
                    whole CCP4 package to be installed.

homepage            https://launchpad.net/gpp4
platforms           darwin

master_sites        http://launchpad.net/gpp4/${branch}/${version}/+download/

checksums           md5 e608519594f430c78be3c53e8e26a260 \
                    sha256 ad18b8771f68b55bcf40a59f2be5489daf6bd97934a181602de7f44fbe27776f

depends_lib         port:mmdb
depends_build       port:gawk port:gsed port:pkgconfig

variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description {Compile with gcc 4.3} {
    configure.compiler macports-gcc-4.3
    depends_lib-append port:gcc43
}

variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description {Compile with gcc 4.4} {
    configure.compiler macports-gcc-4.4
    depends_lib-append port:gcc44
}

variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description {Compile with gcc 4.5} {
    configure.compiler macports-gcc-4.5
    depends_lib-append port:gcc45
}

variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description {Compile with gcc 4.6} {
    configure.compiler macports-gcc-4.6
    depends_lib-append port:gcc46
}

variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description {Compile with gcc 4.7} {
    configure.compiler macports-gcc-4.7
    depends_lib-append port:gcc47
}

if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
    default_variants +gcc47
}

universal_variant no
