source: trunk/dports/_resources/port1.0/group/kde4-1.0.tcl @ 45913

Last change on this file since 45913 was 45913, checked in by illogic-al@…, 9 years ago

Commit new cmake and kde4 portgroups.
TODO: test 'extract.mkdir yes' option and use if possible.

File size: 2.4 KB
Line 
1# Copyright (c) 2009 Orville Bennett <illogical1 at gmail.com>
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met:
7#
8# 1. Redistributions of source code must retain the above copyright
9#    notice, this list of conditions and the following disclaimer.
10# 2. Redistributions in binary form must reproduce the above copyright
11#    notice, this list of conditions and the following disclaimer in the
12#    documentation and/or other materials provided with the distribution.
13# 3. Neither the name of Apple Computer, Inc. nor the names of its
14#    contributors may be used to endorse or promote products derived from
15#    this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29PortGroup cmake 1.0
30
31depends_build           port:automoc
32use_parallel_build      yes
33worksrcdir              build
34post-extract            { file mkdir ${worksrcpath} }
35
36configure.compiler      gcc-4.2
37configure.args-append   -DBUILD_SHARED_LIBS=ON \
38                        -DCMAKE_BUILD_TYPE=Release \
39                        -DBUNDLE_INSTALL_DIR=${applications_dir}/KDE4 \
40                        -DKDE_DEFAULT_HOME=Library/Preferences/KDE \
41                        -DKDE_DISTRIBUTION_TEXT="MacPorts\/Mac OS X" \
42                        -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake
43
44variant with_docs description "Enables installation of documentation" {
45    depends_lib             port:doxygen
46    configure.args-append   -DBUILD_doc=ON
47}
48
49variant debug description "Enable debug binaries" {
50    configure.args-delete   -DCMAKE_BUILD_TYPE=Release
51    configure.args-append   -DCMAKE_BUILD_TYPE=debugFull
52}
53
Note: See TracBrowser for help on using the repository browser.