Ticket #25181: stellarium-Portfile_0_10_5.diff

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

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

  • (a) Portfile_orig vs. (b) Portfile

    a b  
    33PortSystem 1.0
    44
    55name            stellarium
    6 version         0.10.4
     6version         0.10.5
    77categories      science
    88platforms       darwin
    99maintainers     raimue \
     
    1818homepage        http://stellarium.org/
    1919
    2020master_sites    sourceforge
    21 checksums       md5     ebb81f609c91be6ecd7e91cf7d3a4afa \
    22                 sha1    8a9f22da5a0049ea10b19b24d28490dc15dea1a8 \
    23                 rmd160  ed2ea67c905adb211266df29dca2f8ed1626ad8e
     21checksums       md5     4038585e3554febde92f2166d52bc8a8 \
     22                sha1    584ab8e3618bf9a0b15619260fbe240843a8f5e1 \
     23                rmd160  dc4e942a4767e7afac62e766f4c11888fafe1c45
    2424
    2525depends_build   port:cmake
    26 depends_lib     port:boost port:libsdl_mixer path:lib/pkgconfig/sdl.pc:libsdl path:bin/qmake-mac:qt4-mac port:freetype
     26depends_lib     port:boost \
     27                port:libsdl_mixer \
     28                path:lib/pkgconfig/sdl.pc:libsdl \
     29                path:bin/qmake-mac:qt4-mac \
     30                port:freetype \
     31                port:zlib \
     32                port:libiconv \
     33                port:openssl
    2734
    2835post-patch {
    29     reinplace "s:SET(CMAKE_INSTALL_PREFIX \"\$\{PROJECT_BINARY_DIR\}/:SET\(CMAKE_INSTALL_PREFIX \"${applications_dir}/:" ${worksrcpath}/CMakeLists.txt
     36    reinplace "s:SET(CMAKE_INSTALL_PREFIX \"\$\{PROJECT_BINARY_DIR\}/:SET(CMAKE_INSTALL_PREFIX \"${applications_dir}/:" ${worksrcpath}/CMakeLists.txt
    3037
    3138    # Determine which archs to build
    3239    if {[variant_isset universal]} {
     
    3441    } else {
    3542        set archs ${configure.build_arch}
    3643    }
    37     reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \"i386\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
     44    reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \"i386;ppc\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
     45}
     46
     47platform darwin 9 {
     48    # Upgrade MacOSX SDK version to 10.5, for compatibility with qt4-mac
     49    post-patch {
     50        reinplace "s:-mmacosx-version-min=10.4:-mmacosx-version-min=10.5:" ${worksrcpath}/CMakeLists.txt
     51        reinplace "s:SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.4\"):SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.5\"):" ${worksrcpath}/CMakeLists.txt
     52        reinplace "s:MacOSX10.4u.sdk:MacOSX10.5.sdk:" ${worksrcpath}/CMakeLists.txt
     53    }
     54}
     55
     56platform darwin 10 {
     57    # Upgrade MacOSX SDK version to 10.5, for compatibility with qt4-mac
     58    post-patch {
     59        reinplace "s:-mmacosx-version-min=10.4:-mmacosx-version-min=10.5:" ${worksrcpath}/CMakeLists.txt
     60        reinplace "s:SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.4\"):SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.5\"):" ${worksrcpath}/CMakeLists.txt
     61        reinplace "s:MacOSX10.4u.sdk:MacOSX10.5.sdk:" ${worksrcpath}/CMakeLists.txt
     62    }
    3863}
    3964
    4065configure.cmd       cmake
    4166# cmake is unable to find FreeType2, so specify it here
    4267configure.pre_args  -DFreeType2_INCLUDE_DIR:PATH=${prefix}/include/freetype2 \
    43                     -DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib
     68                    -DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib \
     69                    -DZLIB_INCLUDE_DIR:PATH=${prefix}/include \
     70                    -DZLIB_LIBRARY:FILEPATH=${prefix}/lib/libz.dylib \
     71                    -DQT_ZLIB_LIBRARY:FILEPATH=${prefix}/lib/libz.dylib \
     72                    -DICONV_INCLUDE_DIR:PATH=${prefix}/include \
     73                    -DICONV_LIBRARIES:FILEPATH=${prefix}/lib/libiconv.dylib \
     74                    -DOPENSSL_CRYPTO_LIBRARIES:FILEPATH=${prefix}/lib/libcrypto.dylib \
     75                    -DOPENSSL_INCLUDE_DIR:PATH=${prefix}/include/openssl \
     76                    -DOPENSSL_SSL_LIBRARIES:FILEPATH=${prefix}/lib/libssl.dylib
     77
    4478configure.args      -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake \
    4579                    -G \"Unix Makefiles\" .
    4680