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 | |
---|
4 | set perl_vendor_lib [ exec sh -c "eval \"\`perl -V:installvendorlib\`\" ; echo \$installvendorlib" ] |
---|
5 | |
---|
6 | if {$build_arch == "x86_64" || $build_arch == "ppc64"} { |
---|
7 | set flavor gcc64pthr |
---|
8 | set enable64 yes |
---|
9 | } else { |
---|
10 | set flavor gcc32pthr |
---|
11 | set enable64 no |
---|
12 | } |
---|
13 | |
---|
14 | PortSystem 1.0 |
---|
15 | |
---|
16 | name globus-core |
---|
17 | set _name [ string map {"-" "_"} $name ] |
---|
18 | version 8.9 |
---|
19 | set globus_version 5.2.4 |
---|
20 | set globus_branch [join [lrange [split ${globus_version} .] 0 1] .] |
---|
21 | revision 0 |
---|
22 | platforms darwin |
---|
23 | categories devel |
---|
24 | license Apache-2 |
---|
25 | maintainers nikhef.nl:dennisvd openmaintainer |
---|
26 | homepage http://www.globus.org/ |
---|
27 | |
---|
28 | description Globus Toolkit - Globus Core |
---|
29 | long_description The Globus Toolkit is an open source software \ |
---|
30 | toolkit used for building Grid systems and \ |
---|
31 | applications. It is being developed by the \ |
---|
32 | Globus Alliance and many others all over the \ |
---|
33 | world. A growing number of projects and \ |
---|
34 | companies are using the Globus Toolkit to \ |
---|
35 | unlock the potential of grids for their \ |
---|
36 | cause. The ${name} package contains: \ |
---|
37 | Globus Core |
---|
38 | |
---|
39 | master_sites http://www.globus.org/ftppub/gt5/${globus_branch}/${globus_version}/packages/src/ |
---|
40 | |
---|
41 | distname ${_name}-${version} |
---|
42 | |
---|
43 | checksums sha256 75d58415fdcf344ef3c6a4c1214b29a83035bfc014f43b980607b0929998c9c0 \ |
---|
44 | rmp160 2ca5cdaa7e77c4467409a01cdb0d379bd15a5c7f |
---|
45 | |
---|
46 | patchfiles globus-core-automake-obsolete-macro.patch |
---|
47 | |
---|
48 | patch.pre_args -p1 |
---|
49 | |
---|
50 | depends_run port:p5-xml-dom \ |
---|
51 | port:p5-xml-parser |
---|
52 | |
---|
53 | depends_build port:grid-packaging-tools \ |
---|
54 | port:p5-xml-dom \ |
---|
55 | port:p5-xml-parser \ |
---|
56 | port:libtool \ |
---|
57 | port:autoconf \ |
---|
58 | port:automake |
---|
59 | |
---|
60 | configure.env-append GPT_LOCATION=${prefix} \ |
---|
61 | GLOBUS_LOCATION=${prefix} \ |
---|
62 | CPPFLAGS="-I${prefix}/include/globus" |
---|
63 | |
---|
64 | configure.post_args --includedir=${prefix}/include/globus \ |
---|
65 | --libexecdir='\${datadir}/globus' \ |
---|
66 | --with-threads=pthreads \ |
---|
67 | --with-flavor=${flavor} \ |
---|
68 | --enable-64bit=${enable64} \ |
---|
69 | --with-setupdir='\${datadir}/globus/setup' \ |
---|
70 | --with-testdir='\${datadir}/globus/test' \ |
---|
71 | --with-flavorincludedir='\${libdir}/globus/include' \ |
---|
72 | --with-perlmoduledir=${perl_vendor_lib} \ |
---|
73 | --with-doxygendir='\${datadir}/globus/doxygen' \ |
---|
74 | --with-docdir='\${datadir}/doc/${name}' |
---|
75 | |
---|
76 | build.env-append GPT_LOCATION=${prefix} \ |
---|
77 | GLOBUS_LOCATION=${prefix} |
---|
78 | |
---|
79 | pre-configure { |
---|
80 | file delete -force ${worksrcpath}/autom4te.cache |
---|
81 | reinplace "s/libtoolize/glibtoolize/g" ${worksrcpath}/bootstrap |
---|
82 | system "cd ${worksrcpath} && \ |
---|
83 | GLOBUS_LOCATION=${prefix} GPT_LOCATION=${prefix} ./bootstrap" |
---|
84 | } |
---|
85 | |
---|
86 | post-destroot { |
---|
87 | # These scripts are intended to be sourced, not executed |
---|
88 | system "chmod 644 ${destroot}${prefix}/share/globus/globus-build-env-*.sh" |
---|
89 | } |
---|
90 | |
---|
91 | livecheck.type regex |
---|
92 | livecheck.version ${globus_version} |
---|
93 | livecheck.url http://www.globus.org/toolkit/downloads/latest-stable/ |
---|
94 | livecheck.regex {Globus Toolkit (\d+(?:\.\d+)*) Download} |
---|