# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id$
# I (Jochen Küpper) got explicit permission to distribute molden as a
# MacPorts port, given that the source-code is always downloaded from
# the authors webpage and we add a banner asking users to register at
# the following web-page: http://www.cmbi.ru.nl/molden/form.html
#
# Feel free to update checksums whenever a stealth upgrade of molden is out...
PortSystem 1.0
name molden
version 4.6
revision 7
categories science graphics
maintainers openmaintainer jochen
homepage http://www.cmbi.ru.nl/molden/molden.html
master_sites ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/
distname molden${version}
dist_subdir molden-${version}_${revision}
checksums md5 0501d2192c4a178f91fb560c02cf68aa \
sha1 7e940a0eea8b38fc5a39e0effd09e72568f9adf4 \
rmd160 6f63a5180019ff4ad703d122e9050f57d7f7d083
description Molecular graphics visualisation tool
long_description Molden is a package for displaying Molecular Density from \
the Ab Initio packages GAMESS-UK , GAMESS-US and \
GAUSSIAN and the Semi-Empirical packages Mopac/Ampac, it \
also supports a number of other programs via the Molden Format. \
In order to keep up support for Molden, proof that \
it is being used outside the CMBI is required. \
Please register your copy of molden at: \
http://www.cmbi.ru.nl/molden/form.html
platforms darwin
depends_build port:gmake
depends_lib port:gcc43 lib:libX11.6:XFree86
patchfiles patch-makefile.diff
use_parallel_build yes
configure.cmd true
configure.pre_args
build.target molden
build.cmd nice -n ${buildnicevalue} gmake -j${buildmakejobs}
destroot {
xinstall -W ${worksrcpath} molden ${destroot}${prefix}/bin
xinstall -m 755 -d ${destroot}${prefix}/share/doc/molden
xinstall -W ${worksrcpath} HISTORY ${destroot}${prefix}/share/doc/molden/
xinstall -W ${worksrcpath} README ${destroot}${prefix}/share/doc/molden/
xinstall -W ${worksrcpath} REGISTER ${destroot}${prefix}/share/doc/molden/
if { [variant_isset opengl] } {
xinstall -W ${worksrcpath} moldenogl ${destroot}${prefix}/bin
}
}
post-install { ui_msg "**************************************************"
ui_msg "In order to keep up support for Molden, proof that"
ui_msg "it is being used outside the CMBI is required."
ui_msg "Please register your copy of molden at:"
ui_msg "*** http://www.cmbi.ru.nl/molden/form.html ***"
ui_msg "**************************************************"
}
variant opengl description "Install moldenogl OpenGL helper program" {
depends_lib-append port:glut
build.target-append moldenogl
}