system -W ${worksrcpath} "source admin/gildas-env.sh -c ${configure.fc} ${my_build_opts} -s ${prefix}/include:${prefix}/lib:/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/ && export GAG_SLDFLAGS='-shared -o ${prefix}/lib/gildas/x86_64-darwin-gfortran/lib/\$(notdir \$@) -install_name ${prefix}/lib/gildas/x86_64-darwin-gfortran/lib/\$(notdir \$@)' && export DYLD_LIBRARY_PATH=${worksrcpath}/integ/x86_64-darwin-gfortran/lib && export GAG_ADDONS=yes && make -w install"
# -*- 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
PortGroup active_variants 1.1
set my_version [string tolower [clock format [clock scan 2000-[string range ${version} 4 5]-10] -format %b]][string range ${version} 2 3][string range ${version} 6 end]
maintainers {bardeau @bardeau}
description Radioastronomy data analysis software
long_description GILDAS is a collection of state-of-the-art softwares \
oriented toward (sub-)millimeter radioastronomical \
applications (either single-dish or interferometer). \
It is daily used to reduce all data acquired with the \
IRAM 30M telescope and Plateau de Bure Interferometer \
PDBI (except VLBI observations). GILDAS is easily \
extensible. GILDAS is written in Fortran-90, with a \
few parts in C/C++ (mainly keyboard interaction, \
homepage http://www.iram.fr/IRAMFR/GILDAS/gildas.html
master_sites http://www.iram.fr/~gildas/dist/ \
http://www.iram.fr/~gildas/dist/archive/gildas/
distname ${name}-src-${my_version}
checksums rmd160 e3af7407cb69de975bfdf144661b59a1a9c1406d \
sha256 342691a9ef1bf45941d86f21d14305cbfc962104fef652ec1f5ac7b797346f92 \
patchfiles patch-admin-Makefile.def.diff \
patch-admin-Makefile.python.diff \
patch-admin-gildas-env.sh.diff \
patch-admin-define-system.sh.diff
depends_build port:cfitsio \
variant openmp description {Add OpenMP support} {set my_build_opts "-o openmp"}
# need x11 and cannot be used with quartz; see ticket #42886
require_active_variants gtk2 x11 quartz
# need the fortran interface; see ticket #50543
compilers.enforce_some_fortran cfitsio
compilers.setup -g95 -gcc44 -gcc45 -gcc46 require_fortran
configure.python ${prefix}/bin/python2.7