source: trunk/dports/devel/boost-build/Portfile

Last change on this file was 96008, checked in by ryandesign@…, 5 years ago

boost-build: license Boost-1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 96008 2012-07-28 16:29:43Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            boost-build
6version         2.0-m12
7revision        2
8categories      devel
9maintainers     nomaintainer
10license         Boost-1
11
12description     Build system for large project software construction
13long_description    Boost.Build is a system for large project software \
14                    construction, which is simple to use and powerfull. \
15                    Boost.Build V2 is an onging project to rewrite \
16                    Boost.Build, improving design and making it more \
17                    extensible.
18homepage        http://www.boost.org
19master_sites    sourceforge:project/boost/boost-build/${version}
20use_bzip2       yes
21checksums       md5 38a40f1c0c2d6eb4f14aa4cf52e9236a \
22                sha1 cd3c06b7b0bcb12ccc9d5e374966ddff5984412a \
23                rmd160 de52a80c55d3ba8e38e199bfbb7c512642471e4e
24platforms       darwin
25
26patchfiles      patch-tools-darwin.jam.diff
27
28depends_run     port:boost-jam
29
30worksrcdir      ${name}
31
32configure {
33    file delete -force ${worksrcpath}/debian ${worksrcpath}/jam_src/debian
34    reinplace -locale C "s|/usr/local|${prefix}|" \
35        ${worksrcpath}/doc/html/bbv2/faq.html \
36        ${worksrcpath}/doc/src/faq.xml \
37        ${worksrcpath}/jam_src/Jambase \
38        ${worksrcpath}/jam_src/jam.h \
39        ${worksrcpath}/jam_src/jambase.c
40    reinplace "s|+= /usr/include|+= ${prefix}/include|" \
41        ${worksrcpath}/jam_src/Jambase \
42        ${worksrcpath}/jam_src/jambase.c
43    reinplace "s|/usr/ccs/bin/ar|/usr/bin/ar|" \
44        ${worksrcpath}/jam_src/Jambase \
45        ${worksrcpath}/jam_src/jambase.c
46    reinplace "s|/usr/share/boost-build|${prefix}/share/${name}|" \
47        ${worksrcpath}/jam_src/Jambase \
48        ${worksrcpath}/jam_src/jambase.c
49    reinplace "s|/usr/.*/qt|${prefix}/share/qt3|" \
50        ${worksrcpath}/user-config.jam
51    if {[catch {set python [binaryInPath python]} result] == 0} {
52        foreach dir {test example/customization jam_src} {
53            foreach script [glob -directory ${worksrcpath}/${dir} *.py] {
54                reinplace "s|^#!.*python|#!${python}|" ${script}
55            }
56        }
57    }
58}
59
60build {}
61
62destroot {
63    system "cp -R ${worksrcpath} ${destroot}${prefix}/share/${name}"
64}
Note: See TracBrowser for help on using the repository browser.