Ticket #42545: Portfile

File Portfile, 7.7 KB (added by Tom.Schoonjans@…, 11 years ago)

diff for xraylib 3.0.0

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
3PortSystem          1.0
4PortGroup           github 1.0
5
6github.setup        tschoonj xraylib 3.0.0 xraylib-
7revision            0
8categories          science
9platforms           darwin
10license             BSD
11maintainers         me.com:Tom.Schoonjans
12
13description         A library for X-ray matter interaction cross sections
14
15long_description    ${name} provides an API with over 50 functions designed \
16                    to provide convenient access to databases with cross \
17                    sections (photoelectric, Compton, Rayleigh, XRF etc.), \
18                    line energies, edge energies, fluorescence yields, \
19                    scattering factors, refractive indices, Compton profiles \
20                    etc. Bindings exist for Perl, Python, Java, Fortran, IDL, \
21                    Lua, Ruby, PHP and .NET.
22
23master_sites        http://lvserver.ugent.be/xraylib/ \
24                    http://xraylib.s3.amazonaws.com/
25
26checksums           rmd160 6c8c82c0afe3664adcd044a4371229a76bad5bf9 \
27                    sha256 0cc506e15f2f3563384dcb97cb4f9399b13d90f074b54c8d25cd59b7804d8636
28
29
30configure.args      --disable-idl \
31                    --disable-fortran2003 \
32                    --disable-perl \
33                    --disable-python \
34                    --disable-java \
35                    --disable-lua \
36                    --disable-ruby
37
38# to be fixed in later versions of xraylib...
39use_parallel_build  no
40configure.ccache    no
41
42
43variant perl510 description {Perl5.10 bindings} conflicts perl512 perl514 perl516 perl518 { 
44    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.10
45    configure.args-delete --disable-perl
46    depends_build-append port:swig-perl
47    depends_lib-append port:perl5.10
48}
49
50variant perl512 description {Perl5.12 bindings} conflicts perl510 perl514 perl516 perl518 { 
51    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.12
52    configure.args-delete --disable-perl
53    depends_build-append port:swig-perl
54    depends_lib-append port:perl5.12
55}
56
57variant perl514 description {Perl5.14 bindings} conflicts perl510 perl512 perl516 perl518 { 
58    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.14
59    configure.args-delete --disable-perl
60    depends_build-append port:swig-perl
61    depends_lib-append port:perl5.14
62}
63
64variant perl516 description {Perl5.16 bindings} conflicts perl510 perl512 perl514 perl518 { 
65    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.16
66    configure.args-delete --disable-perl
67    depends_build-append port:swig-perl
68    depends_lib-append port:perl5.16
69}
70
71variant perl518 description {Perl5.18 bindings} conflicts perl510 perl512 perl514 perl516 { 
72    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.18
73    configure.args-delete --disable-perl
74    depends_build-append port:swig-perl
75    depends_lib-append port:perl5.18
76}
77
78variant python26 description {Python2.6 bindings} conflicts python27 python31 python32 python33 {
79    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.6
80    configure.args-delete --disable-python
81    depends_build-append port:swig-python
82    depends_lib-append port:python26
83}
84
85variant python27 description {Python2.7 bindings} conflicts python26 python31 python32 python33 {
86    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.7
87    configure.args-delete --disable-python
88    depends_build-append port:swig-python
89    depends_lib-append port:python27
90}
91
92variant python31 description {Python3.1 bindings} conflicts python27 python26 python32 python33 {
93    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.1
94    configure.args-delete --disable-python
95    depends_build-append port:swig-python
96    depends_lib-append port:python31
97}
98
99variant python32 description {Python3.2 bindings} conflicts python27 python31 python26 python33 {
100    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.2
101    configure.args-delete --disable-python
102    depends_build-append port:swig-python
103    depends_lib-append port:python32
104}
105
106variant python33 description {Python3.3 bindings} conflicts python27 python31 python26 python32 {
107    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.3
108    configure.args-delete --disable-python
109    depends_build-append port:swig-python
110    depends_lib-append port:python32
111}
112
113variant ruby18 description {Ruby1.8.7 bindings} conflicts ruby19 ruby20 ruby21 {
114    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby1.8
115    configure.args-delete --disable-ruby
116    depends_build-append port:swig-ruby
117    depends_lib-append port:ruby
118}
119
120variant ruby19 description {Ruby1.9 bindings} conflicts ruby18 ruby20 ruby21 {
121    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby1.9
122    configure.args-delete --disable-ruby
123    depends_build-append port:swig-ruby
124    depends_lib-append port:ruby19
125}
126
127variant ruby20 description {Ruby2.0 bindings} conflicts ruby18 ruby19 ruby21 {
128    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby2.0
129    configure.args-delete --disable-ruby
130    depends_build-append port:swig-ruby
131    depends_lib-append port:ruby20
132}
133
134variant ruby21 description {Ruby2.1 bindings} conflicts ruby18 ruby19 ruby20 {
135    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby2.1
136    configure.args-delete --disable-ruby
137    depends_build-append port:swig-ruby
138    depends_lib-append port:ruby21
139}
140
141variant java description {Java bindings} {
142    configure.args-append --enable-java
143    configure.args-delete --disable-java
144    depends_build-append port:swig-java
145}
146
147variant lua description {Lua bindings} {
148    configure.args-append --enable-lua
149    configure.args-delete --disable-lua
150    depends_build-append port:swig-lua
151    depends_lib-append port:lua
152}
153
154variant gcc44 description {build with gfortran from gcc44} conflicts gcc45 gcc46 gcc47 gcc48 {
155    configure.args-append --enable-fortran2003
156    configure.args-delete --disable-fortran2003
157    depends_lib-append port:gcc44
158    configure.fc ${prefix}/bin/gfortran-mp-4.4
159}
160
161variant gcc45 description {build with gfortran from gcc45} conflicts gcc44 gcc46 gcc47 gcc48 {
162    configure.args-append --enable-fortran2003
163    configure.args-delete --disable-fortran2003
164    depends_lib-append port:gcc45
165    configure.fc ${prefix}/bin/gfortran-mp-4.5
166}
167
168variant gcc46 description {build with gfortran from gcc46} conflicts gcc44 gcc45 gcc47 gcc48 {
169    configure.args-append --enable-fortran2003
170    configure.args-delete --disable-fortran2003
171    depends_lib-append port:gcc46
172    configure.fc ${prefix}/bin/gfortran-mp-4.6
173}
174
175variant gcc47 description {build with gfortran from gcc47} conflicts gcc44 gcc45 gcc46 gcc48 {
176    configure.args-append --enable-fortran2003
177    configure.args-delete --disable-fortran2003
178    depends_lib-append port:gcc47
179    configure.fc ${prefix}/bin/gfortran-mp-4.7
180}
181
182variant gcc48 description {build with gfortran from gcc48} conflicts gcc44 gcc45 gcc46 gcc47 {
183    configure.args-append --enable-fortran2003
184    configure.args-delete --disable-fortran2003
185    depends_lib-append port:gcc48
186    configure.fc ${prefix}/bin/gfortran-mp-4.8
187}
188
189if {![variant_isset python26] && ![variant_isset python27] && ![variant_isset python31] && ![variant_isset python32] && ![variant_isset python33]} {
190    default_variants    +python27
191}
192