Ticket #27285: Portfile

File Portfile, 2.9 KB (added by Tom.Schoonjans@…, 14 years ago)
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$
3
4PortSystem          1.0
5name                xraylib
6version             2.14.0
7revision            1
8categories          science
9platforms           darwin
10maintainers         me.com:Tom.Schoonjans
11description         A library for X-ray matter interaction cross sections
12long_description    xraylib provides an API with over 5O functions\
13                    designed to provide convenient access to databases\
14                    with cross sections (photoelectric, Compton, Rayleigh, XRF  etc),\
15                    line energies, edge energies, fluorescence yields,\
16                    scattering factors, refractive indices, Compton profiles etc\
17                    Bindings exist for Perl, Python, Java, Fortran, IDL and .NET
18
19homepage            http://github.com/tschoonj/xraylib
20master_sites        http://github.com/tschoonj/xraylib/downloads
21checksums           md5     37a9281bfb8ac0dbc3e0f352eaf35479 \
22                    sha1    6fa2add4ffedcd94003bcff648ea6e657976d56e \
23                    rmd160  c436cd31e38628a4290c3a9af7ddd89812eccb1c
24configure.args      --disable-idl --disable-fortran2003 --disable-perl --disable-python --disable-java
25
26#to be fixed in later versions of xraylib...
27use_parallel_build no
28
29variant perl description {Perl bindings} {
30    configure.args-append --enable-perl
31    configure.args-delete --disable-perl
32    depends_build-append port:swig-perl
33}
34variant python description {Python bindings} {
35    configure.args-append --enable-python
36    configure.args-delete --disable-python
37    depends_build-append port:swig-python
38}
39variant java description {Java bindings} {
40    configure.args-append --enable-java
41    configure.args-delete --disable-java
42    depends_build-append port:swig-java
43}
44variant gcc43 description {build with gfortran from gcc43} conflicts gcc44 gcc45 g95 {
45    configure.args-append --enable-fortran2003
46    configure.args-delete --disable-fortran2003
47    depends_lib-append port:gcc43
48    configure.fc ${prefix}/bin/gfortran-mp-4.3
49}
50variant gcc44 description {build with gfortran from gcc44} conflicts gcc43 gcc45 g95 {
51    configure.args-append --enable-fortran2003
52    configure.args-delete --disable-fortran2003
53    depends_lib-append port:gcc44
54    configure.fc ${prefix}/bin/gfortran-mp-4.4
55}
56variant gcc45 description {build with gfortran from gcc45} conflicts gcc43 gcc44 g95 {
57    configure.args-append --enable-fortran2003
58    configure.args-delete --disable-fortran2003
59    depends_lib-append port:gcc45
60    configure.fc ${prefix}/bin/gfortran-mp-4.5
61}
62variant g95 description {build with g95} conflicts gcc43 gcc44 gcc45 {
63    configure.args-append --enable-fortran2003
64    configure.args-delete --disable-fortran2003
65    depends_lib-append port:g95
66    configure.fc ${prefix}/bin/g95
67}
68default_variants    +python