Ticket #8139: gnustep-1.0.3.tcl

File gnustep-1.0.3.tcl, 3.4 KB (added by yves@…, 18 years ago)

gnustep PortGroup

Line 
1# et:ts=4
2# gnustep.tcl
3#
4# $Id: gnustep-1.0.tcl,v 1.7 2005/09/29 14:55:18 yves Exp $
5#
6# Copyright (c) 2006 Yves de Champlain <yves@opendarwin.org>,
7# All rights reserved.
8#
9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions are
11# met:
12#
13# 1. Redistributions of source code must retain the above copyright
14#    notice, this list of conditions and the following disclaimer.
15# 2. Redistributions in binary form must reproduce the above copyright
16#    notice, this list of conditions and the following disclaimer in the
17#    documentation and/or other materials provided with the distribution.
18# 3. Neither the name of Apple Computer, Inc. nor the names of its
19#    contributors may be used to endorse or promote products derived from
20#    this software without specific prior written permission.
21#
22# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33#
34
35# Group code for GNUstep ports.
36
37# Options this group provides:
38default categories                      gnustep
39default homepage            http://www.gnustep.org/
40
41default master_sites        gnustep:core/
42
43array set gnustep.post_flags {}
44post-patch {
45    foreach {src_subdir post_libs} [array get gnustep.post_flags] {
46        set fl [ open ${worksrcpath}/$src_subdir/GNUmakefile.preamble a ]
47        puts $fl "SHARED_LD_POSTFLAGS += $post_libs"
48        close $fl
49    }
50}
51
52default use_configure           no
53default configure.args      ""
54configure {
55    cd ${worksrcpath}
56    system "\
57        . ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh \
58        && \
59        ./configure ${configure.pre_args} ${configure.args}"
60}
61   
62default build.type          gnu
63default build.args          messages=yes
64build {
65    cd ${worksrcpath}
66    system "\
67        . ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh \
68        && \
69        ${build.cmd} ${build.target} ${build.args}"
70}
71
72default destroot.args       messages=yes
73default destroot.destdir \
74    GNUSTEP_INSTALLATION_DIR=${destroot}${prefix}/GNUstep/System
75destroot {
76    cd ${worksrcpath} 
77    system "\
78        . ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh \
79        && \
80        ${destroot.cmd} ${destroot.target} \
81            ${destroot.args} ${destroot.destdir}"
82}
83
84variant with_docs {
85    depends_build-append \
86        bin:texi2pdf:texinfo \
87        bin:texi2html:texi2html \
88        bin:pdftex:teTeX \
89        port:gnustep-base
90    post-destroot {
91        cd ${worksrcpath}/Documentation
92        system "\
93            . ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh \
94            && \
95            ${destroot.cmd} ${destroot.target} \
96                ${destroot.args} ${destroot.destdir}"
97     }
98}
99
100