1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | name jam |
---|
4 | version 2.5 |
---|
5 | categories devel |
---|
6 | maintainers pguyot@kallisys.net |
---|
7 | description a software build tool like make |
---|
8 | long_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. |
---|
13 | homepage http://www.perforce.com/jam/jam.html |
---|
14 | distfiles ${name}-${version}.tar |
---|
15 | master_sites ftp://ftp.perforce.com/pub/jam/ \ |
---|
16 | "http://public.perforce.com:8080/@md=d&cd=//public/jam/&ra=s&c=lAF@//public/jam/" |
---|
17 | checksums md5 d340f3c73d16a1206d0e8c88a66428e7 |
---|
18 | |
---|
19 | # This is a .tar file. |
---|
20 | extract.cmd tar -xf |
---|
21 | extract.pre_args |
---|
22 | extract.post_args |
---|
23 | |
---|
24 | # Enables optimization & Matt Armstrong memory leak patch. |
---|
25 | patchfiles patch-Makefile.diff \ |
---|
26 | patch-variable.c.diff |
---|
27 | |
---|
28 | # Jam doesn't have a configure script |
---|
29 | use_configure no |
---|
30 | |
---|
31 | # Installation. |
---|
32 | install { |
---|
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. |
---|
42 | variant mw { |
---|
43 | patchfiles patch-Makefile-mw.diff \ |
---|
44 | patch-variable.c.diff |
---|
45 | } |
---|
46 | |
---|
47 | # Debug (no optimization + debug) |
---|
48 | variant debug { |
---|
49 | patchfiles patch-Makefile-debug.diff \ |
---|
50 | patch-variable.c.diff |
---|
51 | |
---|
52 | install { |
---|
53 | system "install -d ${destroot}${prefix}/bin" |
---|
54 | system "install -d ${destroot}${prefix}/share/doc/${name}" |
---|
55 | system "install -m 755 ${worksrcpath}/bin.macosxppc/g/jam ${destroot}${prefix}/bin/" |
---|
56 | system "install -m 755 ${worksrcpath}/bin.macosxppc/g/mkjambase ${destroot}${prefix}/bin/" |
---|
57 | system "install -m 644 ${worksrcpath}/Jambase.html ${destroot}/${prefix}/share/doc/${name}/" |
---|
58 | system "install -m 644 ${worksrcpath}/Jamfile.html ${destroot}/${prefix}/share/doc/${name}/" |
---|
59 | } |
---|
60 | } |
---|