Ticket #25181: stellarium-Portfile_0_10_4.diff

File stellarium-Portfile_0_10_4.diff, 1.5 KB (added by michaelld (Michael Dickens), 14 years ago)

Patch to upgrade Stellarium portfile such that 0.10.4 compiles cleanly, but does not execute.

  • (a) Portfile_orig vs. (b) Portfile

    a b  
    44
    55name            stellarium
    66version         0.10.4
     7revision        1
    78categories      science
    89platforms       darwin
    910maintainers     raimue \
     
    3738    reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \"i386\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
    3839}
    3940
     41platform darwin 9 {
     42    # Upgrade MacOSX SDK version to 10.5, for compatibility with qt4-mac
     43    post-patch {
     44        reinplace "s:-mmacosx-version-min=10.4:-mmacosx-version-min=10.5:" ${worksrcpath}/CMakeLists.txt
     45        reinplace "s:SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.4\"):SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.5\"):" ${worksrcpath}/CMakeLists.txt
     46        reinplace "s:MacOSX10.4u.sdk:MacOSX10.5.sdk:" ${worksrcpath}/CMakeLists.txt
     47    }
     48}
     49
     50platform darwin 10 {
     51    # Upgrade MacOSX SDK version to 10.5, for compatibility with qt4-mac
     52    post-patch {
     53        reinplace "s:-mmacosx-version-min=10.4:-mmacosx-version-min=10.5:" ${worksrcpath}/CMakeLists.txt
     54        reinplace "s:SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.4\"):SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.5\"):" ${worksrcpath}/CMakeLists.txt
     55        reinplace "s:MacOSX10.4u.sdk:MacOSX10.5.sdk:" ${worksrcpath}/CMakeLists.txt
     56    }
     57}
     58
    4059configure.cmd       cmake
    4160# cmake is unable to find FreeType2, so specify it here
    4261configure.pre_args  -DFreeType2_INCLUDE_DIR:PATH=${prefix}/include/freetype2 \