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 $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup gyoto Gyoto 0.0.3 |
---|
8 | license GPL-3+ |
---|
9 | categories science |
---|
10 | platforms darwin |
---|
11 | maintainers users.sourceforge.net:paumard openmaintainer |
---|
12 | description General relativistic geodesic integration and ray-tracing |
---|
13 | long_description Gyoto aims at providing a framework for computing orbits \ |
---|
14 | and ray-traced images in General relativity. It consists \ |
---|
15 | in a C++ shared library (libgyoto), utility programs \ |
---|
16 | (gyoto, gyotoy), and a plug-in for the Yorick programming \ |
---|
17 | language. Gyoto can be extended with plug-ins. |
---|
18 | homepage http://gyoto.obspm.fr |
---|
19 | |
---|
20 | checksums rmd160 79418d7131c8d6af33c1f30bc86d9f07ce2f376a \ |
---|
21 | sha256 f6bbb6e148cdffd5e2482d37f13bfe8ed543918d20e0b803a935dce93760a46d |
---|
22 | |
---|
23 | depends_lib port:cfitsio \ |
---|
24 | port:xercesc3 \ |
---|
25 | path:bin/yorick:yorick |
---|
26 | |
---|
27 | depends_run port:yorick-yutils |
---|
28 | |
---|
29 | # yorick is not universal |
---|
30 | universal_variant no |
---|
31 | |
---|
32 | configure { |
---|
33 | reinplace "s|yorick|${prefix}/bin/yorick|" ${worksrcpath}/local_settings |
---|
34 | reinplace "s|/opt/local|${prefix}|" ${worksrcpath}/local_settings |
---|
35 | reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/local_settings |
---|
36 | reinplace "s|-dynamiclib|-install_name ${prefix}/lib/libgyoto.dylib -dynamiclib|" ${worksrcpath}/local_settings |
---|
37 | reinplace "s|g++|${configure.cxx}|" ${worksrcpath}/local_settings |
---|
38 | reinplace "s|CPPFLAGS = .*|CPPFLAGS = ${configure.cppflags}|" ${worksrcpath}/local_settings |
---|
39 | reinplace "s|LDFLAGS = .*|LDFLAGS = ${configure.ldflags}|" ${worksrcpath}/local_settings |
---|
40 | reinplace "s|CXXFLAGS = .*|CXXFLAGS = ${configure.cxxflags}|" ${worksrcpath}/local_settings |
---|
41 | reinplace "s| -Wcast-align -Wconversion -Winline \\\\||" ${worksrcpath}/local_settings |
---|
42 | reinplace "s| -Wabi -Woverloaded-virtual -Wno-long-long -fPIC||" ${worksrcpath}/local_settings |
---|
43 | } |
---|
44 | |
---|
45 | # parallel builds fail |
---|
46 | use_parallel_build no |
---|
47 | |
---|
48 | build.args-append Y_CFLAGS="${configure.cxxflags}" Y_CPPFLAGS="${configure.cppflags}" CC="${configure.cc}" COPT_DEFAULT="" Y_LDFLAGS="${configure.ldflags}" |
---|