source: trunk/dports/_resources/port1.0/group/kde4-1.1.tcl

Last change on this file was 142093, checked in by nicos@…, 5 years ago

kde4 1.1 PortGroup: removing obsolete paths

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: kde4-1.1.tcl 142093 2015-11-03 12:20:58Z nicos@macports.org $
3
4# Copyright (c) 2010-2014 The MacPorts Project
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are
9# met:
10#
11# 1. Redistributions of source code must retain the above copyright
12#    notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright
14#    notice, this list of conditions and the following disclaimer in the
15#    documentation and/or other materials provided with the distribution.
16# 3. Neither the name of Apple Computer, Inc. nor the names of its
17#    contributors may be used to endorse or promote products derived from
18#    this software without specific prior written permission.
19#
20# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31#
32#
33# Usage:
34# PortGroup     kde4 1.1
35
36# Use CMake and Qt4 port groups
37PortGroup               cmake 1.0
38PortGroup               qt4 1.0
39
40# Make sure to not use any already installed headers and libraries;
41# these are set in CPATH and LIBRARY_PATH anyway.
42configure.ldflags-delete  -L${prefix}/lib
43configure.cppflags-delete -I${prefix}/include
44
45# setup all KDE4 ports to build in a separate directory from the source:
46cmake.out_of_source         yes
47
48# Automoc added as build dependency here as most, if not all kde
49# programs currently need it. The automoc port, which includes this
50# PortGroup overrides depends_build, removing "port:automoc" to
51# prevent a cyclic dependency
52depends_build-append    port:automoc
53
54# Phonon added as library dependency here as most, if not all KDE
55# programs current need it.  The phonon port, which includes this
56# PortGroup overrides depends_lib, removing "port:phonon" to prevent a
57# cyclic dependency
58depends_lib-append      port:phonon
59
60# set compiler to Apple's GCC 4.2
61switch ${os.platform}_${os.major} {
62    darwin_8 {
63            configure.compiler  apple-gcc-4.2
64    }
65    darwin_9 {
66            configure.compiler  gcc-4.2
67    }
68}
69
70# augment the CMake module lookup path, if necessary depending on
71# where Qt4 is installed.
72if {${qt_cmake_module_dir} ne ${cmake_share_module_dir}} {
73    set cmake_module_path ${cmake_share_module_dir}\;${qt_cmake_module_dir}
74    configure.args-delete -DCMAKE_MODULE_PATH=${cmake_share_module_dir}
75    configure.args-append -DCMAKE_MODULE_PATH="${cmake_module_path}"
76    unset cmake_module_path
77}
78
79# standard configure args; virtually all KDE ports use CMake and Qt4.
80configure.args-append   -DBUILD_doc=OFF \
81                        -DBUILD_docs=OFF \
82                        -DBUILD_SHARED_LIBS=ON \
83                        -DBUNDLE_INSTALL_DIR=${applications_dir}/KDE4 \
84                        -DKDE_DISTRIBUTION_TEXT=\"MacPorts\/Mac OS X\" \
85                        ${qt_cmake_defines}
86
87# explicitly define certain headers and libraries, to avoid
88# conflicts with those installed into system paths by the user.
89configure.args-append   -DDOCBOOKXSL_DIR=${prefix}/share/xsl/docbook-xsl \
90                        -DGETTEXT_INCLUDE_DIR=${prefix}/include \
91                        -DGETTEXT_LIBRARY=${prefix}/lib/libgettextlib.dylib \
92                        -DGIF_INCLUDE_DIR=${prefix}/include \
93                        -DGIF_LIBRARY=${prefix}/lib/libgif.dylib \
94                        -DJASPER_INCLUDE_DIR=${prefix}/include \
95                        -DJASPER_LIBRARY=${prefix}/lib/libjasper.dylib \
96                        -DJPEG_INCLUDE_DIR=${prefix}/include \
97                        -DJPEG_LIBRARY=${prefix}/lib/libjpeg.dylib \
98                        -DLBER_LIBRARIES=${prefix}/lib/liblber.dylib \
99                        -DLDAP_INCLUDE_DIR=${prefix}/include \
100                        -DLDAP_LIBRARIES=${prefix}/lib/libldap.dylib \
101                        -DLIBEXSLT_INCLUDE_DIR=${prefix}/include \
102                        -DLIBEXSLT_LIBRARIES=${prefix}/lib/libexslt.dylib \
103                        -DLIBICALSS_LIBRARY=${prefix}/lib/libicalss.dylib \
104                        -DLIBICAL_INCLUDE_DIRS=${prefix}/include \
105                        -DLIBICAL_LIBRARY=${prefix}/lib/libical.dylib \
106                        -DLIBINTL_INCLUDE_DIR=${prefix}/include \
107                        -DLIBINTL_LIBRARY=${prefix}/lib/libintl.dylib \
108                        -DLIBXML2_INCLUDE_DIR=${prefix}/include/libxml2 \
109                        -DLIBXML2_LIBRARIES=${prefix}/lib/libxml2.dylib \
110                        -DLIBXML2_XMLLINT_EXECUTABLE=${prefix}/bin/xmllint \
111                        -DLIBXSLT_INCLUDE_DIR=${prefix}/include \
112                        -DLIBXSLT_LIBRARIES=${prefix}/lib/libxslt.dylib \
113                        -DOPENAL_INCLUDE_DIR=/System/Library/Frameworks/OpenAL.framework/Headers \
114                        -DOPENAL_LIBRARY=/System/Library/Frameworks/OpenAL.framework \
115                        -DPNG_INCLUDE_DIR=${prefix}/include \
116                        -DPNG_PNG_INCLUDE_DIR=${prefix}/include \
117                        -DPNG_LIBRARY=${prefix}/lib/libpng.dylib \
118                        -DTIFF_INCLUDE_DIR=${prefix}/include \
119                        -DTIFF_LIBRARY=${prefix}/lib/libtiff.dylib
120
121# These two can be removed (see #46240):
122#                        -DQCA2_INCLUDE_DIR=${prefix}/include/QtCrypto \
123#                        -DQCA2_LIBRARIES=${prefix}/lib/libqca.dylib \
124# These ones are obsolete, as purely based on mysql5 paths (see #49296):
125#                        -DMYSQLD_EXECUTABLE=${prefix}/libexec/mysqld \
126#                        -DMYSQL_INCLUDE_DIR=${prefix}/include/mysql5/mysql \
127#                        -DMYSQL_LIB_DIR=${prefix}/lib/mysql5/mysql \
128#                        -DMYSQLCONFIG_EXECUTABLE=${prefix}/bin/mysql_config5 \
129
130# standard variant for building documentation
131variant docs description "Build documentation" {
132    depends_build-append    path:bin/doxygen:doxygen
133    configure.args-delete   -DBUILD_doc=OFF -DBUILD_docs=OFF
134}
135
136notes "
137Don't forget that dbus needs to be started as the local\
138user (not with sudo) before any KDE programs will launch.
139To start it run the following command:
140 launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
141"
Note: See TracBrowser for help on using the repository browser.