Ticket #11592: Portfile

File Portfile, 2.5 KB (added by david.m.cooke@…, 17 years ago)
Line 
1# $Id: Portfile 22524 2007-03-04 16:01:41Z gwright@macports.org $
2
3PortSystem 1.0
4name            sbcl
5version         1.0.3
6revision        1
7set bootversion 0.9.16
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
24patchfiles      use-mach-exception-handler.patch
25
26platform powerpc {
27                   set bootversion 0.9.15
28                   distfiles-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix}
29                   checksums-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} \
30                        md5 2f0ee82eff649e3862c524fd0705cfc0
31
32                   global host_lisp
33                   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\" "
34}
35
36platform i386     {
37                   distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix}
38                   checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \
39                        md5 b7fb206ac82d11ae7aeee8e0cf462c93
40
41                   global host_lisp
42                   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\" "
43}
44
45               
46distfiles       ${name}-${version}-source${extract.suffix}
47
48distname        ${name}-${version}-source
49worksrcdir      ${name}-${version}
50
51checksums       ${name}-${version}-source${extract.suffix}              \
52                        md5 25d4e2a592659db32e6c3fd16e977245
53
54post-patch      { reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
55                            ${worksrcpath}/src/runtime/runtime.c
56                  reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
57                            ${worksrcpath}/doc/sbcl.1
58                }
59
60use_configure   no
61
62
63build           { cd ${worksrcpath}
64                  system "ulimit -s 8192"
65
66                  system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh ${host_lisp}"
67                }
68
69default_variants        +test
70
71variant test    { test.run      yes
72                  test.dir      ${worksrcpath}/tests
73                  test.cmd      sh
74                  test.target   run-tests.sh
75                }
76
77destroot        { cd ${worksrcpath}
78                  system "INSTALL_ROOT=${destroot}/${prefix} sh install.sh"
79                }
80