Ticket #16160: Portfile

File Portfile, 2.9 KB (added by mail_ben_schmidt@…, 16 years ago)

Suggested fix

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