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

Last change on this file since 133738 was 133738, checked in by mk@…, 4 years ago

kde4-1.1 port group change according to #46240

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.0 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 133738 2015-03-09 22:53:00Z mk@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;
46# this setting must be the full directory path
47post-extract            { file mkdir ${workpath}/build }
48
49# standard post-arg, where to find the primary CMakeLists.txt file.
50default configure.post_args {../${worksrcdir}}
51default configure.dir       {${workpath}/build}
52default build.dir           {${workpath}/build}
53
54# Automoc added as build dependency here as most, if not all kde
55# programs currently need it. The automoc port, which includes this
56# PortGroup overrides depends_build, removing "port:automoc" to
57# prevent a cyclic dependency
58depends_build-append    port:automoc
59
60# Phonon added as library dependency here as most, if not all KDE
61# programs current need it.  The phonon port, which includes this
62# PortGroup overrides depends_lib, removing "port:phonon" to prevent a
63# cyclic dependency
64depends_lib-append      port:phonon
65
66# set compiler to Apple's GCC 4.2
67switch ${os.platform}_${os.major} {
68    darwin_8 {
69            configure.compiler  apple-gcc-4.2
70    }
71    darwin_9 {
72            configure.compiler  gcc-4.2
73    }
74}
75
76# augment the CMake module lookup path, if necessary depending on
77# where Qt4 is installed.
78if {${qt_dir} ne ${prefix}} {
79    set cmake_module_path ${cmake_share_module_dir}\;${qt_cmake_module_dir}
80    configure.args-delete -DCMAKE_MODULE_PATH=${cmake_share_module_dir}
81    configure.args-append -DCMAKE_MODULE_PATH="${cmake_module_path}"
82    unset cmake_module_path
83}
84
85# standard configure args; virtually all KDE ports use CMake and Qt4.
86configure.args-append   -DBUILD_doc=OFF \
87                        -DBUILD_docs=OFF \
88                        -DBUILD_SHARED_LIBS=ON \
89                        -DBUNDLE_INSTALL_DIR=${applications_dir}/KDE4 \
90                        -DKDE_DISTRIBUTION_TEXT=\"MacPorts\/Mac OS X\" \
91                        ${qt_cmake_defines}
92
93# explicitly define certain headers and libraries, to avoid
94# conflicts with those installed into system paths by the user.
95configure.args-append   -DDOCBOOKXSL_DIR=${prefix}/share/xsl/docbook-xsl \
96                        -DGETTEXT_INCLUDE_DIR=${prefix}/include \
97                        -DGETTEXT_LIBRARY=${prefix}/lib/libgettextlib.dylib \
98                        -DGIF_INCLUDE_DIR=${prefix}/include \
99                        -DGIF_LIBRARY=${prefix}/lib/libgif.dylib \
100                        -DJASPER_INCLUDE_DIR=${prefix}/include \
101                        -DJASPER_LIBRARY=${prefix}/lib/libjasper.dylib \
102                        -DJPEG_INCLUDE_DIR=${prefix}/include \
103                        -DJPEG_LIBRARY=${prefix}/lib/libjpeg.dylib \
104                        -DLBER_LIBRARIES=${prefix}/lib/liblber.dylib \
105                        -DLDAP_INCLUDE_DIR=${prefix}/include \
106                        -DLDAP_LIBRARIES=${prefix}/lib/libldap.dylib \
107                        -DLIBEXSLT_INCLUDE_DIR=${prefix}/include \
108                        -DLIBEXSLT_LIBRARIES=${prefix}/lib/libexslt.dylib \
109                        -DLIBICALSS_LIBRARY=${prefix}/lib/libicalss.dylib \
110                        -DLIBICAL_INCLUDE_DIRS=${prefix}/include \
111                        -DLIBICAL_LIBRARY=${prefix}/lib/libical.dylib \
112                        -DLIBINTL_INCLUDE_DIR=${prefix}/include \
113                        -DLIBINTL_LIBRARY=${prefix}/lib/libintl.dylib \
114                        -DLIBXML2_INCLUDE_DIR=${prefix}/include/libxml2 \
115                        -DLIBXML2_LIBRARIES=${prefix}/lib/libxml2.dylib \
116                        -DLIBXML2_XMLLINT_EXECUTABLE=${prefix}/bin/xmllint \
117                        -DLIBXSLT_INCLUDE_DIR=${prefix}/include \
118                        -DLIBXSLT_LIBRARIES=${prefix}/lib/libxslt.dylib \
119                        -DMYSQLD_EXECUTABLE=${prefix}/libexec/mysqld \
120                        -DMYSQL_INCLUDE_DIR=${prefix}/include/mysql5/mysql \
121                        -DMYSQL_LIB_DIR=${prefix}/lib/mysql5/mysql \
122                        -DMYSQLCONFIG_EXECUTABLE=${prefix}/bin/mysql_config5 \
123                        -DOPENAL_INCLUDE_DIR=/System/Library/Frameworks/OpenAL.framework/Headers \
124                        -DOPENAL_LIBRARY=/System/Library/Frameworks/OpenAL.framework \
125                        -DPNG_INCLUDE_DIR=${prefix}/include \
126                        -DPNG_PNG_INCLUDE_DIR=${prefix}/include \
127                        -DPNG_LIBRARY=${prefix}/lib/libpng.dylib \
128                        -DTIFF_INCLUDE_DIR=${prefix}/include \
129                        -DTIFF_LIBRARY=${prefix}/lib/libtiff.dylib
130
131# These two can be removed (see #46240):
132#                        -DQCA2_INCLUDE_DIR=${prefix}/include/QtCrypto \
133#                        -DQCA2_LIBRARIES=${prefix}/lib/libqca.dylib \
134
135# standard variant for building documentation
136variant docs description "Build documentation" {
137    depends_lib-append      port:doxygen
138    configure.args-delete   -DBUILD_doc=OFF -DBUILD_docs=OFF
139}
140
141notes "
142Don't forget that dbus needs to be started as the local\
143user (not with sudo) before any KDE programs will launch.
144To start it run the following command:
145 launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
146"
Note: See TracBrowser for help on using the repository browser.