# -*- 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

PortSystem      1.0

name            mddisplay
version         3.0
categories      science
maintainers     yahoo.com:mjhsieh
description     A 3D Stereo Molecular Dynamics Trajectory Visualization Package
long_description    MD Display turns molecular dynamics trajectory data into a \
                    colorful, animated, on-screen movie. Key features include: \
                    Mouse control of translation, rotation, scaling, and \
                    clipping. Half-bond coloring controls. Animation speed and \
                    direction controls. Dynamic monitoring of distances, bond \
                    angles, dihedrals, and hydrogen bonds. Superimposition of \
                    static initial or average reference structures. \
                    Ramachandron plots. Real-time filtering of higher \
                    frequency molecular motions. PDB dump feature, for \
                    extracting movie frames on-the-fly.

homepage        http://structbio.vanderbilt.edu/~cmoth/mddisplay/
master_sites    ${homepage}
distname        ${name}
dist_subdir     ${name}/${version}
platforms       darwin
checksums       md5 b4f61a306d321bcdb53870887090c2e0 \
                sha1 d5586a6b1357d8d42f778b4cf299db28f02190e4

use_configure   no

patchfiles      patch-mddisplay.c.diff \
                patch-displib.c.diff \
                patch-preproc.c.diff

build.args      CC=${configure.cc} CFLAGS="${configure.cflags} ${configure.cc_archflags}"

build.target    -f makefile.osx default

destroot        {
        xinstall -m 0755 ${worksrcpath}/mddisplay ${destroot}${prefix}/bin
        xinstall -m 0755 ${worksrcpath}/preproc ${destroot}${prefix}/bin
        xinstall -d ${destroot}${prefix}/share/doc/${name}
        xinstall -m 0644 ${worksrcpath}/readme.txt ${destroot}${prefix}/share/doc/${name}
}