[70716] trunk/dports/_resources/port1.0/group/kde4-1.1.tcl

snc at macports.org snc at macports.org
Wed Aug 18 11:59:30 PDT 2010


Revision: 70716
          http://trac.macports.org/changeset/70716
Author:   snc at macports.org
Date:     2010-08-18 11:59:27 -0700 (Wed, 18 Aug 2010)
Log Message:
-----------
create kde4 1.1 to handle phonon version discrepancies between qt-mac and qt-mac-devel

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

Copied: trunk/dports/_resources/port1.0/group/kde4-1.1.tcl (from rev 70715, trunk/dports/_resources/port1.0/group/kde4-1.0.tcl)
===================================================================
--- trunk/dports/_resources/port1.0/group/kde4-1.1.tcl	                        (rev 0)
+++ trunk/dports/_resources/port1.0/group/kde4-1.1.tcl	2010-08-18 18:59:27 UTC (rev 70716)
@@ -0,0 +1,102 @@
+# $Id$
+
+# Copyright (c) 2009 Orville Bennett <illogical1 at gmail.com>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+# 3. Neither the name of Apple Computer, Inc. nor the names of its
+#    contributors may be used to endorse or promote products derived from
+#    this software without specific prior written permission.
+# 
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+#
+# Usage:
+# PortGroup     kde4 1.1
+
+
+# Use CMake Portgroup
+PortGroup               cmake 1.0
+
+use_parallel_build      yes
+
+worksrcdir              build
+
+post-extract            { file mkdir ${worksrcpath} }
+
+set qt                  qt4-mac-devel
+set qt_dir              ${prefix}/libexec/${qt}
+
+post-patch {
+    if { ![file exists ${prefix}/libexec/${qt}/lib/phonon.framework/phonon] } {
+        ui_error "######################################################"
+        ui_error "A copy of phonon could not be found. Please install  "
+        ui_error "${qt} to provide this. If you have already done this "
+        ui_error "your Qt installation is missing the phonon backend.  "
+        ui_error "Please reinstall Qt4 with phonon support.            "
+        ui_error "######################################################"
+    }
+}
+
+# Automoc added as build dependency here as most, if not all kde programs 
+# currently need it. The automoc port, which includes this PortGroup 
+# overrides depends_build, removing "port:automoc" to prevent a
+# cyclic dependency
+depends_build-append    port:automoc
+depends_lib-append      port:${qt}
+
+switch ${os.platform}_${os.major} {
+    darwin_8 {
+	    depends_lib-append 	port:apple-gcc42-devel
+	    configure.compiler	apple-gcc-4.2
+    }
+    darwin_9 {
+	    configure.compiler      gcc-4.2
+    }
+}
+
+configure.args-append   -DBUILD_doc=OFF \
+                        -DBUILD_SHARED_LIBS=ON \
+                        -DBUNDLE_INSTALL_DIR=${applications_dir}/KDE4 \
+                        -DPHONON_INCLUDE_DIR=${prefix}/include \
+                        -DPHONON_LIBRARY=${prefix}/lib/libphonon.dylib \
+                        -DQT_QMAKE_EXECUTABLE=${qt_dir}/bin/qmake \
+                        -DKDE_DISTRIBUTION_TEXT="MacPorts\/Mac OS X"
+
+variant docs description "Build documentation" {
+    depends_lib-append      port:doxygen
+    configure.args-delete   -DBUILD_doc=OFF
+}
+
+post-activate {
+    ui_msg "##########################################################"
+    ui_msg "# Don't forget that dbus needs to be started as the local "
+    ui_msg "# user (not with sudo) before any KDE programs will launch"
+    ui_msg "# To start it run the following command:                  "
+    ui_msg "# launchctl load /Library/LaunchAgents/org.freedesktop.dbus-session.plist"
+    ui_msg "##########################################################"
+    ui_msg " "
+    ui_msg "######################################################"
+    ui_msg "#  Programs will not start until you run the command "
+    ui_msg "#  'sudo chown -R \$USER ~/Library/Preferences/KDE'  "
+    ui_msg "#  replacing \$USER with your username.              "
+    ui_msg "######################################################"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100818/e1c56451/attachment.html>


More information about the macports-changes mailing list