source: trunk/dports/science/stellarium/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

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