the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: gildas
Version: 200807
Revision: 2
Distribution: 10.4, 10.5
Description: Radioastronomy data analysis software
License: OSI-Approved
Maintainer: Sebastien Maret
Source: http://www.iram.fr/~gildas/dist/gildas-src-jul08a.tar.gz
Source-MD5: 8b9435f07a5cbd95b21325c3ff73c663
Depends: <<
fftw3-shlibs, gcc43-shlibs, libpng3-shlibs, openmotif3-shlibs, x11
<<
BuildDepends: <<
cfitsio, fftw3, gcc43, libpng3, openmotif3, sed, x11-dev
<<
Patch: gildas.patch
CompileScript: <<
true
<<
InstallScript: <<
#!/bin/bash -ev
source admin/gildas-env.sh -s %p/lib:%p/include -c gfortran -n python
export gagexedir=%i/lib/gildas
install -d %i/bin %i/lib
make install
if [ `uname -p` = "powerpc" ]; then
export arch='powerpc'
else
export arch='pc'
fi
mv %i/lib/gildas/${arch}-darwin-gfortran-no_python %i/lib/gildas/darwin-gfortran-no_python
cd %i/lib/gildas/darwin-gfortran-no_python/bin/
for file in * ; do
ln -s %p/lib/gildas/darwin-gfortran-no_python/bin/${file} %i/bin/${file}
done
cd %i/lib/gildas/darwin-gfortran-no_python/libexec/
for file in * ; do
ln -s %p/lib/gildas/darwin-gfortran-no_python/libexec/${file} %i/bin/${file}
done
<<
PostInstScript: echo "\n*** Installation completed. Please open a new term to use gildas ***"
RuntimeVars: <<
GAG_ROOT_DIR: %p/lib/gildas
GAG_EXEC_SYSTEM: darwin-gfortran-no_python
GAG_PATH: %p/lib/gildas/etc
<<
DescDetail: <<
Gildas, the "Grenoble Image and Line Data Analysis Software", is a
collection of software oriented towards 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).
<<
DescPort: <<
Link against internal LAPACK and BLAS libraries, instead of the
Accelerate framework or ATLAS. Python support is disabled for now
because it does not work.
<<
Homepage: http://www.iram.fr/IRAMFR/GILDAS/gildas.html
diff -ruN --exclude='*~' gildas-src-jul08a/admin/Makefile gildas-src-jul08a.patched/admin/Makefile
--- gildas-src-jul08a/admin/Makefile 2007-12-12 11:23:47.000000000 +0100
+++ gildas-src-jul08a.patched/admin/Makefile 2008-07-09 16:41:41.000000000 +0200
@@ -33,31 +33,31 @@
integ: integ-message
integ-message:
- @(echo)
- @(echo "Compilation succeeded! Bye.")
- @(echo)
+# @(echo)
+# @(echo "Compilation succeeded! Bye.")
+# @(echo)
default-install: install-message
install-message:
- @(echo)
- @(echo "***************************************************************************")
- @(echo "Installation succeeded!")
- @(echo)
- @(echo "bash users: You should add in your ~/.bash_profile the following lines")
- @(echo " export GAG_ROOT_DIR=$(gagexedir)")
- @(echo " export GAG_EXEC_SYSTEM=$(GAG_EXEC_SYSTEM)")
- @(echo ' source $$GAG_ROOT_DIR/etc/bash_profile')
- @(echo)
- @(echo "csh users: You should add in your ~/.login the following lines")
- @(echo " setenv GAG_ROOT_DIR $(gagexedir)")
- @(echo " setenv GAG_EXEC_SYSTEM $(GAG_EXEC_SYSTEM)")
- @(echo ' source $$GAG_ROOT_DIR/etc/login')
- @(echo)
- @(echo "You should then exit this xterm and open a new one to reset your path.")
- @(echo "GILDAS should be ready for use (e.g. type greg @ gag_demo:demo).")
- @(echo "Bye.")
- @(echo "***************************************************************************")
- @(echo)
+# @(echo)
+# @(echo "***************************************************************************")
+# @(echo "Installation succeeded!")
+# @(echo)
+# @(echo "bash users: You should add in your ~/.bash_profile the following lines")
+# @(echo " export GAG_ROOT_DIR=$(gagexedir)")
+# @(echo " export GAG_EXEC_SYSTEM=$(GAG_EXEC_SYSTEM)")
+# @(echo ' source $$GAG_ROOT_DIR/etc/bash_profile')
+# @(echo)
+# @(echo "csh users: You should add in your ~/.login the following lines")
+# @(echo " setenv GAG_ROOT_DIR $(gagexedir)")
+# @(echo " setenv GAG_EXEC_SYSTEM $(GAG_EXEC_SYSTEM)")
+# @(echo ' source $$GAG_ROOT_DIR/etc/login')
+# @(echo)
+# @(echo "You should then exit this xterm and open a new one to reset your path.")
+# @(echo "GILDAS should be ready for use (e.g. type greg @ gag_demo:demo).")
+# @(echo "Bye.")
+# @(echo "***************************************************************************")
+# @(echo)
###########################################################################
diff -ruN --exclude='*~' gildas-src-jul08a/admin/Makefile.def gildas-src-jul08a.patched/admin/Makefile.def
--- gildas-src-jul08a/admin/Makefile.def 2008-06-25 16:40:19.000000000 +0200
+++ gildas-src-jul08a.patched/admin/Makefile.def 2008-07-09 16:41:41.000000000 +0200
@@ -542,7 +542,7 @@
###########################################################################
# Kernel libraries
-LEGACY_LIBS = -lslatec -llapack -lblas
+LEGACY_LIBS = $(prefix)/$(GAG_EXEC_SYSTEM)/lib/libslatec.a $(prefix)/$(GAG_EXEC_SYSTEM)/lib/liblapack.a $(prefix)/$(GAG_EXEC_SYSTEM)/lib/libblas.a
GAG_LIBS = -lggui -lgcore -lgwcs -lgio -lgsys -lginc
GUI_LIBS =
diff -ruN --exclude='*~' gildas-src-jul08a/admin/define-system.sh gildas-src-jul08a.patched/admin/define-system.sh
--- gildas-src-jul08a/admin/define-system.sh 2008-06-17 16:28:12.000000000 +0200
+++ gildas-src-jul08a.patched/admin/define-system.sh 2008-07-09 16:54:07.000000000 +0200
@@ -211,11 +211,11 @@
DEFAULT_COMPILER=g95
fi
elif [ `uname -p` = "i386" ]; then
- if [ `sysctl -n hw.optional.x86_64 2> /dev/null` = 1 ]; then
- GAG_MACHINE=x86_64
- else
+# if [ `sysctl -n hw.optional.x86_64 2> /dev/null` = 1 ]; then
+# GAG_MACHINE=x86_64
+# else
GAG_MACHINE=pc
- fi
+# fi
if which ifort > /dev/null 2>&1; then
DEFAULT_COMPILER=ifort
else
@@ -264,14 +264,14 @@
defsys_message "gfortran version $GFORTRAN_VERSION is experimental."
defsys_message "Gildas may or may not compile, depending on the release date of your gfortran"
defsys_message "Use at your own risk. We advise you to use g95 instead."
- defsys_message "Type
- read
+ #defsys_message "Type
+ #read
else
defsys_message "We do not have (yet) validated gfortran version $GFORTRAN_VERSION"
defsys_message "You may encounter explicit or even silent (undetectable) errors."
defsys_message "Use at your own risk. We advise you to use g95 instead."
- defsys_message "Type
- read
+ #defsys_message "Type
+ #read
fi
fi
#
diff -ruN --exclude='*~' gildas-src-jul08a/admin/gildas-env.sh gildas-src-jul08a.patched/admin/gildas-env.sh
--- gildas-src-jul08a/admin/gildas-env.sh 2008-06-16 15:13:18.000000000 +0200
+++ gildas-src-jul08a.patched/admin/gildas-env.sh 2008-07-09 16:41:41.000000000 +0200
@@ -442,11 +442,11 @@
INC_PATH=`echo $LIB_PATH | sed -e "s&lib&include&g"`
#
# Library locations under 64 bits linux
- if [ "$GAG_MACHINE" = "x86_64" ]; then
- if [ "$GAG_COMPILER" != "ifort_32" ]; then
- LIB_PATH=`echo $LIB_PATH | sed -e "s&lib&lib64&g"`
- fi
- fi
+# if [ "$GAG_MACHINE" = "x86_64" ]; then
+# if [ "$GAG_COMPILER" != "ifort_32" ]; then
+# LIB_PATH=`echo $LIB_PATH | sed -e "s&lib&lib64&g"`
+# fi
+# fi
#
OLDIFS=$IFS
IFS=:
@@ -494,14 +494,14 @@
NEWATM_PRESENT=yes
NEWATM_LIB_DIR=$DIR
fi
- if file_present "liblapack." "${DIR}"; then
- LAPACK_PRESENT=yes
- LAPACK_LIB_DIR=$DIR
- fi
- if file_present "libblas." "${DIR}"; then
- BLAS_PRESENT=yes
- BLAS_LIB_DIR=$DIR
- fi
+ #if file_present "liblapack." "${DIR}"; then
+ # LAPACK_PRESENT=yes
+ # LAPACK_LIB_DIR=$DIR
+ #fi
+ #if file_present "libblas." "${DIR}"; then
+ # BLAS_PRESENT=yes
+ # BLAS_LIB_DIR=$DIR
+ #fi
if file_present "libslatec." "${DIR}"; then
SLATEC_PRESENT=yes
SLATEC_LIB_DIR=$DIR
Package: gildas
Version: 200808
Revision: 1
Distribution: 10.4, 10.5
Description: Radioastronomy data analysis software
License: OSI-Approved
Maintainer: Sebastien Maret
Source: http://www.iram.fr/~gildas/dist/gildas-src-aug08a.tar.gz
Source-MD5: 10f04d85b913e6eb75fe4c2e0ee059c7
Depends: <<
fftw3-shlibs, gcc43-shlibs, libpng3-shlibs, openmotif3-shlibs, x11
<<
BuildDepends: <<
cfitsio, fftw3, gcc43, libpng3, openmotif3, sed, x11-dev
<<
Patch: gildas.patch
CompileScript: <<
true
<<
InstallScript: <<
#!/bin/bash -ev
source admin/gildas-env.sh -s %p/lib:%p/include -c gfortran -n python
export gagexedir=%i/lib/gildas
install -d %i/bin %i/lib
make install
if [ `uname -p` = "powerpc" ]; then
export arch='powerpc'
else
export arch='pc'
fi
mv %i/lib/gildas/${arch}-darwin-gfortran-no_python %i/lib/gildas/darwin-gfortran-no_python
cd %i/lib/gildas/darwin-gfortran-no_python/bin/
for file in * ; do
ln -s %p/lib/gildas/darwin-gfortran-no_python/bin/${file} %i/bin/${file}
done
cd %i/lib/gildas/darwin-gfortran-no_python/libexec/
for file in * ; do
ln -s %p/lib/gildas/darwin-gfortran-no_python/libexec/${file} %i/bin/${file}
done
<<
PostInstScript: echo "\n*** Installation completed. Please open a new term to use gildas ***"
RuntimeVars: <<
GAG_ROOT_DIR: %p/lib/gildas
GAG_EXEC_SYSTEM: darwin-gfortran-no_python
GAG_PATH: %p/lib/gildas/etc
<<
DescDetail: <<
Gildas, the "Grenoble Image and Line Data Analysis Software", is a
collection of software oriented towards 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).
<<
DescPort: <<
Link against internal LAPACK and BLAS libraries, instead of the
Accelerate framework or ATLAS. Python support is disabled for now
because it does not work.
<<
Homepage: http://www.iram.fr/IRAMFR/GILDAS/gildas.html
diff -ruN --exclude='*~' gildas-src-jul08a/admin/Makefile gildas-src-jul08a.patched/admin/Makefile
--- gildas-src-jul08a/admin/Makefile 2007-12-12 11:23:47.000000000 +0100
+++ gildas-src-jul08a.patched/admin/Makefile 2008-07-09 16:41:41.000000000 +0200
@@ -33,31 +33,31 @@
integ: integ-message
integ-message:
- @(echo)
- @(echo "Compilation succeeded! Bye.")
- @(echo)
+# @(echo)
+# @(echo "Compilation succeeded! Bye.")
+# @(echo)
default-install: install-message
install-message:
- @(echo)
- @(echo "***************************************************************************")
- @(echo "Installation succeeded!")
- @(echo)
- @(echo "bash users: You should add in your ~/.bash_profile the following lines")
- @(echo " export GAG_ROOT_DIR=$(gagexedir)")
- @(echo " export GAG_EXEC_SYSTEM=$(GAG_EXEC_SYSTEM)")
- @(echo ' source $$GAG_ROOT_DIR/etc/bash_profile')
- @(echo)
- @(echo "csh users: You should add in your ~/.login the following lines")
- @(echo " setenv GAG_ROOT_DIR $(gagexedir)")
- @(echo " setenv GAG_EXEC_SYSTEM $(GAG_EXEC_SYSTEM)")
- @(echo ' source $$GAG_ROOT_DIR/etc/login')
- @(echo)
- @(echo "You should then exit this xterm and open a new one to reset your path.")
- @(echo "GILDAS should be ready for use (e.g. type greg @ gag_demo:demo).")
- @(echo "Bye.")
- @(echo "***************************************************************************")
- @(echo)
+# @(echo)
+# @(echo "***************************************************************************")
+# @(echo "Installation succeeded!")
+# @(echo)
+# @(echo "bash users: You should add in your ~/.bash_profile the following lines")
+# @(echo " export GAG_ROOT_DIR=$(gagexedir)")
+# @(echo " export GAG_EXEC_SYSTEM=$(GAG_EXEC_SYSTEM)")
+# @(echo ' source $$GAG_ROOT_DIR/etc/bash_profile')
+# @(echo)
+# @(echo "csh users: You should add in your ~/.login the following lines")
+# @(echo " setenv GAG_ROOT_DIR $(gagexedir)")
+# @(echo " setenv GAG_EXEC_SYSTEM $(GAG_EXEC_SYSTEM)")
+# @(echo ' source $$GAG_ROOT_DIR/etc/login')
+# @(echo)
+# @(echo "You should then exit this xterm and open a new one to reset your path.")
+# @(echo "GILDAS should be ready for use (e.g. type greg @ gag_demo:demo).")
+# @(echo "Bye.")
+# @(echo "***************************************************************************")
+# @(echo)
###########################################################################
diff -ruN --exclude='*~' gildas-src-jul08a/admin/Makefile.def gildas-src-jul08a.patched/admin/Makefile.def
--- gildas-src-jul08a/admin/Makefile.def 2008-06-25 16:40:19.000000000 +0200
+++ gildas-src-jul08a.patched/admin/Makefile.def 2008-07-09 16:41:41.000000000 +0200
@@ -542,7 +542,7 @@
###########################################################################
# Kernel libraries
-LEGACY_LIBS = -lslatec -llapack -lblas
+LEGACY_LIBS = $(prefix)/$(GAG_EXEC_SYSTEM)/lib/libslatec.a $(prefix)/$(GAG_EXEC_SYSTEM)/lib/liblapack.a $(prefix)/$(GAG_EXEC_SYSTEM)/lib/libblas.a
GAG_LIBS = -lggui -lgcore -lgwcs -lgio -lgsys -lginc
GUI_LIBS =
diff -ruN --exclude='*~' gildas-src-jul08a/admin/define-system.sh gildas-src-jul08a.patched/admin/define-system.sh
--- gildas-src-jul08a/admin/define-system.sh 2008-06-17 16:28:12.000000000 +0200
+++ gildas-src-jul08a.patched/admin/define-system.sh 2008-07-09 16:54:07.000000000 +0200
@@ -211,11 +211,11 @@
DEFAULT_COMPILER=g95
fi
elif [ `uname -p` = "i386" ]; then
- if [ `sysctl -n hw.optional.x86_64 2> /dev/null` = 1 ]; then
- GAG_MACHINE=x86_64
- else
+# if [ `sysctl -n hw.optional.x86_64 2> /dev/null` = 1 ]; then
+# GAG_MACHINE=x86_64
+# else
GAG_MACHINE=pc
- fi
+# fi
if which ifort > /dev/null 2>&1; then
DEFAULT_COMPILER=ifort
else
@@ -264,14 +264,14 @@
defsys_message "gfortran version $GFORTRAN_VERSION is experimental."
defsys_message "Gildas may or may not compile, depending on the release date of your gfortran"
defsys_message "Use at your own risk. We advise you to use g95 instead."
- defsys_message "Type
- read
+ #defsys_message "Type
+ #read
else
defsys_message "We do not have (yet) validated gfortran version $GFORTRAN_VERSION"
defsys_message "You may encounter explicit or even silent (undetectable) errors."
defsys_message "Use at your own risk. We advise you to use g95 instead."
- defsys_message "Type
- read
+ #defsys_message "Type
+ #read
fi
fi
#
diff -ruN --exclude='*~' gildas-src-jul08a/admin/gildas-env.sh gildas-src-jul08a.patched/admin/gildas-env.sh
--- gildas-src-jul08a/admin/gildas-env.sh 2008-06-16 15:13:18.000000000 +0200
+++ gildas-src-jul08a.patched/admin/gildas-env.sh 2008-07-09 16:41:41.000000000 +0200
@@ -442,11 +442,11 @@
INC_PATH=`echo $LIB_PATH | sed -e "s&lib&include&g"`
#
# Library locations under 64 bits linux
- if [ "$GAG_MACHINE" = "x86_64" ]; then
- if [ "$GAG_COMPILER" != "ifort_32" ]; then
- LIB_PATH=`echo $LIB_PATH | sed -e "s&lib&lib64&g"`
- fi
- fi
+# if [ "$GAG_MACHINE" = "x86_64" ]; then
+# if [ "$GAG_COMPILER" != "ifort_32" ]; then
+# LIB_PATH=`echo $LIB_PATH | sed -e "s&lib&lib64&g"`
+# fi
+# fi
#
OLDIFS=$IFS
IFS=:
@@ -494,14 +494,14 @@
NEWATM_PRESENT=yes
NEWATM_LIB_DIR=$DIR
fi
- if file_present "liblapack." "${DIR}"; then
- LAPACK_PRESENT=yes
- LAPACK_LIB_DIR=$DIR
- fi
- if file_present "libblas." "${DIR}"; then
- BLAS_PRESENT=yes
- BLAS_LIB_DIR=$DIR
- fi
+ #if file_present "liblapack." "${DIR}"; then
+ # LAPACK_PRESENT=yes
+ # LAPACK_LIB_DIR=$DIR
+ #fi
+ #if file_present "libblas." "${DIR}"; then
+ # BLAS_PRESENT=yes
+ # BLAS_LIB_DIR=$DIR
+ #fi
if file_present "libslatec." "${DIR}"; then
SLATEC_PRESENT=yes
SLATEC_LIB_DIR=$DIR