Ticket #26469: patch-cmakelists.diff

File patch-cmakelists.diff, 1.4 KB (added by christophe.prudhomme@…, 14 years ago)

patch file for gmsh 2.5.0 installation on MacPorts

  • CMakeLists.txt

    old new  
    955955  # set these so that the files get installed nicely in the MacOSX
    956956  # .app bundle (FIXME: this screws up a standard "make install" on
    957957  # MacOS)
    958   set(GMSH_BIN ../MacOS)
    959   set(GMSH_DOC ../../..)
    960   set(GMSH_MAN ../../..)
     958  set(GMSH_BIN bin)
     959  set(GMSH_DOC share/doc/gmsh)
     960  set(GMSH_MAN share/man/man1)
    961961else(WIN32)
    962962  set(GMSH_BIN bin)
    963963  set(GMSH_DOC share/doc/gmsh)
     
    10571057  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/Info.plist "${F1}")
    10581058  set(CPACK_BUNDLE_PLIST ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
    10591059  set(CPACK_BUNDLE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIcons.icns)
    1060   install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsGeo.icns DESTINATION .
     1060  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsGeo.icns DESTINATION share/gmsh
    10611061          RENAME GmshGeo.icns)
    1062   install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsMsh.icns DESTINATION .
     1062  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsMsh.icns DESTINATION share/gmsh
    10631063          RENAME GmshMsh.icns)
    1064   install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsPos.icns DESTINATION .
     1064  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsPos.icns DESTINATION share/gmsh
    10651065          RENAME GmshPos.icns)
    10661066  set(CPACK_PACKAGE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIcons.icns)
    10671067elseif(WIN32)