Ticket #25181: stellarium_Portfile.diff
File stellarium_Portfile.diff, 3.1 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 # 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 38 48 } 39 49 40 50 configure.cmd cmake 41 51 # cmake is unable to find FreeType2, so specify it here 42 52 configure.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 44 64 configure.args -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake \ 45 65 -G \"Unix Makefiles\" . 46 66