source: trunk/dports/science/stellarium/Portfile @ 136285

Last change on this file since 136285 was 132008, checked in by raimue@…, 5 years ago

science/stellarium:
Update to version 0.12.5, closes #46632

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- 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
2# $Id: Portfile 132008 2015-01-23 09:04:17Z raimue@macports.org $
3
4PortSystem 1.0
5PortGroup  qt4 1.0
6
7name            stellarium
8version         0.12.5
9categories      science
10platforms       darwin
11license         GPL-2+
12maintainers     raimue \
13                michaelld
14
15description     Stellarium is a free open source planetarium for your computer.
16long_description \
17    Stellarium is a free open source planetarium for your computer. \
18    It shows a realistic sky in 3D, just like what you see with the naked eye, \
19    binoculars or a telescope. It is being used in planetarium projectors. Just \
20    set your coordinates and go.
21homepage        http://stellarium.org/
22
23master_sites    sourceforge
24checksums       rmd160  e925e75f0fbaa65f9f2ce04d200b50f73c01c5a5 \
25                sha256  15fbc0f12f25e4dbf7eb360c422987ca312201e3b41e6eadba028f1af9174559
26
27depends_build-append port:cmake
28depends_lib-append \
29                port:freetype \
30                port:libiconv \
31                port:openssl \
32                port:phonon
33
34patchfiles      patch-libc++.diff
35
36post-patch {
37    reinplace "s:SET(CMAKE_INSTALL_PREFIX \"\$\{PROJECT_BINARY_DIR\}/:SET(CMAKE_INSTALL_PREFIX \"${applications_dir}/:" ${worksrcpath}/CMakeLists.txt
38
39    # Determine which archs to build
40    if {[variant_isset universal]} {
41        set archs ${configure.universal_archs}
42    } else {
43        set archs ${configure.build_arch}
44    }
45    reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \".*\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
46}
47
48configure.cmd       cmake
49# specify MacPorts' dependencies to cmake
50configure.pre_args  -DFreeType2_INCLUDE_DIR:PATH=${prefix}/include/freetype2 \
51                    -DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib \
52                    -DZLIB_INCLUDE_DIR:PATH=${prefix}/include \
53                    -DZLIB_LIBRARY:FILEPATH=${prefix}/lib/libz.dylib \
54                    -DICONV_INCLUDE_DIR:PATH=${prefix}/include \
55                    -DICONV_LIBRARIES:FILEPATH=${prefix}/lib/libiconv.dylib \
56                    -DOPENSSL_CRYPTO_LIBRARIES:FILEPATH=${prefix}/lib/libcrypto.dylib \
57                    -DOPENSSL_INCLUDE_DIR:PATH=${prefix}/include/openssl \
58                    -DOPENSSL_SSL_LIBRARIES:FILEPATH=${prefix}/lib/libssl.dylib \
59                    ${qt_cmake_defines}
60
61configure.args      .
62
63# This post-destroot phase is similar to the 'make macosx_bundle' target,
64# but it does not copy libraries into the bundle and does not require perl as
65# another dependency
66post-destroot {
67    set appdir ${destroot}${applications_dir}/Stellarium.app/Contents
68
69    move ${appdir}/bin ${appdir}/MacOS
70    move ${appdir}/share ${appdir}/Resources
71    eval move [glob ${appdir}/Resources/stellarium/*] ${appdir}/Resources/
72    delete ${appdir}/Resources/stellarium
73
74    # copy .app-specific files
75    copy ${worksrcpath}/data/Info.plist ${appdir}
76    copy ${worksrcpath}/data/PkgInfo ${appdir}
77    copy ${worksrcpath}/data/Icon.icns ${appdir}/Resources/
78
79    # copy other useful file(s)
80    copy ${worksrcpath}/util/qt.conf ${appdir}/Resources/
81}
82
83# Supports universal builds through cmake, archs are set in post-patch
84variant universal {}
85
86livecheck.url http://sourceforge.net/projects/stellarium/files/
87livecheck.regex "Stellarium-sources/.*/stellarium-(.*)[quotemeta ${extract.suffix}]"
Note: See TracBrowser for help on using the repository browser.