Commit 4aa4ff34 authored by Ole Streicher's avatar Ole Streicher

New upstream version 0.9.9

parent 2f954888
This diff is collapsed.
Project founder:
Marc Schellens <m_schellens@users.sourceforge.net>
Marc Schellens (SF: m_schellens)
Key maintainers:
Contributors:
Alain Coulais (github: alaingdl)
Gilles Duvert (github: GillesDuvert)
Joel Gales <jomoga@users.sourceforge.net>
Contributors (in many different ways: from incorporation of tiny code snippets,
through maintanance, packaging to major code contributions; in alphabetical order):
Christopher Lee <c_lee@users.sourceforge.net>
Gaurav Khanna <khanna@users.sourceforge.net>
Peter Messmer <messmer@users.sourceforge.net>
Pierre Chanial <pchanial at users.sourceforge.net>
Justin Bronn <jbronn@users.sourceforge.net>
Médéric Boquien <medericboquien at users.sourceforge.net>
Alain Coulais <alaingdl at users.sourceforge.net> (tests, bugs)
Sylwester Arabas <slayoo@users.sourceforge.net>
Gilles Duvert <gilles-duvert@users.sourceforge.net>
... see doc/udg/chapters/credits.tex for a more complete list
Juan A. Añel
Sylwester Arabas (github: slayoo)
Deepak Bandyopadhyay
Axel Beckert
Médéric Boquien (SF: medericboquien)
Justin Bronn (SF: jbronn)
Pierre Chanial (SF: pchanial)
Gabor Cseh
Markus Dittrich
Takeshi Enomoto
Sébastien Fabbro
Sylvain Flinois
Orlando Garcia Feal
Christoph Fuchs
Joel Gales (SF: jomoga)
Nicolas Galmiche
Sergio Gelato
Greg Huey
Grgory Jung (github: maynardGK),
Lutz Kettner
Gaurav Khanna (SF: khanna)
Jos de Kloe
Benjamin Laurent
Justin Lecher
Christopher Lee (SF: c_lee)
Maxime Lenoir
Gregory Marchal
Sébastien Maret
Craig B. Markwardt
Thibaut Mermet
Peter Messmer (SF: messmer)
Léa Noreskal
Jeong Bin Park
Mathieu Pinter
Orion Poplawski
Rene Preusker
Paul Ricchiazzi
Amar Si Lounis
Marius Schamschula
Richard Schwartz
Gürkan Sengün
Danny Smith
J.D. Smith
Remi A. Solås
Ole Streicher
Thierry Thomas
Mateusz Turcza
Paul Wessel
Bob Withers
Joanna Woo
H Xu
This diff is collapsed.
# FindGeoTIFF
# -----------
# Find the GeoTIFF library (libgeotiff)
find_path(GEOTIFF_INCLUDE_DIR geotiff.h PATH_SUFFIXES geotiff libgeotiff)
find_library(GEOTIFF_LIBRARY NAMES geotiff libgeotiff)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GeoTIFF DEFAULT_MSG GEOTIFF_INCLUDE_DIR GEOTIFF_LIBRARY)
if(GEOTIFF_FOUND)
set(GEOTIFF_LIBRARIES ${GEOTIFF_LIBRARY})
set(GEOTIFF_INCLUDE_DIRS ${GEOTIFF_INCLUDE_DIR})
endif(GEOTIFF_FOUND)
mark_as_advanced(
GEOTIFF_INCLUDE_DIR
GEOTIFF_LIBRARY
GEOTIFF_LIBRARIES
GEOTIFF_INCLUDE_DIRS
)
......@@ -9,7 +9,7 @@
#
find_library(GRIB_LIBRARIES NAMES grib_api)
find_library(GRIB_LIBRARIES NAMES eccodes grib_api)
find_path(GRIB_INCLUDE_DIR NAMES grib_api.h)
include(FindPackageHandleStandardArgs)
# since there's no grib_api.pc let's check if this installation of grib required jasper and jpeg
......
include(FindPackageHandleStandardArgs)
find_path(RPC_INCLUDE_DIR NAMES "rpc/rpc.h" PATH_SUFFIXES "tirpc")
if(RPC_INCLUDE_DIR MATCHES "/tirpc/?$")
find_library(RPC_LIBRARY NAMES tirpc)
set(RPC_LIBRARIES ${RPC_LIBRARY})
find_package_handle_standard_args(RPC DEFAULT_MSG RPC_INCLUDE_DIR RPC_LIBRARY RPC_LIBRARIES)
else()
find_package_handle_standard_args(RPC DEFAULT_MSG RPC_INCLUDE_DIR)
endif()
mark_as_advanced(RPC_INCLUDE_DIR RPC_LIBRARY RPC_LIBRARIES)
find_path(LIBPSPKG libps.pc PATH_SUFFIXES lib lib/pkgconfig lib64/pkgconfig)
find_path(PSLIBPKG libps.pc PATH_SUFFIXES lib lib/pkgconfig lib64/pkgconfig)
include(FindPackageHandleStandardArgs)
if(LIBPSPKG)
set(ENV{PKG_CONFIG_PATH} ${LIBPSPKG}) # pkg search path
if(PSLIBPKG)
set(ENV{PKG_CONFIG_PATH} ${PSLIBPKG}) # pkg search path
include(FindPkgConfig)
pkg_check_modules(LIBPS libps)
if(LIBPS_FOUND)
find_package_handle_standard_args(LIBPS DEFAULT_MSG LIBPS_LIBRARIES)
endif(LIBPS_FOUND)
else(LIBPSPKG) # no libps.pc file
find_library(LIBPS_LIBRARIES NAMES libps pslib)
find_path(LIBPS_INCLUDE_DIRS NAMES libps/pslib.h)
find_package_handle_standard_args(LIBPS DEFAULT_MSG LIBPS_LIBRARIES)
endif(LIBPSPKG)
pkg_search_module(PSLIB libps)
if(PSLIB_FOUND)
set(PSLIB_INCLUDE_DIR ${PSLIB_INCLUDEDIR})
find_package_handle_standard_args(PSLIB DEFAULT_MSG PSLIB_LIBRARIES PSLIB_INCLUDE_DIR)
endif(PSLIB_FOUND)
else() # no libps.pc file
find_library(PSLIB_LIBRARIES NAMES libps pslib ps)
find_path(PSLIB_INCLUDE_DIR NAMES libps/pslib.h)
find_package_handle_standard_args(PSLIB DEFAULT_MSG PSLIB_LIBRARIES PSLIB_INCLUDE_DIR)
endif()
mark_as_advanced(
LIBPSPKG
LIBPS
LIBPS_LIBRARIES
PSLIBPKG
PSLIB
PSLIB_LIBRARIES
PSLIB_INCLUDE_DIR
)
Be sure that you have at least CMake 2.6 (cmake --version)
Be sure that you have at least CMake 3.0 (cmake --version)
(with CMake <=3.2, an additional flag is needed, see below)
Create a new directory where the objects and executables
will be built, e.g.
......@@ -7,6 +8,9 @@ $ mkdir build; cd !$
Then run cmake pointing it to the root directory of gdl:
$ cmake ..
If using CMake <=3.2, you will be prompted to include
"-std=c++11" in the -DCMAKE_CXX_FLAGS argument value
You can optionally specify a custom install prefix, e.g.:
$ cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../install
......@@ -34,8 +38,6 @@ $ cmake .. -DFFTWDIR=/opt/local/ # alternative FFTW path
Other options include:
- PYTHONVERSION to chose a particular Python version if
multiple are installed on the system,
- OLDPLPLOT to switch off features requiring newer plplot
versions,
- GDL_DATA_DIR (default: /share/gnudatalanguage) to specify
a custom installation location for GDL files
(a subdirectory of the main installation prefix)
......@@ -68,16 +70,17 @@ of targets and `make edit_cache' to edit cache results
examples:
mkdir gdl-clang
cd gdl-clang
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DPYTHON=NO -DCMAKE_CXX_FLAGS_RELEASE=" -Wno-return-type -Wno-switch -Wno-format -O3 " -DPLPLOTDIR="somewhere" -DLIBPROJ4=YES -DGSHHS=YES -DGSHHSDIR="/where/is/gshhs" -DHDF=YES -DUDUNITS=YES -DUDUNITSDIR=/usr/include/udunits2 -DQHULL=OFF -DGLPK=OFF ../gdl-lastversionfromcvs
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DPYTHON=NO -DCMAKE_CXX_FLAGS_RELEASE=" -Wno-return-type -Wno-switch -Wno-format -O3 " -DPLPLOTDIR="somewhere" -DLIBPROJ4=YES -DGSHHS=YES -DGSHHSDIR="/where/is/gshhs" -DHDF=YES -DUDUNITS=YES -DUDUNITSDIR=/usr/include/udunits2 -DGLPK=OFF ../gdl-lastversionfromcvs
make -j 4
sudo make install
or
mkdir gdl-gcc
cd gdl-gcc
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON=NO -DCMAKE_CXX_FLAGS_RELEASE=" -Wno-return-type -Wno-switch -Wno-format " -DPLPLOTDIR="somewhere" -DLIBPROJ4=YES -DGSHHS=YES -DGSHHSDIR="/where/is/gshhs" -DHDF=YES -DUDUNITS=YES -DUDUNITSDIR=/usr/include/udunits2 -DQHULL=OFF -DGLPK=OFF ../gdl-lastversionfromcvs
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON=YES -DCMAKE_CXX_FLAGS_RELEASE=" -Wno-return-type -Wno-switch -Wno-format " -DPLPLOTDIR="somewhere" -DLIBPROJ4=YES -DGSHHS=YES -DGSHHSDIR="/where/is/gshhs" -DHDF=YES -DUDUNITS=YES -DUDUNITSDIR=/usr/include/udunits2 -DGLPK=OFF ../gdl-lastversionfromcvs
make -j 4
sudo make install
For a special compilation with all the options for fast code, including targeting the machine's processor type, use:
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-O3 -fno-math-errno -funsafe-math-optimizations -fno-rounding-math -fno-signaling-nans -fcx-limited-range -march=native -DNDEBUG"
For a special compilation with all the options for fast code, including targeting the machine's processor type, use for example:
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-O3 -fno-math-errno -fno-signaling-nans -msse2 -march=native -DNDEBUG"
more aggressive optimisations may invalidate tests about NaNs for example.
# not a GNU package. You can remove this line, if
# have all needed files, that a GNU package needs
# AUTOMAKE_OPTIONS = foreign 1.4
SUBDIRS = src testsuite doc
basicdocdir = $(GDLDATADIR)
basicdoc_DATA = AUTHORS README
EXTRA_DIST = prolib_DATA
......@@ -682,5 +682,48 @@
- update RANDOM ...
- revisited MAKE_DLL & CALL_EXTERNAL
- MIN, MAX /ABSOLUTE.
- support of DEVICE,SET_CHARACTER_SIZE, and consequently a better positioning and sizes of plots.
- support of DEVICE,SET_CHARACTER_SIZE, and consequently a better positioning and sizes of plots.
- TRIANGULATE and TRIGRID complete (including spherical triangulation) using Renka's legacy algorithms.
0.9.9
- build requirements and development hosting changes:
- development hosting moved from SourceForge to Github
- introduction of continuous integration services with Linux, OSX and Windows builds
- C++11 and CMake 3 requirements
- OpenMP required by default
- dropped support for OLDPLPLOT
- support for using eccodes instead of grib_api
- language/interpretter:
- auto-print feature
- implicit array generation, ex: array=[0.1:3.5:0.33]
- many HASH and LIST handling improvements
- DELVAR and .RNEW
- STATIC and NOSAVE compile options
- new functionalities:
- major TIFF improvement and GEOTIFF support
- LINFIT, DILATE, ERODE, SOBEL, PREWITT, ROBERTS
- NCDF4_EXISTS and H5F_CREATE
- HELP improvements for objects, structures, etc
- performance improvements:
- WHERE speedup
- parallelized FINITE, MIN and MAX
- RANDOM functions (RANDOMUn RANDOMN etc) rewritten using dSFMT, both simd-accelerated and parallelized
- FILE_LINES, FILE_LINK, FILE_COPY, FILE_MOVE reimplemented in C++
- other enhancements:
- reimplemented PARSEL_URL
- added support for START and INCREMENT to MAKE_ARRAY
- /ABSOLUTE keyword for MAX and MIN
- /L64 keyword for WHERE
- CONTOUR, SURFACE and SHADE_SURF accept degenerated N-D equivalents to 2D arrays
- preservation of types by TOTAL
- FIX & ROUND improvements
- colormap initialisation fix
- corrected os_name reporting in !version for OSX
- fixed behaviour with no X-server connection available
- several files cleaned up or moved to obsolete folder
- Windows fixes for STRTRIM and SYSTIME
- FreeBSD fixes for sincos
- improvements in idlneturl class
- numerous compiler warnings addressed
- pytest-based Python module testsuite
- new tests, test cleanups
......@@ -132,15 +132,11 @@ LINE EDITING:
GRAPHICS AND DEPENDENCIES:
--------------------------
For the graphics support of GDL, the plplot library version 5.9
is necessary. PLplot >= 5.9.9 is recommended, but plplot > 10 is tricky (see below).
See below if you have an older version of plplot.
For the graphics support of GDL, the plplot library version >5.9.6 is necessary.
PLplot >= 5.9.9 is recommended, but plplot > 10 is tricky (see below).
To download plplot please look here:
http://plplot.sourceforge.net/source/index.html
If you have plplot older than 5.9.6 use the configure
option --enable-oldplplot (configure) or -DOLDPLPLOT=on (CMake)
With this option, plplot down to 5.9 should work.
A possible problem was reported:
On opening more than one window, plplot causes a segmentation fault
if GDL is compiled with ImageMagick. This happens if plplot uses
......@@ -390,9 +386,8 @@ Comments are welcome. Let me know what you use GDL for. Or if you don't,
why not. Which functionality are you missing/would appreciate most for
comming versions.
Please use for bug reports, complaints, suggestions and comments
the trackers on the project summary page
(http://sourceforge.net/projects/gnudatalanguage)
For bug reports, complaints, suggestions and comments, please
use the issue-tracking tool at: https://github.com/gnudatalanguage/gdl
LICENSE:
......
GRIB file format support in GDL is implemented using the ECMWF GRIB_API library.
GRIB file format support in GDL is implemented using the ECMWF ecCodes library
(the legacy ECMWF GRIB_API library is supported as well).
In order to use it please
- obtain and install GRIB API:
- website: http://www.ecmwf.int/products/data/software/grib_api.html
- compiling grib_api with ,,--disable-fortran'' and ,,--disable-jpeg'' is ok for GDL
- configure GDL enabling the --with-grib option
Naming of GDL routines resembles the one from F90 GRIB API interface
(Fortran logic, as opposed to the one from C interface, seemed more compliant with IDL).
Naming of GDL routines resembles the one from F90 GRIB API interface
(it was developed prior to appearance of GRIB support in IDL).
The routines are not documented for the moment so please:
- refer to GRIB API manual for explanation,
- refer to ecCodes API manual for explanation,
- look in the testsuite/test_grib.pro file for an example of usage,
- read the following few lines.
......@@ -96,6 +91,3 @@ S | - | grib_keys_iterator_get_name
N | | grib_check |
/ | | grib_dump |
A | |
Sylwester Arabas <slayoo@igf.fuw.edu.pl>
January 2009
This diff is collapsed.
This diff is collapsed.
......@@ -29,8 +29,6 @@
#cmakedefine HAVE_MALLOC_ZONE_STATISTICS 1
#cmakedefine HAVE_MEMORY_H 1
#cmakedefine HAVE_NEXTTOWARD 1
#cmakedefine HAVE_OLDPLPLOT 1
#cmakedefine HAVE_PLPLOT_SLABELFUNC 1
#cmakedefine HAVE_PLPLOT_WIDTH 1
#cmakedefine PLPLOT_PRIVATE_NOT_HIDDEN 1
#cmakedefine PLPLOT_HAS_PLCALLBACK
......@@ -66,7 +64,6 @@
#cmakedefine STDC_HEADERS 1
#cmakedefine USE_FFTW 1
#cmakedefine USE_GRIB 1
#cmakedefine PL_HAVE_QHULL 1
#cmakedefine USE_GLPK 1
#cmakedefine USE_GSHHS 1
#cmakedefine USE_HDF 1
......@@ -79,6 +76,8 @@
#cmakedefine USE_NETCDF4 1
#cmakedefine USE_OPENMP 1
#cmakedefine USE_PYTHON 1
#cmakedefine USE_TIFF 1
#cmakedefine USE_GEOTIFF 1
#cmakedefine USE_UDUNITS 1
#cmakedefine USE_PSLIB 1
#cmakedefine USE_EIGEN 1
......
man_MANS = gdl.1
EXTRA_DIST = $(man_MANS)
Version 0.1 02-08-2018
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU"
General Public License as published by
the Free @echo Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program
is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A
PARTICULAR REM PURPOSE. See the GNU
General Public License for more details.
(It should be included in this package in the file COPYING )
Script made by SI LOUNIS AMAR (https://github.com/SIAMAR) with the help of SFLINOIS (https://github.com/SFLINOIS)
This script is not an official build of GDL on Windows
Its purpose is only to help you with the GDL build
Any feedback about the script is greatly appreciated ! :)
For this build to work, you need :
-7zip (We use 7zip to unpack the libraries we download, you can always modify the script to use another software to unpack)
-LIBS.zip (wich contain some libraries that we were not able to compile in the script)
-wget.zip (wich we use do download all the libraries we need in order to compile GDL)
-gdl.bat (The script used to launch GDL once compiled)
The gdl executable is located in .\build\gdl\bin (Please use gdl.bat to launch gdl with correct paths)
You can find the script here : http://aramis.obspm.fr/~coulais/GDL/GDL4MSwin/gdl-minimalscript-win/
\ No newline at end of file
......@@ -2,6 +2,8 @@
#
# Alain Coulais, 3 Mars 2015, script under GNU GPL v3
#
# option "5" --> Vanilla; option "6" --> Git Master
#
# Changes:
# 2015-11-06 : cmake is now in httpS, allow to jump to a given step via $1
# 2016-01-04 : move to 0.9.6
......@@ -12,11 +14,15 @@
# --> if CMake 3.2 around (OSX), use plplot 5.11.1
# (different policy on Linux)
# 2018-01-19 : move from CVS (deprecated at SF) to SVN
# 2018-08-01 : move from SVN to GIThub
# change plplot to 5.13.0 (OSX) or 5.12 (other)
# flag for OpenMP (OSX)
# 2018-08-07 : force cmake 3+, force plplot 5.12 or 5.13
#
# The purpose of this shell script is to automaticaly compile a minimum GDL
# as a basic user even if mandatory packages are not available
#
# Since FFTw and Eigen3 are not used, it does not reflect
# Since FFTw and Eigen3 are not used here, it does not reflect
# the best performances you can have with GDL.
#
# To do that, the TGZ of useful dependancies are downloaded then compiled
......@@ -34,9 +40,8 @@
# step 2 : GSL
# step 3 : CMake
# step 4 : Plplot
# step 5 : GDL 0.9.7 vanilla
# step 6 : GDL 0.9.7 SVN
#
# step 5 : GDL 0.9.8 vanilla
# step 6 : GDL 0.9.8 Git
#
# $1 == $use_curl, $2 = $URL, $3 = $filename
run_wget_or_curl(){
......@@ -75,16 +80,18 @@ check_md5sum(){
fi
}
# URL we use (resived on 2016 Oct. 19)
# URL we use (revised on 2018 Aug. 7)
#
READLINE_URL="ftp://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz"
GSL_URL="ftp://ftp.gnu.org/gnu/gsl/gsl-1.16.tar.gz"
CMAKE_URL="https://cmake.org/files/v2.8/cmake-2.8.12.tar.gz"
PLPLOT_URL59="https://sourceforge.net/projects/plplot/files/plplot/5.9.11%20Source/plplot-5.9.11.tar.gz/download?use_mirror=autoselect"
PLPLOT_URL511="https://sourceforge.net/projects/plplot/files/plplot/5.11.1%20Source/plplot-5.11.1.tar.gz/download?use_mirror=autoselect"
GDL_VANILLA_URL="http://downloads.sourceforge.net/project/gnudatalanguage/gdl/0.9.7/gdl-0.9.7.tgz"
#
PLPLOT_URL512="https://sourceforge.net/projects/plplot/files/plplot/5.12.0%20Source/plplot-5.12.0.tar.gz/download?use_mirror=autoselect"
PLPLOT_URL513="https://sourceforge.net/projects/plplot/files/plplot/5.13.0%20Source/plplot-5.13.0.tar.gz/download?use_mirror=autoselect"
#
GDL_VANILLA_URL="http://downloads.sourceforge.net/project/gnudatalanguage/gdl/0.9.8/gdl-0.9.8.tgz"
GDL_CVS_URL="http://gnudatalanguage.cvs.sourceforge.net/viewvc/gnudatalanguage/gdl/?view=tar"
GDL_SVN_URL="https://svn.code.sf.net/p/gnudatalanguage/svn/trunk/gdl"
GDL_GIT_URL="https://codeload.github.com/gnudatalanguage/gdl/zip/master"
#
step=$1
if [ -z "$1" ] ; then
......@@ -94,11 +101,18 @@ fi
#
export RACINE=$PWD
#
# AC 2018-08-01 : obsolete : no more SVN
#
# switch it to 1 to have the SVN snapshot
gdl_svn=0
#gdl_svn=0
#if [[ $step == 6 ]] ; then
# command -v svn >/dev/null 2>&1 || { echo >&2 "SVN (Subversion) not found." #; exit;}
# gdl_svn=1
#fi
gdl_git=0
if [[ $step == 6 ]] ; then
command -v svn >/dev/null 2>&1 || { echo >&2 "SVN (Subversion) not found." ; exit;}
gdl_svn=1
# we don't need "git" program, just "unzip"
gdl_git=1
fi
# switch it to 1 to have the final checks for GDL
......@@ -207,8 +221,7 @@ if [[ $step -le 2 && -z $GSL_PATH ]] ; then
fi
# ----------------------------------- CMAKE -----------------------
# starting CMAKE : if the sytem is using an old version of CMake
# we want to use 2.8.12 ... but 2.8.9 is OK too
# starting CMAKE : since mid-2018, we force Cmake to be > 3.0.2
echo "** preparing CMAKE"
cd $RACINE
#
......@@ -217,14 +230,22 @@ CmakeEXE=`which -a cmake`
#echo "CMake exe : " $CmakeEXE
if [ -x $CmakeEXE ] ; then
cmake_version=`cmake --version | head -1 | awk -F " " '{print $3}'`
if [[ $cmake_version < "2.8" ]] ; then
if [[ ${cmake_version:0:1} < "3" ]] ; then
echo "old CMake version ("$cmake_version") found, a new one must be used"
else
do_cmake_compil=0
fi
fi
if [[ $do_cmake_compil -eq 1 && -x $RACINE/cmake-2.8.12/bin/cmake ]] ; then
CmakeEXE=$RACINE/cmake-2.8.12/bin/cmake
#
if [[ $do_cmake_compil -eq 1 ]] ; then
CMAKE_URL="https://cmake.org/files/v3.2/cmake-3.2.3.tar.gz"
CMAKE_MD5="d51c92bf66b1e9d4fe2b7aaedd51377c"
CMAKE_NAME=cmake-3.2.3.tar.gz
CMAKE_DIR=cmake-3.2.3
fi
#
if [[ $do_cmake_compil -eq 1 && -x $RACINE/$CMAKE_DIR/bin/cmake ]] ; then
CmakeEXE=$RACINE/$CMAKE_DIR/bin/cmake
cmake_version=`$CmakeEXE --version | head -1 | awk -F " " '{print $3}'`
do_cmake_compil=0
fi
......@@ -235,38 +256,38 @@ if [ -n $CmakeEXE ] ; then
fi
#
if [[ $step -le 3 && $do_cmake_compil -eq 1 ]] ; then
if [ ! -e cmake-2.8.12.tar.gz ] ; then
if [ ! -e $CMAKE_NAME ] ; then
## since Nov. 6, we do have a problem with KitWare certificate ...
run_wget_or_curl_no_check $use_curl $CMAKE_URL cmake-2.8.12.tar.gz
run_wget_or_curl_no_check $use_curl $CMAKE_URL $CMAKE_NAME
fi
check_md5sum cmake-2.8.12.tar.gz "105bc6d21cc2e9b6aff901e43c53afea"
check_md5sum $CMAKE_NAME $CMAKE_MD5
#
tar -zxf cmake-2.8.12.tar.gz
cd cmake-2.8.12
tar -zxf $CMAKE_NAME
cd $CMAKE_DIR
./bootstrap
make -s
echo "CMake compilation done, version 2.8.12"
echo "CMake compilation done, version $CMAKE_DIR"
CmakeEXE=$PWD/bin/cmake
cmake_version=`$CmakeEXE --version | head -1 | awk -F " " '{print $3}'`
fi
# ----------------------------------- PLPLOT -----------------------
# starting PLPLOT : we don't want to use packaged PLplot version
# because of various issues. The options used here ensure stable results.
echo "** preparing PLPLOT"
cd $RACINE
#
if [[ ${cmake_version:0:3} < "3.2" ]] ; then
PLPLOT_URL=$PLPLOT_URL59
PLPLOT_MD5="153782509a13938230f740ee446389d0"
PLPLOT_NAME=plplot-5.9.11.tar.gz
PLPLOT_DIR=plplot-5.9.11
# AC 2018-08-07 : succesfully tested on OSX 10.11, 10.12 & 10.13
# with cmake 3.11.3 from Brew
if [ $os_type == Darwin ] ; then
PLPLOT_URL=$PLPLOT_URL513
PLPLOT_MD5="bfefeae7fb9a23377c6dc37b44a7da8a"
PLPLOT_NAME=plplot-5.13.0.tar.gz
PLPLOT_DIR=plplot-5.13.0
else
PLPLOT_URL=$PLPLOT_URL511
PLPLOT_MD5="7a3dbbe49a00f925b095bc06cadbaf63"
# for 5.12.0 : PLPLOT_MD5="998a05be218e5de8f2faf988b8dbdc51"
PLPLOT_NAME=plplot-5.11.1.tar.gz
PLPLOT_DIR=plplot-5.11.1
PLPLOT_URL=$PLPLOT_URL512
PLPLOT_MD5="998a05be218e5de8f2faf988b8dbdc51"
PLPLOT_NAME=plplot-5.12.0.tar.gz
PLPLOT_DIR=plplot-5.12.0
fi
#
if [[ $step -le 4 ]] ; then
......@@ -279,7 +300,8 @@ if [[ $step -le 4 ]] ; then
cd $PLPLOT_DIR
mkdir Compilation
cd Compilation
$CmakeEXE .. -DCMAKE_INSTALL_PREFIX=. \
$CmakeEXE .. -DCMAKE_INSTALL_PREFIX=. -DENABLE_ADA=off \
-DENABLE_f95=off -DENABLE_fortran=off \
-DENABLE_python=OFF -DENABLE_java=off -DENABLE_qt=off \