From d5a661b9b99d05e3fdad9e1d44c0edeb4eb715bf Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 17 Jan 2003 13:35:55 -0500 Subject: [PATCH] ENH: Prototype for OSX packaging. --- Utilities/Release/cmake_release.sh | 23 +++++++++++++++++++++++ Utilities/Release/config_Darwin | 4 ++++ 2 files changed, 27 insertions(+) diff --git a/Utilities/Release/cmake_release.sh b/Utilities/Release/cmake_release.sh index 609e943f0..9f80ca9e4 100755 --- a/Utilities/Release/cmake_release.sh +++ b/Utilities/Release/cmake_release.sh @@ -491,6 +491,29 @@ cygwin_package() ) >Logs/cygwin_package.log 2>&1 || error_log Logs/cygwin_package.log } +#----------------------------------------------------------------------------- +osx_install() +{ + [ -z "${DONE_osx_install}" ] || return 0 ; DONE_osx_install="yes" + config || return 1 + [ -f "cmake-${VERSION}-${PLATFORM}/Source/ccmake" ] || build || return 1 + echo "Running make install for OSX package ..." && + ( + rm -rf OSX && + mkdir -p OSX/Package_Root/Applications && + mkdir -p OSX/Resources/PreFlight && + mkdir -p OSX/Resources/PostFlight && + ( + cd "cmake-${VERSION}-${PLATFORM}" && + make install DESTDIR="${RELEASE_ROOT}/OSX/Package_Root" + ) && + cp cmake-${VERSION}/Copyright.txt OSX/Resources/License.txt && + cp -r cmake-${VERSION}-${PLATFORM}/Source/CMake.app OSX/Package_Root/Applications && + echo "APPL????" > OSX/Package_Root/Applications/CMake.app/Contents/PkgInfo && + cp "${WX_RESOURCES}" OSX/Package_Root/Applications/CMake.app/Contents/Resources/wxCMakeSetup.rsrc + ) >Logs/osx_install.log 2>&1 || error_log Logs/osx_install.log +} + if [ -z "$TASK" ]; then [ -z "$REMOTE" ] && TASK="$@" fi diff --git a/Utilities/Release/config_Darwin b/Utilities/Release/config_Darwin index 03f3c262f..08f3a95ed 100644 --- a/Utilities/Release/config_Darwin +++ b/Utilities/Release/config_Darwin @@ -1,6 +1,8 @@ PLATFORM="darwin" CC="cc" CXX="c++" +WX_PREFIX=/Users/andy/vtk/wx +WX_RESOURCES=${WX_PREFIX}/lib/libwx_mac-2.3.rsrc # Write entries into the cache file before building cmake. write_cache() @@ -8,5 +10,7 @@ write_cache() cat > CMakeCache.txt <