Ticket #25614: patch-Portfile.diff

File patch-Portfile.diff, 1.2 KB (added by cssdev, 14 years ago)
  • Portfile

     
    66
    77name            cmake
    88version         2.8.2
    9 revision        1
     9revision        2
    1010set branch      [join [lrange [split ${version} .] 0 1] .]
    1111categories      devel
    1212maintainers     css
     
    2626
    2727depends_lib     port:libidn port:openssl
    2828
    29 configure.env   CMAKE_PREFIX_PATH=${prefix}
    30 configure.args  --mandir=/share/man --docdir=/share/doc/cmake --parallel=${build.jobs}
     29configure.env   CMAKE_PREFIX_PATH=${prefix} \
     30                                CMAKE_INCLUDE_PATH=${prefix}/include/ncurses \
     31                                CMAKE_LIBRARY_PATH=${prefix}/lib
     32
     33configure.args  --mandir=/share/man --docdir=/share/doc/cmake \
     34                                --parallel=${build.jobs} \
     35                                --init=${worksrcpath}/macports.cmake
    3136patchfiles      patch-CMakeFindFrameworks.cmake.diff
    3237post-patch {
    3338        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Modules/CMakeFindFrameworks.cmake
     39        copy ${filespath}/macports.cmake ${worksrcpath}
    3440}
    3541
     42platform darwin {
     43        post-configure {
     44                reinplace "s|/usr/lib/libcurses|${prefix}/lib/libncurses|g" ${worksrcpath}/CMakeCache.txt
     45        }
     46}
     47
    3648post-destroot {
    3749        xinstall -d -m 0755 ${destroot}${prefix}/share/emacs/site-lisp
    3850        xinstall -m 0644 ${worksrcpath}/Docs/cmake-mode.el \