Ticket #34088: Portfile

File Portfile, 2.3 KB (added by paumard, 12 years ago)

science/Gyoto/Portfile

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 $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        gyoto Gyoto 0.0.3
8license             GPL-3+
9categories          science
10platforms           darwin
11maintainers         users.sourceforge.net:paumard openmaintainer
12description         General relativistic geodesic integration and ray-tracing
13long_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.
18homepage            http://gyoto.obspm.fr
19
20checksums           rmd160  79418d7131c8d6af33c1f30bc86d9f07ce2f376a \
21                    sha256  f6bbb6e148cdffd5e2482d37f13bfe8ed543918d20e0b803a935dce93760a46d
22
23depends_lib         port:cfitsio \
24                    port:xercesc3 \
25                    path:bin/yorick:yorick
26
27depends_run         port:yorick-yutils
28
29# yorick is not universal
30universal_variant   no
31
32configure {
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
46use_parallel_build  no
47
48build.args-append    Y_CFLAGS="${configure.cxxflags}" Y_CPPFLAGS="${configure.cppflags}" CC="${configure.cc}" COPT_DEFAULT="" Y_LDFLAGS="${configure.ldflags}"