Ticket #34399: patch-cmake-install_layout.cmake.diff
File patch-cmake-install_layout.cmake.diff, 2.2 KB (added by BjarneDMat, 13 years ago) |
---|
-
cmake/install_layout.cmake
a b 68 68 ENDIF() 69 69 70 70 SET(INSTALL_LAYOUT "${DEFAULT_INSTALL_LAYOUT}" 71 CACHE STRING "Installation directory layout. Options are: STANDALONE (as in zip or tar.gz installer), RPM, DEB, SVR4 ")71 CACHE STRING "Installation directory layout. Options are: STANDALONE (as in zip or tar.gz installer), RPM, DEB, SVR4, MACPORTS") 72 72 73 73 IF(UNIX) 74 74 IF(INSTALL_LAYOUT MATCHES "RPM") … … 86 86 SET(CMAKE_INSTALL_PREFIX ${default_prefix} 87 87 CACHE PATH "install prefix" FORCE) 88 88 ENDIF() 89 SET(VALID_INSTALL_LAYOUTS "RPM" "STANDALONE" "DEB" "SVR4" )89 SET(VALID_INSTALL_LAYOUTS "RPM" "STANDALONE" "DEB" "SVR4" "MACPORTS") 90 90 LIST(FIND VALID_INSTALL_LAYOUTS "${INSTALL_LAYOUT}" ind) 91 91 IF(ind EQUAL -1) 92 92 MESSAGE(FATAL_ERROR "Invalid INSTALL_LAYOUT parameter:${INSTALL_LAYOUT}." … … 214 214 SET(INSTALL_MYSQLDATADIR_SVR4 "/var/lib/mysql") 215 215 SET(INSTALL_PLUGINTESTDIR_SVR4 ${plugin_tests}) 216 216 217 # 218 # MACPORTS layout 219 # 220 SET(INSTALL_BINDIR_MACPORTS "lib/@NAME@/bin") 221 SET(INSTALL_SBINDIR_MACPORTS "lib/@NAME@/bin") 222 SET(INSTALL_SCRIPTDIR_MACPORTS "lib/@NAME@/scripts") 223 # 224 SET(INSTALL_LIBDIR_MACPORTS "lib/@NAME@/mysql") 225 SET(INSTALL_PLUGINDIR_MACPORTS "lib/@NAME@/plugin") 226 # 227 SET(INSTALL_INCLUDEDIR_MACPORTS "include/@NAME@/mysql") 228 # 229 SET(INSTALL_DOCDIR_MACPORTS "share/docs/@NAME@") 230 SET(INSTALL_DOCREADMEDIR_MACPORTS "share/docs/@NAME@") 231 SET(INSTALL_MANDIR_MACPORTS "share/man/@NAME@") 232 SET(INSTALL_INFODIR_MACPORTS "share/docs/@NAME@") 233 # 234 SET(INSTALL_SHAREDIR_MACPORTS "share/@NAME@") 235 SET(INSTALL_MYSQLSHAREDIR_MACPORTS "share/@NAME@") 236 SET(INSTALL_MYSQLTESTDIR_MACPORTS "share/@NAME@/mysql-test") 237 SET(INSTALL_SQLBENCHDIR_MACPORTS "share/@NAME@") 238 SET(INSTALL_SUPPORTFILESDIR_MACPORTS "share/@NAME@/support-files") 239 # 240 SET(INSTALL_MYSQLDATADIR_MACPORTS "var/db/@NAME@") 241 SET(INSTALL_PLUGINTESTDIR_MACPORTS ${plugin_tests}) 217 242 218 243 # Clear cached variables if install layout was changed 219 244 IF(OLD_INSTALL_LAYOUT)