Index: ../trunk-jpl/externalpackages/meteoio/install.sh =================================================================== --- ../trunk-jpl/externalpackages/meteoio/install.sh (revision 0) +++ ../trunk-jpl/externalpackages/meteoio/install.sh (revision 15880) @@ -0,0 +1,38 @@ +#!/bin/bash +#METEOIO install package: this package is not distributed by ISSM. Please request access to the code by +#contacting Mathias Bavay () or logging onto http://models.slf.ch/ and registering. Once you have a tarball +#of the code, please use this script to install. + +#we assume you have a MeteoIO-*-tar.gz tarball +set -eu + +#Do some inquiry about the names of the tar balls: +source_tar=`ls MeteoIO-*.tar.gz` +source_version=`echo $source_tar | sed 's/MeteoIO-//g' | sed 's/.tar.gz//g'` + +if [[ $source_tar == "" ]]; then + echo "Could not identify a tar ball for the source code, name should be MeteoIO-*-tar.gz" + exit 1 +fi +if [[ $source_version == "" ]]; then + echo "Could not identify a tar ball version for the source code" + exit 1 +fi + +#Some cleanup +rm -rf src MeteoIO-$source_version + +#First deal with source code +tar -zxvf $source_tar +mv MeteoIO-$source_version/usr src +rm -rf MeteoIO-$source_version + +#Reset makefile: +cd src && rm -rf Makefile && ln -s ../makefiles/Makefile + +#Compile +if [ $# -eq 0 ]; then + make +else + make -j $1 +fi Property changes on: ../trunk-jpl/externalpackages/meteoio/install.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: ../trunk-jpl/externalpackages/meteoio/makefiles/Makefile =================================================================== --- ../trunk-jpl/externalpackages/meteoio/makefiles/Makefile (revision 0) +++ ../trunk-jpl/externalpackages/meteoio/makefiles/Makefile (revision 15880) @@ -0,0 +1,265 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canoncical targets will work. +.SUFFIXES: + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +#CMake location: +CMAKE_DIR = $(ISSM_DIR)/externalpackages/cmake/install/bin + +# The CMake executable. +CMAKE_COMMAND = $(CMAKE_DIR)/cmake + +# The command to remove a file. +RM = $(CMAKE_COMMAND) -E remove -f + +# The program to use to edit the cache. +CMAKE_EDIT_COMMAND = $(CMAKE_DIR)/ccmake + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = $(ISSM_DIR)/externalpackages/meteoio/src + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = $(ISSM_DIR)/externalpackages/meteoio/src + +#Cpack: +CPACK_COMMAND = $(CMAKE_DIR)/cpack + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + $(CMAKE_EDIT_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." + $(CMAKE_COMMAND) -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." + $(CMAKE_COMMAND) -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..." + $(CMAKE_COMMAND) -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: install/local +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..." + $(CMAKE_COMMAND) -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: install/strip +.PHONY : install/strip/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\" \"documentation\" \"examples\" \"headers\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target package +package: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Run CPack packaging tool..." + $(CPACK_COMMAND) --config ./CPackConfig.cmake +.PHONY : package + +# Special rule for the target package +package/fast: package +.PHONY : package/fast + +# Special rule for the target package_source +package_source: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Run CPack packaging tool for source..." + $(CPACK_COMMAND) --config ./CPackSourceConfig.cmake /home/bavay/tmp/meteoio/CPackSourceConfig.cmake +.PHONY : package_source + +# Special rule for the target package_source +package_source/fast: package_source +.PHONY : package_source/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/bavay/tmp/meteoio/CMakeFiles /home/bavay/tmp/meteoio/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /home/bavay/tmp/meteoio/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named distclean + +# Build rule for target. +distclean: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 distclean +.PHONY : distclean + +# fast build rule for target. +distclean/fast: + $(MAKE) -f CMakeFiles/distclean.dir/build.make CMakeFiles/distclean.dir/build +.PHONY : distclean/fast + +#============================================================================= +# Target rules for targets named doc + +# Build rule for target. +doc: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 doc +.PHONY : doc + +# fast build rule for target. +doc/fast: + $(MAKE) -f CMakeFiles/doc.dir/build.make CMakeFiles/doc.dir/build +.PHONY : doc/fast + +#============================================================================= +# Target rules for targets named documentation + +# Build rule for target. +documentation: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 documentation +.PHONY : documentation + +# fast build rule for target. +documentation/fast: + $(MAKE) -f CMakeFiles/documentation.dir/build.make CMakeFiles/documentation.dir/build +.PHONY : documentation/fast + +#============================================================================= +# Target rules for targets named uninstall + +# Build rule for target. +uninstall: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 uninstall +.PHONY : uninstall + +# fast build rule for target. +uninstall/fast: + $(MAKE) -f CMakeFiles/uninstall.dir/build.make CMakeFiles/uninstall.dir/build +.PHONY : uninstall/fast + +#============================================================================= +# Target rules for targets named meteoio + +# Build rule for target. +meteoio: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 meteoio +.PHONY : meteoio + +# fast build rule for target. +meteoio/fast: + $(MAKE) -f meteoio/CMakeFiles/meteoio.dir/build.make meteoio/CMakeFiles/meteoio.dir/build +.PHONY : meteoio/fast + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... distclean" + @echo "... doc" + @echo "... documentation" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... package" + @echo "... package_source" + @echo "... rebuild_cache" + @echo "... uninstall" + @echo "... meteoio" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system +