Ticket #636: Portfile

File Portfile, 2.5 KB (added by pguyot (Paul Guyot), 21 years ago)

The portfile (fix)

Line 
1# $Id: $
2PortSystem          1.0
3name                jam
4version             2.5
5categories          devel
6maintainers         pguyot@kallisys.net
7description         a software build tool like make
8long_description    Jam is a software build tool (like make) from Perforce. \
9                    It is very powerful tool and it is used for various projects. \
10                    It is particularly adapted for C/C++ development, multiplatform projects \
11                    or builds spread on several processors. \
12                    MacOS X developer tools actually include a customized version of it.
13homepage            http://www.perforce.com/jam/jam.html
14distfiles           ${name}-${version}.tar
15master_sites        ftp://ftp.perforce.com/pub/jam/ \
16                    "http://public.perforce.com:8080/@md=d&cd=//public/jam/&ra=s&c=lAF@//public/jam/"
17checksums           md5 d340f3c73d16a1206d0e8c88a66428e7
18
19# This is a .tar file.
20extract.cmd         tar -xf
21extract.pre_args   
22extract.post_args   
23
24# Enables optimization & Matt Armstrong memory leak patch.
25patchfiles          patch-Makefile.diff \
26                    patch-variable.c.diff
27
28# Jam doesn't have a configure script
29configure           { }
30
31# Installation.
32install             {
33        system "install -d ${destroot}${prefix}/bin"
34        system "install -d ${destroot}${prefix}/share/doc/${name}"
35        system "install -m 755 ${worksrcpath}/bin.macosxppc/jam ${destroot}${prefix}/bin/"
36        system "install -m 755 ${worksrcpath}/bin.macosxppc/mkjambase ${destroot}${prefix}/bin/"
37        system "install -m 644 ${worksrcpath}/Jambase.html ${destroot}/${prefix}/share/doc/${name}/"
38        system "install -m 644 ${worksrcpath}/Jamfile.html ${destroot}/${prefix}/share/doc/${name}/"
39}
40
41# Metrowerks compiler.
42variant mw {
43        patchfiles          patch-Makefile-mw.diff \
44                            patch-variable.c.diff
45}
46
47# Debug (no optimization + debug)
48variant debug {
49        patchfiles          patch-Makefile-debug.diff \
50                            patch-variable.c.diff
51        system "install -d ${destroot}${prefix}/bin"
52        system "install -d ${destroot}${prefix}/share/doc/${name}"
53        system "install -m 755 ${worksrcpath}/bin.macosxppc/g/jam ${destroot}${prefix}/bin/"
54        system "install -m 755 ${worksrcpath}/bin.macosxppc/g/mkjambase ${destroot}${prefix}/bin/"
55        system "install -m 644 ${worksrcpath}/Jambase.html ${destroot}/${prefix}/share/doc/${name}/"
56        system "install -m 644 ${worksrcpath}/Jamfile.html ${destroot}/${prefix}/share/doc/${name}/"
57}