source: trunk/dports/devel/jam/Portfile @ 28165

Last change on this file since 28165 was 28165, checked in by ryandesign@…, 12 years ago

Correct the name of our fair operating system.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 28165 2007-08-23 10:37:08Z ryandesign@macports.org $
2
3PortSystem                      1.0
4name                            jam
5version                         2.5
6# The version didn't change, but the binary did because it was upgraded from rc3 to 2.5.
7revision                        1
8categories                      devel
9maintainers                     pguyot@kallisys.net
10description                     a software build tool like make
11long_description        Jam is a software build tool (like make) from Perforce. \
12                                        It is very powerful tool and it is used for various \
13                                        projects. It is particularly adapted for C/C++ \
14                                        development, multiplatform projects or builds spread on \
15                                        several processors. Mac OS X developer tools actually \
16                                        include a customized version of it.
17homepage                        http://www.perforce.com/jam/jam.html
18distfiles                       ${name}-${version}.tar
19# avoid md5 mismatches.
20dist_subdir                     ${name}/${version}
21master_sites            ftp://ftp.perforce.com/pub/jam/ \
22                                        "http://public.perforce.com:8080/@md=d&cd=//public/jam/&ra=s&c=lAF@//public/jam/"
23checksums                       md5 c7eb7719d8523c0f819116479492d367 \
24                                        sha1 421c1b308c3c3dc4c95c0640078416af2195d841 \
25                                        rmd160 34497c89ca4bbd1db049627e2dfcc1287138af24
26platforms                       darwin
27
28# This is a .tar file.
29extract.cmd                     tar -xf
30extract.pre_args       
31extract.post_args       
32
33# Enables optimization & Matt Armstrong memory leak patch.
34patchfiles                      patch-Makefile.diff \
35                                        patch-variable.c.diff
36
37# Jam doesn't have a configure script
38use_configure           no
39
40# Installation.
41destroot {
42        file mkdir ${destroot}${prefix}/share/doc/${name}
43        system "install -m 755 ${worksrcpath}/bin.*/jam ${destroot}${prefix}/bin/"
44        system "install -m 755 ${worksrcpath}/bin.*/mkjambase ${destroot}${prefix}/bin/"
45        xinstall -d -m 755 ${destroot}/${prefix}/share/doc/${name}/
46        xinstall -m 644 ${worksrcpath}/Jam.html ${destroot}/${prefix}/share/doc/${name}/
47        xinstall -m 644 ${worksrcpath}/Jambase.html ${destroot}/${prefix}/share/doc/${name}/
48        xinstall -m 644 ${worksrcpath}/Jamfile.html ${destroot}/${prefix}/share/doc/${name}/
49}
50
51# Metrowerks compiler.
52variant mw {
53        patchfiles                      patch-Makefile-mw.diff \
54                                                patch-variable.c.diff
55}
56
57# Debug (no optimization + debug)
58variant debug {
59        patchfiles                      patch-Makefile-debug.diff \
60                                                patch-variable.c.diff
61
62        destroot {
63                file mkdir ${destroot}${prefix}/share/doc/${name}
64                system "install -m 755 ${worksrcpath}/bin.*/g/jam ${destroot}${prefix}/bin/"
65                system "install -m 755 ${worksrcpath}/bin.*/g/mkjambase ${destroot}${prefix}/bin/"
66                xinstall -d -m 755 ${destroot}/${prefix}/share/doc/${name}/
67                xinstall -m 644 ${worksrcpath}/Jambase.html ${destroot}/${prefix}/share/doc/${name}/
68                xinstall -m 644 ${worksrcpath}/Jamfile.html ${destroot}/${prefix}/share/doc/${name}/
69        }
70}
71
72livecheck.check md5
73livecheck.url   ftp://ftp.perforce.com/pub/jam/
74livecheck.md5   37e6a5b6516a680c7178b72021d3b706
Note: See TracBrowser for help on using the repository browser.