[45913] trunk/dports/_resources/port1.0/group

illogic-al at macports.org illogic-al at macports.org
Sun Jan 25 00:36:14 PST 2009


Revision: 45913
          http://trac.macports.org/changeset/45913
Author:   illogic-al at macports.org
Date:     2009-01-25 00:36:11 -0800 (Sun, 25 Jan 2009)
Log Message:
-----------
Commit new cmake and kde4 portgroups.
TODO: test 'extract.mkdir yes' option and use if possible.

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

Added: trunk/dports/_resources/port1.0/group/cmake-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/cmake-1.0.tcl	                        (rev 0)
+++ trunk/dports/_resources/port1.0/group/cmake-1.0.tcl	2009-01-25 08:36:11 UTC (rev 45913)
@@ -0,0 +1,48 @@
+# 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.
+#
+# Here lies the CMake 1.0 Portgroup
+depends_build       port:cmake
+
+#FIXME: ccache works with cmake on linux
+configure.ccache    no
+configure.cmd       cmake
+configure.pre_args  -DCMAKE_INSTALL_PREFIX=${prefix}
+configure.args      -DCMAKE_VERBOSE_MAKEFILE=ON \
+                    -DCMAKE_COLOR_MAKEFILE=ON \
+                    -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
+                    -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
+                    -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
+                    -Wno-dev
+
+variant universal {
+    configure.universal_args-delete --disable-dependency-tracking
+    configure.args-append \
+        -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\"
+}
+

Added: trunk/dports/_resources/port1.0/group/kde4-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/kde4-1.0.tcl	                        (rev 0)
+++ trunk/dports/_resources/port1.0/group/kde4-1.0.tcl	2009-01-25 08:36:11 UTC (rev 45913)
@@ -0,0 +1,53 @@
+# 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.
+#
+PortGroup cmake 1.0
+
+depends_build           port:automoc
+use_parallel_build      yes
+worksrcdir              build
+post-extract            { file mkdir ${worksrcpath} }
+
+configure.compiler      gcc-4.2
+configure.args-append   -DBUILD_SHARED_LIBS=ON \
+                        -DCMAKE_BUILD_TYPE=Release \
+                        -DBUNDLE_INSTALL_DIR=${applications_dir}/KDE4 \
+                        -DKDE_DEFAULT_HOME=Library/Preferences/KDE \
+                        -DKDE_DISTRIBUTION_TEXT="MacPorts\/Mac OS X" \
+                        -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake
+
+variant with_docs description "Enables installation of documentation" {
+    depends_lib             port:doxygen
+    configure.args-append   -DBUILD_doc=ON
+}
+
+variant debug description "Enable debug binaries" {
+    configure.args-delete   -DCMAKE_BUILD_TYPE=Release
+    configure.args-append   -DCMAKE_BUILD_TYPE=debugFull
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090125/c8de3221/attachment.html>


More information about the macports-changes mailing list