Ticket #17888: Portfile

File Portfile, 3.5 KB (added by nick.scott@…, 16 years ago)

New, working portfile

Line 
1# $Id: Portfile 44868 2009-01-03 23:09:15Z gwright@macports.org $
2
3PortSystem 1.0
4
5name            sbcl
6version         1.0.24
7categories      lang
8maintainers     gwright@macports.org waqar@macports.org
9platforms       darwin
10description     The Steel Bank Common Lisp system
11long_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
19homepage        http://www.sbcl.org
20master_sites    sourceforge
21use_bzip2       yes
22
23platform 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
33platform 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
43platform 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
53patchfiles      patch-use-mach-exception-handler.diff
54
55               
56distfiles       ${name}-${version}-source${extract.suffix}
57
58distname        ${name}-${version}-source
59worksrcdir      ${name}-${version}
60
61checksums       ${name}-${version}-source${extract.suffix}              \
62                md5     7ac79e6e66121dc7bde881c67b88693f                \
63                sha1    bf769f647c3d0126c4092f8a05eef58063a9f9dd        \
64                rmd160  43c62a76223ef81c4ee793eff6e37d326232af22        \
65
66
67post-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
74use_configure   no
75
76
77build           {
78        system "ulimit -s 8192"
79        system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh ${host_lisp}"
80}
81
82post-build {
83        if {[variant_isset html]} {
84                system "cd ${worksrcpath}/doc; INSTALL_ROOT=${destroot}${prefix} sh ${worksrcpath}/doc/make-doc.sh"
85        }
86}
87
88default_variants        +test +html
89
90variant html description {Builds the SBCL and ASDF documentation as HTML} {}
91
92variant 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
99destroot        { system "cd ${worksrcpath}; INSTALL_ROOT=${destroot}/${prefix} sh ${worksrcpath}/install.sh"
100}
101
102variant threads description {enable threaded runtime} {
103        patchfiles-append patch-base-target-features.diff
104}
105