source: trunk/dports/kde/kdelibs4/Portfile @ 88159

Last change on this file since 88159 was 88159, checked in by snc@…, 7 years ago

KDE 4.7.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 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 88159 2011-12-21 00:51:46Z snc@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4   1.1
6
7name                kdelibs4
8version             4.7.4
9categories          kde kde4
10maintainers         snc sharky michaelld
11license             GPL-2+
12description         KDE4 core libraries
13long_description    Core libraries for KDE4 applications to function
14platforms           darwin
15homepage            http://www.kde.org
16master_sites        kde:stable/${version}/src/
17use_bzip2           yes
18distname            kdelibs-${version}
19
20checksums           rmd160  5666cacb69ebdbd2d0e9ce9300f35ecf6d6ba48c \
21                    sha256  fe1d41ecce95d9ef67a9b81cee55afe5ac98aa937e2c2356bd69f9bb31a2af39
22
23depends_build-append port:flex port:gmake port:docbook-xsl-ns
24
25depends_lib-append  port:bzip2 port:zlib \
26                    port:soprano port:cyrus-sasl2 \
27                    port:strigi port:gettext \
28                    port:pcre port:shared-mime-info \
29                    lib:libgif:giflib port:tiff \
30                    port:jpeg port:libpng \
31                    port:jasper port:openexr \
32                    port:expat port:libart_lgpl \
33                    port:libidn port:libiconv \
34                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
35                    port:openssl port:enchant \
36                    port:aspell port:aspell-dict-en \
37                    port:attica port:liblzma \
38                    port:avahi port:qca \
39                    port:dbusmenu-qt port:docbook-xml \
40                    port:docbook-xsl port:grantlee \
41                    port:kerberos5 \
42                    port:shared-desktop-ontologies
43
44# the aspell dictionaries are just files
45depends_skip_archcheck aspell-dict-en
46
47conflicts           kdelibs3
48
49patchfiles          add-bundles-to-path.patch \
50                    default-kde4-xdg-menu-prefix.patch \
51                    workaround-kdeinit4-crash.patch \
52                    patch-cmake-modules-FindKDE4-Internal.cmake.diff \
53                    patch-cmake-modules-FindPhonon.cmake.diff \
54                    patch-cmake-modules-FindQt4.cmake.diff
55
56patch.pre_args      -p1
57
58# does not work with clang, #30642
59if {${configure.compiler} == "clang"} {
60    configure.compiler llvm-gcc-4.2
61}
62
63# explicitly define certain headers and libraries, to avoid
64# conflicts with those installed into system paths by the user.
65configure.args-append   -DWITH_ENCHANT=ON \
66                        -DWITH_Soprano=ON \
67                        -DWITH_Avahi=ON \
68                        -DKDE_DEFAULT_HOME=Library/Preferences/KDE \
69                        -DWITH_HSPELL=OFF \
70                        -DWITH_FAM=OFF
71
72if { [file exists ${destroot}${prefix}/lib/kde4/kspell_aspell.so] } {
73    notes "
74Only the English dictionary has been installed.
75You will need to install extra dictionaries to
76get support for spell checking other languages.
77The command 'port search aspell-dict' will show
78you the currently available dictionary options.
79"
80}
81
82pre-activate {
83    if {[file exists ${prefix}/share/locale/en_US/entry.desktop]
84        && ![catch {set vers [lindex [registry_active kde4-runtime] 0]}]
85        && [rpm-vercomp [lindex $vers 1] 4.6.0] < 0} {
86        set deactivate_proc registry_deactivate_composite
87        if {[info commands registry_deactivate_composite] == {}} {
88            set deactivate_proc registry_deactivate
89        }
90        $deactivate_proc kde4-runtime "" [list ports_nodepcheck 1]
91    }
92}
93
94post-destroot {
95    xinstall -d ${destroot}${prefix}/include/nepomuk
96    eval xinstall -m 644 [glob ${worksrcpath}/nepomuk/core/*.h] \
97        ${destroot}${prefix}/include/nepomuk
98}
99
100livecheck.url       http://kde.mirrors.hoobly.com/stable/latest/src/
101livecheck.regex     kdelibs-(\\d+\\.\\d+\\.\\d+)
Note: See TracBrowser for help on using the repository browser.