[cmake-commits] hoffman committed CMakeLists.txt NONE 1.2.2.1 README.cygwin.in NONE 1.2.2.1 cygwin-package.sh.in NONE 1.2.2.1 cygwin-patch.diff.in NONE 1.1.2.1 cygwin-setup.hint.in NONE 1.1.2.1

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Feb 5 13:21:35 EST 2007


Update of /cvsroot/CMake/CMake/Utilities/Release/Cygwin
In directory public:/mounts/ram/cvs-serv30870/Utilities/Release/Cygwin

Added Files:
      Tag: CMake-2-4
	CMakeLists.txt README.cygwin.in cygwin-package.sh.in 
	cygwin-patch.diff.in cygwin-setup.hint.in 
Log Message:
ENH: merge in changes from branch


--- NEW FILE: cygwin-patch.diff.in ---

--- NEW FILE: cygwin-package.sh.in ---
TOP_DIR=`cd \`echo "$0" | sed -n '/\//{s/\/[^\/]*$//;p;}'\`;pwd`

# create build directory
mkdirs()
{
  (
  mkdir -p "$TOP_DIR/@CPACK_PACKAGE_FILE_NAME@/.build" 
  )
}

# cd into 
# untar source tree and apply patch
prep()
{
  (
  cd "$TOP_DIR" &&
  tar xvfj @CPACK_PACKAGE_FILE_NAME at .tar.bz2
  patch -p0 < "@CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at .patch" &&
  mkdirs
  )
}

conf()
{
  (
  cd "$TOP_DIR/@CPACK_PACKAGE_FILE_NAME@/.build" && 
  ../bootstrap --parallel=2
  )
}

build()
{
  (
  cd "$TOP_DIR/@CPACK_PACKAGE_FILE_NAME@/.build" &&
  make -j2 &&
  make test
  )
}

clean()
{
  (
  cd "$TOP_DIR/@CPACK_PACKAGE_FILE_NAME@/.build" &&
  make clean
  )
}

pkg()
{
  (
  cd "$TOP_DIR/@CPACK_PACKAGE_FILE_NAME@/.build" &&
  ./bin/cpack && 
  mv @CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at .tar.bz2 "$TOP_DIR"     
  )
}

spkg()
{
 (
  cd "$TOP_DIR/@CPACK_PACKAGE_FILE_NAME@/.build" &&
  ./bin/cpack --config  CPackSourceConfig.cmake &&
  mv @CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at -src.tar.bz2 "$TOP_DIR" 
  )
}

finish()
{
  (
  rm -rf "@CPACK_PACKAGE_FILE_NAME@"
  )
}

case $1 in
  prep)         prep    ; STATUS=$? ;;
  mkdirs)       mkdirs  ; STATUS=$? ;;
  conf)         conf    ; STATUS=$? ;;
  build)        build   ; STATUS=$? ;;
  clean)        clean   ; STATUS=$? ;;
  package)      pkg     ; STATUS=$? ;;
  pkg)          pkg     ; STATUS=$? ;;
  src-package)  spkg    ; STATUS=$? ;;
  spkg)         spkg    ; STATUS=$? ;;
  finish)       finish  ; STATUS=$? ;;
  all) (
       prep && conf && build && pkg && spkg && finish ;
       STATUS=$?
       ) ;;
  *) echo "Error: bad argument (all or one of these: prep mkdirs conf build clean package pkg src-package spkg finish)" ; exit 1 ;;
esac
exit ${STATUS}

--- NEW FILE: cygwin-setup.hint.in ---
# CMake setup.hint file for cygwin setup.exe program
category: Devel 
requires: @CMAKE_NCURSES_VERSION@ cygwin
sdesc: "A cross platform build manager" 
ldesc: "CMake is a cross platform build manager. It allows you to specify build parameters for C and C++ programs in a cross platform manner. For cygwin Makefiles will be generated. CMake is also capable of generating microsoft project files, nmake, and borland makefiles. CMake can also perform system inspection operations like finding installed libraries and header files." 

--- NEW FILE: CMakeLists.txt ---
FILE(GLOB INSTALLED_CURSES /usr/bin/cygncurses*.dll)
SET(MAX 0)
FOREACH(f ${INSTALLED_CURSES})
  IF(NOT "${f}" MATCHES "\\+")
    STRING(REGEX REPLACE ".*([0-9]).dll" "\\1" NUMBER "${f}")
    IF(NUMBER GREATER MAX)
      SET(MAX ${NUMBER}) 
    ENDIF(NUMBER GREATER MAX)
  ENDIF(NOT "${f}" MATCHES "\\+")
ENDFOREACH(f)
STRING(REGEX REPLACE "/usr/bin/" "\\1" NUMBER "${f}")
SET(CMAKE_NCURSES_VERSION "libncurses${MAX}")
MESSAGE(STATUS "Using curses version: libncurses${MAX}")
CONFIGURE_FILE("${CMake_SOURCE_DIR}/Utilities/Release/Cygwin/cygwin-setup.hint.in"
  "${CMake_BINARY_DIR}/setup.hint")
CONFIGURE_FILE("${CMake_SOURCE_DIR}/Utilities/Release/Cygwin/README.cygwin.in"
  "${CMake_BINARY_DIR}/Docs/@CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at .README")
INSTALL_FILES(/share/doc/Cygwin FILES
  ${CMake_BINARY_DIR}/Docs/@CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at .README
  )
CONFIGURE_FILE("${CMake_SOURCE_DIR}/Utilities/Release/Cygwin/cygwin-package.sh.in"
  ${CPACK_CYGWIN_BUILD_SCRIPT})
CONFIGURE_FILE("${CMake_SOURCE_DIR}/Utilities/Release/Cygwin/cygwin-patch.diff.in"
  ${CPACK_CYGWIN_PATCH_FILE})


--- NEW FILE: README.cygwin.in ---
cmake
--------------------------------------
Runtime requirements:
  cygwin-1.5.21(0.156/4/2) or newer

Build requirements
  cygwin-1.5.21(0.156/4/2) or newer
  make

Canonical homepage:
  http://www.cmake.org

Canonical download:
  ftp://www.cmake.org/pub/cmake/

------------------------------------

Build instructions:
  unpack @CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at -src.tar.bz2
    if you use setup to install this src package, it will be
         unpacked under /usr/src automatically
  cd /usr/src
  ./@CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at .sh all

This will create:
  /usr/src/@CPACK_PACKAGE_FILE_NAME at .tar.bz2
  /usr/src/@CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at -src.tar.bz2

-------------------------------------------

Port Notes:

The directory /usr/share/@CPACK_PACKAGE_FILE_NAME@/include is purposely not
located at /usr/include/@CPACK_PACKAGE_FILE_NAME@ or /usr/include/cmake.  The
files it contains are not meant for inclusion in any C or C++ program.
They are used for compiling dynamically loadable CMake commands inside
projects that provide them.  CMake will automatically provide the
proper include path when the files are needed.

------------------

Cygwin port maintained by: CMake Developers <cmake at www.cmake.org>



More information about the Cmake-commits mailing list