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: |
---|
38 | default categories gnustep |
---|
39 | default homepage http://www.gnustep.org/ |
---|
40 | |
---|
41 | default master_sites gnustep:core/ |
---|
42 | |
---|
43 | default use_configure no |
---|
44 | configure { |
---|
45 | cd ${worksrcpath} |
---|
46 | system "\ |
---|
47 | . ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh \ |
---|
48 | && \ |
---|
49 | ./configure ${configure.pre_args} ${configure.args}" |
---|
50 | } |
---|
51 | |
---|
52 | default build.type gnu |
---|
53 | default build.args messages=yes |
---|
54 | build { |
---|
55 | cd ${worksrcpath} |
---|
56 | system "\ |
---|
57 | . ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh \ |
---|
58 | && \ |
---|
59 | ${build.cmd} ${build.target} ${build.args}" |
---|
60 | } |
---|
61 | |
---|
62 | default destroot.args messages=yes |
---|
63 | default destroot.destdir \ |
---|
64 | GNUSTEP_INSTALLATION_DIR=${destroot}${prefix}/GNUstep/System |
---|
65 | destroot { |
---|
66 | cd ${worksrcpath} |
---|
67 | system "\ |
---|
68 | . ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh \ |
---|
69 | && \ |
---|
70 | ${destroot.cmd} ${destroot.target} \ |
---|
71 | ${destroot.args} ${destroot.destdir}" |
---|
72 | } |
---|
73 | |
---|
74 | variant with_docs { |
---|
75 | depends_build-append \ |
---|
76 | bin:texi2pdf:texinfo \ |
---|
77 | bin:texi2html:texi2html \ |
---|
78 | bin:pdftex:teTeX \ |
---|
79 | port:gnustep-base |
---|
80 | post-destroot { |
---|
81 | cd ${worksrcpath}/Documentation |
---|
82 | system "\ |
---|
83 | . ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh \ |
---|
84 | && \ |
---|
85 | ${destroot.cmd} ${destroot.target} \ |
---|
86 | ${destroot.args} ${destroot.destdir}" |
---|
87 | } |
---|
88 | } |
---|
89 | |
---|
90 | |
---|