source: trunk/dports/science/molden/Portfile

Last change on this file was 153103, checked in by ryandesign@…, 14 months ago

molden: update to 5.7-20160923072300

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# -*- 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
2# $Id: Portfile 153103 2016-09-24 19:18:23Z ryandesign@macports.org $
3
4# Previous maintainer Jochen Küpper got explicit permission to distribute molden
5# as a MacPorts port, given that the source code is always downloaded from the
6# author's webpage and we display a notice asking users to register.
7
8PortSystem 1.0
9PortGroup xcodeversion 1.0
10PortGroup compilers 1.0
11
12name                molden
13version             5.7-20160923072300
14set version_number  [lindex [split ${version} -] 0]
15set branch          [join [lrange [split ${version_number} .] 0 1] .]
16categories          science graphics chemistry
17license             Restrictive Noncommercial
18maintainers         ryandesign openmaintainer
19homepage            http://www.cmbi.ru.nl/molden/
20distname            ${name}${version_number}
21worksrcdir          ${name}${branch}
22dist_subdir         ${name}/${version}
23master_sites        ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/
24
25# This project regularly makes "stealth updates". The version (with date)
26# as well as checksums should be updated each time this happens.
27# See https://trac.macports.org/wiki/PortfileRecipes#stealth-updates
28checksums           rmd160  149e2d047d7977b26623bb259dad8efc570a6750 \
29                    sha256  4c7a6b550fefb3d71a7072c4a3a3e4793a927b62c2713180589b9481df546694
30
31description         Molecular graphics visualisation tool
32long_description    Molden is a package for displaying Molecular Density from \
33                    the Ab Initio packages GAMESS-UK, GAMESS-US and \
34                    GAUSSIAN and the Semi-Empirical packages Mopac/Ampac, it \
35                    also supports a number of other programs via the Molden Format. \
36                    In order to keep up support for Molden, proof that \
37                    it is being used outside the CMBI is required. \
38                    Please register your copy of molden at: \
39                    http://www.cmbi.ru.nl/molden/form.html
40
41notes "
42                    In order to keep up support for Molden, proof that\
43                    it is being used outside the CMBI is required.\
44                    Please register your copy of molden at:\
45                    \n\nhttp://www.cmbi.ru.nl/molden/form.html
46"
47
48platforms           darwin
49depends_build       port:gmake
50depends_lib         port:xorg-libX11
51patchfiles          patch-makefile.diff
52post-patch {
53    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/makefile
54}
55
56compilers.choose    fc
57compilers.setup     require_fortran
58minimum_xcodeversions {9 3.1}
59use_parallel_build  yes
60use_configure       no
61build.target        molden
62build.cmd           ${prefix}/bin/gmake
63pre-build {
64    build.args      CC=${configure.cc} \
65                    FC=${configure.fc}
66}
67
68destroot {
69    xinstall -W ${worksrcpath} molden ${destroot}${prefix}/bin
70    set docdir ${destroot}${prefix}/share/doc/molden
71    xinstall -m 755 -d ${docdir}
72    xinstall -W ${worksrcpath} \
73        COMMERCIAL_LICENSE \
74        CopyRight \
75        HISTORY \
76        README \
77        REGISTER \
78        ${docdir}
79}
80
81variant opengl description "Install moldenogl OpenGL helper program" {
82    depends_lib-append      port:freeglut \
83                            port:mesa
84    build.target-append     moldenogl
85    post-destroot {
86        xinstall -W ${worksrcpath} moldenogl ${destroot}${prefix}/bin
87    }
88}
89
90livecheck.type      regex
91livecheck.url       http://www.ryandesign.com/macports/version.php/${name}
92livecheck.regex     {^(.+)$}
Note: See TracBrowser for help on using the repository browser.