1 | # $Id: Portfile 44868 2009-01-03 23:09:15Z gwright@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name sbcl |
---|
6 | version 1.0.24 |
---|
7 | categories lang |
---|
8 | maintainers gwright@macports.org waqar@macports.org |
---|
9 | platforms darwin |
---|
10 | description The Steel Bank Common Lisp system |
---|
11 | long_description \ |
---|
12 | Steel Bank Common Lisp (SBCL) is a Open Source \ |
---|
13 | development system for ANSI Common Lisp. It provides an \ |
---|
14 | interactive environment including an integrated native \ |
---|
15 | compiler, interpreter, and debugger. (And it, and its \ |
---|
16 | generated code, can also play nicely with Unix when \ |
---|
17 | running noninteractively.) |
---|
18 | |
---|
19 | homepage http://www.sbcl.org |
---|
20 | master_sites sourceforge |
---|
21 | use_bzip2 yes |
---|
22 | |
---|
23 | platform powerpc { |
---|
24 | set bootversion 1.0.2 |
---|
25 | distfiles-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} |
---|
26 | checksums-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} \ |
---|
27 | md5 5135c1e202ee1351263d0c2c015f17b6 |
---|
28 | |
---|
29 | global host_lisp |
---|
30 | set host_lisp "\"${workpath}/${name}-${bootversion}-powerpc-darwin/src/runtime/sbcl --core ${workpath}/${name}-${bootversion}-powerpc-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" " |
---|
31 | } |
---|
32 | |
---|
33 | platform darwin 8 i386 { |
---|
34 | set bootversion 1.0.10 |
---|
35 | distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} |
---|
36 | checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \ |
---|
37 | md5 8684c781efd9667280f49b354cc83275 |
---|
38 | |
---|
39 | global host_lisp |
---|
40 | set host_lisp "\"${workpath}/${name}-${bootversion}-x86-darwin/src/runtime/sbcl --core ${workpath}/${name}-${bootversion}-x86-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" " |
---|
41 | } |
---|
42 | |
---|
43 | platform darwin 9 i386 { |
---|
44 | set bootversion 1.0.12 |
---|
45 | distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} |
---|
46 | checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \ |
---|
47 | md5 5c8e50fad3994ab5fb619d76260bd619 |
---|
48 | |
---|
49 | global host_lisp |
---|
50 | set host_lisp "\"${workpath}/${name}-${bootversion}-x86-darwin/src/runtime/sbcl --core ${workpath}/${name}-${bootversion}-x86-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" " |
---|
51 | } |
---|
52 | |
---|
53 | patchfiles patch-use-mach-exception-handler.diff |
---|
54 | |
---|
55 | |
---|
56 | distfiles ${name}-${version}-source${extract.suffix} |
---|
57 | |
---|
58 | distname ${name}-${version}-source |
---|
59 | worksrcdir ${name}-${version} |
---|
60 | |
---|
61 | checksums ${name}-${version}-source${extract.suffix} \ |
---|
62 | md5 7ac79e6e66121dc7bde881c67b88693f \ |
---|
63 | sha1 bf769f647c3d0126c4092f8a05eef58063a9f9dd \ |
---|
64 | rmd160 43c62a76223ef81c4ee793eff6e37d326232af22 \ |
---|
65 | |
---|
66 | |
---|
67 | post-patch { |
---|
68 | reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \ |
---|
69 | ${worksrcpath}/src/runtime/runtime.c |
---|
70 | reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \ |
---|
71 | ${worksrcpath}/doc/sbcl.1 |
---|
72 | } |
---|
73 | |
---|
74 | use_configure no |
---|
75 | |
---|
76 | |
---|
77 | build { |
---|
78 | system "ulimit -s 8192" |
---|
79 | system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh ${host_lisp}" |
---|
80 | } |
---|
81 | |
---|
82 | post-build { |
---|
83 | if {[variant_isset html]} { |
---|
84 | system "cd ${worksrcpath}/doc; INSTALL_ROOT=${destroot}${prefix} sh ${worksrcpath}/doc/make-doc.sh" |
---|
85 | } |
---|
86 | } |
---|
87 | |
---|
88 | default_variants +test +html |
---|
89 | |
---|
90 | variant html description {Builds the SBCL and ASDF documentation as HTML} {} |
---|
91 | |
---|
92 | variant test description {enable test suite} { |
---|
93 | test.run yes |
---|
94 | test.dir ${worksrcpath}/tests |
---|
95 | test.cmd sh |
---|
96 | test.target run-tests.sh |
---|
97 | } |
---|
98 | |
---|
99 | destroot { system "cd ${worksrcpath}; INSTALL_ROOT=${destroot}/${prefix} sh ${worksrcpath}/install.sh" |
---|
100 | } |
---|
101 | |
---|
102 | variant threads description {enable threaded runtime} { |
---|
103 | patchfiles-append patch-base-target-features.diff |
---|
104 | } |
---|
105 | |
---|