public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
Search Repo:
Jochen Küpper (author)
Fri Apr 25 14:11:59 -0700 2008
commit  b999b6d0ea1cfa20ebe58cb0338de4ab76706b9a
tree    ed45b308477bb7a26b360a909cf86b76d354d4c9
parent  a784a165b5a28015ba143da5467151d0d0683f66
macports / dports / science / molden / Portfile
100644 68 lines (60 sloc) 3.187 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- 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
}