Ticket #34399: patch-cmake-install_layout.cmake.diff

File patch-cmake-install_layout.cmake.diff, 2.2 KB (added by BjarneDMat, 13 years ago)

fix for the build problem

  • cmake/install_layout.cmake

    a b  
    6868ENDIF()
    6969
    7070SET(INSTALL_LAYOUT "${DEFAULT_INSTALL_LAYOUT}"
    71 CACHE STRING "Installation directory layout. Options are: STANDALONE (as in zip or tar.gz installer), RPM, DEB, SVR4")
     71CACHE STRING "Installation directory layout. Options are: STANDALONE (as in zip or tar.gz installer), RPM, DEB, SVR4, MACPORTS")
    7272
    7373IF(UNIX)
    7474  IF(INSTALL_LAYOUT MATCHES "RPM")
     
    8686    SET(CMAKE_INSTALL_PREFIX ${default_prefix}
    8787      CACHE PATH "install prefix" FORCE)
    8888  ENDIF()
    89   SET(VALID_INSTALL_LAYOUTS "RPM" "STANDALONE" "DEB" "SVR4")
     89  SET(VALID_INSTALL_LAYOUTS "RPM" "STANDALONE" "DEB" "SVR4" "MACPORTS")
    9090  LIST(FIND VALID_INSTALL_LAYOUTS "${INSTALL_LAYOUT}" ind)
    9191  IF(ind EQUAL -1)
    9292    MESSAGE(FATAL_ERROR "Invalid INSTALL_LAYOUT parameter:${INSTALL_LAYOUT}."
     
    214214SET(INSTALL_MYSQLDATADIR_SVR4           "/var/lib/mysql")
    215215SET(INSTALL_PLUGINTESTDIR_SVR4          ${plugin_tests})
    216216
     217#
     218# MACPORTS layout
     219#
     220SET(INSTALL_BINDIR_MACPORTS             "lib/@NAME@/bin")
     221SET(INSTALL_SBINDIR_MACPORTS            "lib/@NAME@/bin")
     222SET(INSTALL_SCRIPTDIR_MACPORTS          "lib/@NAME@/scripts")
     223#
     224SET(INSTALL_LIBDIR_MACPORTS             "lib/@NAME@/mysql")
     225SET(INSTALL_PLUGINDIR_MACPORTS          "lib/@NAME@/plugin")
     226#
     227SET(INSTALL_INCLUDEDIR_MACPORTS         "include/@NAME@/mysql")
     228#
     229SET(INSTALL_DOCDIR_MACPORTS             "share/docs/@NAME@")
     230SET(INSTALL_DOCREADMEDIR_MACPORTS       "share/docs/@NAME@")
     231SET(INSTALL_MANDIR_MACPORTS             "share/man/@NAME@")
     232SET(INSTALL_INFODIR_MACPORTS            "share/docs/@NAME@")
     233#
     234SET(INSTALL_SHAREDIR_MACPORTS           "share/@NAME@")
     235SET(INSTALL_MYSQLSHAREDIR_MACPORTS      "share/@NAME@")
     236SET(INSTALL_MYSQLTESTDIR_MACPORTS       "share/@NAME@/mysql-test")
     237SET(INSTALL_SQLBENCHDIR_MACPORTS        "share/@NAME@")
     238SET(INSTALL_SUPPORTFILESDIR_MACPORTS    "share/@NAME@/support-files")
     239#
     240SET(INSTALL_MYSQLDATADIR_MACPORTS       "var/db/@NAME@")
     241SET(INSTALL_PLUGINTESTDIR_MACPORTS      ${plugin_tests})
    217242
    218243# Clear cached variables if install layout was changed
    219244IF(OLD_INSTALL_LAYOUT)