source: trunk/dports/science/swarm/Portfile

Last change on this file was 147494, checked in by mmoll@…, 20 months ago

hdf5: update to version 1.10.0, bump revision of ports that depend on hdf5 and need to be rebuilt. closes #51062

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 147494 2016-04-05 20:52:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                swarm
7version             2.4.1
8revision            13
9categories          science
10maintainers         nomaintainer
11license             GPL-2
12description         Swarm is a platform for agent-based models (ABMs).
13long_description    ${description}
14homepage            http://www.swarm.org/
15platforms           darwin
16master_sites        http://download.savannah.gnu.org/releases/swarm/src/swarm/
17
18checksums           sha1    7869b678a445c430a55b71e3631e5aa511d02d47 \
19                    rmd160  f76274f48509ceb4d346c9724f6fd9070e42c6e2 \
20                    sha256  04b78811235722c2da199a538ac4465aaf4030f1aaf8554b94785fc1482d2c95
21
22depends_lib         port:blt \
23                    port:tcl \
24                    port:tk \
25                    port:xpm \
26                    port:libffi \
27                    port:zlib \
28                    port:libpng \
29                    port:hdf5
30
31# https://savannah.nongnu.org/bugs/?41491
32# src/defobj/make-h2x needs GNU sed; causes build failure if only BSD sed is
33# available. The path to gsed is baked into ${prefix}/bin/libtool-swarm.
34depends_lib-append  port:gsed
35
36universal_variant   no
37
38patchfiles          patch-libpng-1.5.diff
39
40post-patch {
41    reinplace {s:-fgnu-runtime:-DH5_USE_16_API -fnested-functions -fgnu-runtime:g} \
42        ${worksrcpath}/configure \
43        ${worksrcpath}/libobjc/configure
44}
45
46# https://savannah.nongnu.org/bugs/?42866
47#sendmsg.c:200:10: error: use of unknown builtin '__builtin_apply' [-Wimplicit-function-declaration]
48#sendmsg.c:507:10: error: use of unknown builtin '__builtin_apply_args' [-Wimplicit-function-declaration]
49#sendmsg.c:510:5: error: use of unknown builtin '__builtin_return' [-Wimplicit-function-declaration]
50# Nested functions
51# Buggy C++
52compiler.blacklist  *clang*
53
54configure.args      --with-x \
55                    --x-include=${prefix}/include \
56                    --x-lib=${prefix}/lib \
57                    --with-tcl=${prefix}/lib \
58                    --with-tk=${prefix}/lib
59
60# Ensure MacPorts grep is not used, even if it is already installed, because
61# its path would be baked into ${prefix}/bin/libtool-swarm.
62configure.args-append ac_cv_path_GREP=/usr/bin/grep
63
64# Fix build with Tcl 8.6+
65configure.cppflags-append -DUSE_INTERP_RESULT
66
67pre-configure {
68    configure.args-append --with-ffidir=[glob ${prefix}/lib/libffi-*]
69
70    if {[file exists /System/Library/Frameworks/JavaVM.framework]} {
71        configure.args-append --with-jdkdir=/System/Library/Frameworks/JavaVM.framework
72    }
73}
74
75# sed: RE error: illegal byte sequence
76build.env           LANG=C
77
78post-destroot {
79    # https://trac.macports.org/ticket/34232
80    delete ${destroot}${prefix}/include
81}
82
83livecheck.type      regex
84livecheck.url       [lindex ${master_sites} 0]
85livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.