diff options
author | Brad King <brad.king@kitware.com> | 2003-01-17 18:35:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-01-17 18:35:55 (GMT) |
commit | d5a661b9b99d05e3fdad9e1d44c0edeb4eb715bf (patch) | |
tree | e9283095b7a35b7442d2a1a9de753b6d4aa07c90 /Utilities | |
parent | 9c00464f4d76c2bdbf78d61db05e3ca091c24a98 (diff) | |
download | CMake-d5a661b9b99d05e3fdad9e1d44c0edeb4eb715bf.zip CMake-d5a661b9b99d05e3fdad9e1d44c0edeb4eb715bf.tar.gz CMake-d5a661b9b99d05e3fdad9e1d44c0edeb4eb715bf.tar.bz2 |
ENH: Prototype for OSX packaging.
Diffstat (limited to 'Utilities')
-rwxr-xr-x | Utilities/Release/cmake_release.sh | 23 | ||||
-rw-r--r-- | Utilities/Release/config_Darwin | 4 |
2 files changed, 27 insertions, 0 deletions
diff --git a/Utilities/Release/cmake_release.sh b/Utilities/Release/cmake_release.sh index 609e943..9f80ca9 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 03f3c26..08f3a95 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 <<EOF BUILD_TESTING:BOOL=OFF CURSES_LIBRARY:FILEPATH=/usr/local/lib/libncurses.a +CMAKE_BUILD_WX_DIALOG:BOOL=ON +CMAKE_WX_CONFIG:FILEPATH=${WX_PREFIX}/bin/wx-config EOF } |