From: <ai...@us...> - 2013-11-02 22:16:33
|
Revision: 12645 http://sourceforge.net/p/plplot/code/12645 Author: airwin Date: 2013-11-02 22:16:31 +0000 (Sat, 02 Nov 2013) Log Message: ----------- Use a separate install prefix (with appended suffix "_incrtcl3") for itcl3 (and eventually the other [incr Tcl] version 3 components) because of name clashes with [incr Tcl] version 4 components. Modified Paths: -------------- trunk/cmake/build_projects/itcl3/bp.cmake Modified: trunk/cmake/build_projects/itcl3/bp.cmake =================================================================== --- trunk/cmake/build_projects/itcl3/bp.cmake 2013-11-01 22:05:55 UTC (rev 12644) +++ trunk/cmake/build_projects/itcl3/bp.cmake 2013-11-02 22:16:31 UTC (rev 12645) @@ -76,16 +76,21 @@ endif(MSYS_PLATFORM) #message(STATUS "modified BP_PATH for ${BP_PACKAGE} = ${BP_PATH}") +# Eliminate this option which gives bad results for this package. +string(REGEX REPLACE "-fvisibility=hidden" "" ${BP_PACKAGE}_SET_CFLAGS "${${BP_PACKAGE}_SET_CFLAGS}") + if(BP_HAVE_64_BIT_OS) set(ITCL3_ENABLE_64_BIT --enable-64bit) endif(BP_HAVE_64_BIT_OS) +set(INCRTCL3_PREFIX ${BP_CMAKE_INSTALL_PREFIX}_incrtcl3) + ExternalProject_Add( build_${BP_PACKAGE} DEPENDS ${${BP_PACKAGE}_dependencies_targets} URL ${${BP_PACKAGE}_URL} URL_HASH ${${BP_PACKAGE}_DOWNLOAD_HASH_TYPE}=${${BP_PACKAGE}_DOWNLOAD_HASH} - CONFIGURE_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${${BP_PACKAGE}_SET_CFLAGS} ${source_PATH}/${BP_CONFIGURE_COMMAND} --mandir=${BP_CMAKE_INSTALL_PREFIX}/share/man ${ITCL3_ENABLE_64_BIT} --with-tcl=${BP_CMAKE_INSTALL_PREFIX}/lib --with-tclinclude=${BP_CMAKE_INSTALL_PREFIX}/include + CONFIGURE_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${${BP_PACKAGE}_SET_CFLAGS} ${source_PATH}/configure --prefix=${INCRTCL3_PREFIX} --exec-prefix=${INCRTCL3_PREFIX} --mandir=${INCRTCL3_PREFIX}/share/man ${ITCL3_ENABLE_64_BIT} --with-tcl=${BP_CMAKE_INSTALL_PREFIX}/lib --with-tclinclude=${BP_CMAKE_INSTALL_PREFIX}/include BUILD_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_MAKE_COMMAND} INSTALL_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_MAKE_COMMAND} install ) @@ -96,11 +101,11 @@ COMMAND echo "Replace build-tree locations by install-tree locations" COMMAND ${SED_EXECUTABLE} # Cover two different patterns of uppercasing. - -e "s@^\\(itcl_SRC_DIR='\\).*@\\1${BP_CMAKE_INSTALL_PREFIX}/include'@" - -e "s@^\\(ITCL_SRC_DIR='\\).*@\\1${BP_CMAKE_INSTALL_PREFIX}/include'@" + -e "s@^\\(itcl_SRC_DIR='\\).*@\\1${INCRTCL3_PREFIX}/include'@" + -e "s@^\\(ITCL_SRC_DIR='\\).*@\\1${INCRTCL3_PREFIX}/include'@" # Cover two different patterns of uppercasing. - -e "/itcl_B/s@='\\(-L\\)\\?.*build_itcl3@='\\1${BP_CMAKE_INSTALL_PREFIX}/lib/itcl${ITCL3_LIBVERSION}@" - -e "/ITCL_B/s@='\\(-L\\)\\?.*build_itcl3@='\\1${BP_CMAKE_INSTALL_PREFIX}/lib/itcl${ITCL3_LIBVERSION}@" + -e "/itcl_B/s@='\\(-L\\)\\?.*build_itcl3@='\\1${INCRTCL3_PREFIX}/lib/itcl${ITCL3_LIBVERSION}@" + -e "/ITCL_B/s@='\\(-L\\)\\?.*build_itcl3@='\\1${INCRTCL3_PREFIX}/lib/itcl${ITCL3_LIBVERSION}@" # Overwrite original file. -i itclConfig.sh APPEND @@ -110,7 +115,7 @@ OUTPUT ${EP_BASE}/Stamp/build_${BP_PACKAGE}/build_${BP_PACKAGE}-install COMMAND echo "Install-tree fixups" - COMMAND ${CHMOD_EXECUTABLE} -v ${SO_NUMERICAL_PERMISSIONS} ${BP_CMAKE_INSTALL_PREFIX}/lib/itcl${ITCL3_LIBVERSION}/libitcl${ITCL3_LIBVERSION}.so + COMMAND ${CHMOD_EXECUTABLE} -v ${SO_NUMERICAL_PERMISSIONS} ${INCRTCL3_PREFIX}/lib/itcl${ITCL3_LIBVERSION}/libitcl${ITCL3_LIBVERSION}.so APPEND ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2013-11-06 00:39:18
|
Revision: 12665 http://sourceforge.net/p/plplot/code/12665 Author: airwin Date: 2013-11-06 00:39:14 +0000 (Wed, 06 Nov 2013) Log Message: ----------- Move back to using a common install prefix for version 3 and version 4 of itcl and friends since there is no practical benefit to a separate version 3 install prefix (you still have to use versioned package names) and that separate version 3 install prefix also has the drawback that you have to set auto_path appropriately to find it. Modified Paths: -------------- trunk/cmake/build_projects/itcl3/bp.cmake Modified: trunk/cmake/build_projects/itcl3/bp.cmake =================================================================== --- trunk/cmake/build_projects/itcl3/bp.cmake 2013-11-06 00:35:15 UTC (rev 12664) +++ trunk/cmake/build_projects/itcl3/bp.cmake 2013-11-06 00:39:14 UTC (rev 12665) @@ -83,7 +83,11 @@ set(ITCL3_ENABLE_64_BIT --enable-64bit) endif(BP_HAVE_64_BIT_OS) -set(INCRTCL3_PREFIX ${BP_CMAKE_INSTALL_PREFIX}/lib/incrtcl3) +# This variable provides the opportunity to set an alternative install +# prefix to distinguish what files are installed by version 3 of itcl +# and friends from what is installed by version 4 of itcl and friends. +# But currently just use the ordinary install location. +set(INCRTCL3_PREFIX ${BP_CMAKE_INSTALL_PREFIX}) ExternalProject_Add( build_${BP_PACKAGE} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |