Ticket #40648: 0001-Fix-the-CMake-port-specific-part-of-ticket-40648.patch

File 0001-Fix-the-CMake-port-specific-part-of-ticket-40648.patch, 812 bytes (added by maehne (Torsten Maehne), 10 years ago)
  • ports/devel/cmake/Portfile

    diff --git a/ports/devel/cmake/Portfile b/ports/devel/cmake/Portfile
    index abdea68..a9e064e 100644
    a b PortGroup muniversal 1.0 
    66
    77name                cmake
    88version             2.8.12
     9revision            1
    910set branch          [join [lrange [split ${version} .] 0 1] .]
    1011categories          devel
    1112license             BSD
    post-patch { 
    6667    # patch PREFIX
    6768    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/macports.cmake
    6869    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Modules/CMakeFindFrameworks.cmake
    69 
    70     # Don't force -O3.  Honor ports' ${configure.optflags}
    71     eval reinplace "s|-O3||g" [glob ${worksrcpath}/Modules/{Compiler,Platform}/*.cmake]
    7270}
    7371
    7472post-destroot {