# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup qt4 1.0 name stellarium version 0.12.5 revision 2 categories science platforms darwin license GPL-2+ maintainers raimue \ michaelld description Stellarium is a free open source planetarium for your computer. long_description \ Stellarium is a free open source planetarium for your computer. \ It shows a realistic sky in 3D, just like what you see with the naked eye, \ binoculars or a telescope. It is being used in planetarium projectors. Just \ set your coordinates and go. homepage http://stellarium.org/ master_sites sourceforge checksums rmd160 e925e75f0fbaa65f9f2ce04d200b50f73c01c5a5 \ sha256 15fbc0f12f25e4dbf7eb360c422987ca312201e3b41e6eadba028f1af9174559 depends_lib-append \ port:freetype \ port:libiconv \ path:lib/libssl.dylib:openssl \ port:phonon patchfiles patch-libc++.diff post-patch { reinplace "s:SET(CMAKE_INSTALL_PREFIX \"\$\{PROJECT_BINARY_DIR\}/:SET(CMAKE_INSTALL_PREFIX \"${applications_dir}/:" ${worksrcpath}/CMakeLists.txt # Determine which archs to build if {[variant_isset universal]} { set archs ${configure.universal_archs} } else { set archs ${configure.build_arch} } reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \".*\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt } configure.cmd cmake # specify MacPorts' dependencies to cmake configure.pre_args -DFreeType2_INCLUDE_DIR:PATH=${prefix}/include/freetype2 \ -DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib \ -DZLIB_INCLUDE_DIR:PATH=${prefix}/include \ -DZLIB_LIBRARY:FILEPATH=${prefix}/lib/libz.dylib \ -DICONV_INCLUDE_DIR:PATH=${prefix}/include \ -DICONV_LIBRARIES:FILEPATH=${prefix}/lib/libiconv.dylib \ -DOPENSSL_CRYPTO_LIBRARIES:FILEPATH=${prefix}/lib/libcrypto.dylib \ -DOPENSSL_INCLUDE_DIR:PATH=${prefix}/include/openssl \ -DOPENSSL_SSL_LIBRARIES:FILEPATH=${prefix}/lib/libssl.dylib \ ${qt_cmake_defines} configure.args . # This post-destroot phase is similar to the 'make macosx_bundle' target, # but it does not copy libraries into the bundle and does not require perl as # another dependency post-destroot { set appdir ${destroot}${applications_dir}/Stellarium.app/Contents move ${appdir}/bin ${appdir}/MacOS move ${appdir}/share ${appdir}/Resources eval move [glob ${appdir}/Resources/stellarium/*] ${appdir}/Resources/ delete ${appdir}/Resources/stellarium # copy .app-specific files copy ${worksrcpath}/data/Info.plist ${appdir} copy ${worksrcpath}/data/PkgInfo ${appdir} copy ${worksrcpath}/data/Icon.icns ${appdir}/Resources/ # copy other useful file(s) copy ${worksrcpath}/util/qt.conf ${appdir}/Resources/ } # Supports universal builds through cmake, archs are set in post-patch variant universal {} livecheck.url http://sourceforge.net/projects/stellarium/files/ livecheck.regex "Stellarium-sources/.*/stellarium-(.*)[quotemeta ${extract.suffix}]"