source: trunk/dports/kde/kstars/Portfile

Last change on this file was 150613, checked in by raimue@…, 12 months ago

science/cfitsio:
Fix compatibility version in library, closes #51645
Rev-bump all direct dependents for rebuild.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 150613 2016-07-24 08:27:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4   1.1
6
7name                kstars
8version             4.14.3
9revision            1
10categories          kde kde4
11platforms           darwin
12license             GPL-2+
13maintainers         nicos openmaintainer
14
15description         KStars is a Desktop Planetarium for KDE.
16long_description    ${description} It provides an accurate graphical simulation \
17                    of the night sky, from any location on Earth, at any date and time. The display \
18                    includes up to 100 million stars, 13,000 deep-sky objects ,all 8 planets, the Sun \
19                    and Moon, and thousands of comets and asteroids.
20
21homepage            http://edu.kde.org/kstars/
22master_sites        kde:stable/${version}/src/
23distname            ${name}-${version}
24use_xz              yes
25
26checksums           rmd160  6e0ae12cc2b7c9277294c720ebab6502d3fffd29 \
27                    sha256  771c46e8985724d7f5be74f4813bfba0a62cbb48e1c8d0cd27394a6f0ef15bde
28
29#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
30license_noconflict  openssl
31
32depends_lib-append  port:kdelibs4 \
33                    port:oxygen-icons \
34                    port:eigen3 \
35                    port:qjson \
36                    port:cfitsio
37
38patchfiles-append   patch-CMakeLists.txt.diff
39
40variant x11 {
41    depends_lib-append  port:xplanet
42}
43
44variant indi description "Add support for astronomical hardware through indi" {
45    depends_lib-append  port:indi
46}
47
48pre-configure {
49    #Ensure finding openGL
50    reinplace "s|<GL/gl.h>|<gl.h>|g" ${worksrcpath}/kstars/skyglpainter.cpp
51
52    #Path to indi
53    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/kstars/kstars.kcfg
54    #Force deactivation of documentation if no indi variant
55    if {![variant_isset indi]} {
56        reinplace "s|macro_optional_find_package(INDI)|#macro_optional_find_package(INDI)|g" \
57            ${worksrcpath}/CMakeLists.txt
58        reinplace "s|macro_bool_to_01(INDI_FOUND HAVE_INDI_H)|#macro_bool_to_01(INDI_FOUND HAVE_INDI_H)|g" \
59            ${worksrcpath}/CMakeLists.txt
60    }
61
62    #Force deactivation of documentation if no docs variant
63    if {![variant_isset docs]} {
64        reinplace "s|add_subdirectory( doc )|#add_subdirectory( doc )|g" ${worksrcpath}/CMakeLists.txt
65    }
66
67    #Force deactivation of xplanet if no x11 variant
68    if {![variant_isset x11]} {
69        reinplace "s|macro_optional_find_package(Xplanet)|#macro_optional_find_package(Xplanet)|g" \
70            ${worksrcpath}/CMakeLists.txt
71        reinplace "s|macro_bool_to_01(XPLANET_FOUND HAVE_XPLANET)|#macro_bool_to_01(XPLANET_FOUND HAVE_XPLANET)|g" \
72            ${worksrcpath}/CMakeLists.txt
73    }
74}
75
76livecheck.url       http://kde.mirrors.hoobly.com/stable/
77livecheck.regex     (\\d+(\\.\\d+)+)
Note: See TracBrowser for help on using the repository browser.