Ticket #25181: stellarium_Portfile.diff

File stellarium_Portfile.diff, 3.1 KB (added by michaelld (Michael Dickens), 14 years ago)

Diffs to upgrade stellarium Portfile from 0.10.4 to 0.10.5; still won't compile, but getting closer.

  • (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# for 0.10.4
     45#    reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \"i386\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
     46# for 0.10.5
     47    reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \"i386;ppc\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
    3848}
    3949
    4050configure.cmd       cmake
    4151# cmake is unable to find FreeType2, so specify it here
    4252configure.pre_args  -DFreeType2_INCLUDE_DIR:PATH=${prefix}/include/freetype2 \
    43                     -DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib
     53                    -DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib \
     54                    -DZLIB_INCLUDE_DIR:PATH=${prefix}/include \
     55                    -DZLIB_LIBRARY:FILEPATH=${prefix}/lib/libz.dylib \
     56                    -DQT_ZLIB_LIBRARY:FILEPATH=${prefix}/lib/libz.dylib \
     57                    -DICONV_INCLUDE_DIR:PATH=${prefix}/include \
     58                    -DICONV_LIBRARIES:FILEPATH=${prefix}/lib/libiconv.dylib \
     59                    -DOPENSSL_CRYPTO_LIBRARIES:FILEPATH=${prefix}/lib/libcrypto.dylib \
     60                    -DOPENSSL_INCLUDE_DIR:PATH=${prefix}/include/openssl \
     61                    -DOPENSSL_SSL_LIBRARIES:FILEPATH=${prefix}/lib/libssl.dylib
     62
     63
    4464configure.args      -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake \
    4565                    -G \"Unix Makefiles\" .
    4666