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) |
---|
-
(a) Portfile_orig vs. (b) Portfile
a b 3 3 PortSystem 1.0 4 4 5 5 name stellarium 6 version 0.10. 46 version 0.10.5 7 7 categories science 8 8 platforms darwin 9 9 maintainers raimue \ … … 18 18 homepage http://stellarium.org/ 19 19 20 20 master_sites sourceforge 21 checksums md5 ebb81f609c91be6ecd7e91cf7d3a4afa\22 sha1 8a9f22da5a0049ea10b19b24d28490dc15dea1a8\23 rmd160 ed2ea67c905adb211266df29dca2f8ed1626ad8e21 checksums md5 4038585e3554febde92f2166d52bc8a8 \ 22 sha1 584ab8e3618bf9a0b15619260fbe240843a8f5e1 \ 23 rmd160 dc4e942a4767e7afac62e766f4c11888fafe1c45 24 24 25 25 depends_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 26 depends_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 27 34 28 35 post-patch { 29 reinplace "s:SET(CMAKE_INSTALL_PREFIX \"\$\{PROJECT_BINARY_DIR\}/:SET \(CMAKE_INSTALL_PREFIX \"${applications_dir}/:" ${worksrcpath}/CMakeLists.txt36 reinplace "s:SET(CMAKE_INSTALL_PREFIX \"\$\{PROJECT_BINARY_DIR\}/:SET(CMAKE_INSTALL_PREFIX \"${applications_dir}/:" ${worksrcpath}/CMakeLists.txt 30 37 31 38 # Determine which archs to build 32 39 if {[variant_isset universal]} { … … 34 41 } else { 35 42 set archs ${configure.build_arch} 36 43 } 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 47 platform 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 56 platform 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 } 38 63 } 39 64 40 65 configure.cmd cmake 41 66 # cmake is unable to find FreeType2, so specify it here 42 67 configure.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 44 78 configure.args -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake \ 45 79 -G \"Unix Makefiles\" . 46 80