| 1 | # $Id: Portfile 39741 2008-09-02 15:34:13Z gwright@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name sbcl |
|---|
| 6 | version 1.0.20 |
|---|
| 7 | set bootversion 1.0.12 |
|---|
| 8 | categories lang |
|---|
| 9 | maintainers gwright@macports.org waqar@macports.org |
|---|
| 10 | platforms darwin |
|---|
| 11 | description The Steel Bank Common Lisp system |
|---|
| 12 | long_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 | |
|---|
| 20 | homepage http://www.sbcl.org |
|---|
| 21 | master_sites sourceforge |
|---|
| 22 | use_bzip2 yes |
|---|
| 23 | |
|---|
| 24 | platform 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 | |
|---|
| 34 | set bootmd5 5c8e50fad3994ab5fb619d76260bd619 |
|---|
| 35 | platform darwin 8 i386 { |
|---|
| 36 | set bootversion 1.0.10 |
|---|
| 37 | set bootmd5 8684c781efd9667280f49b354cc83275 |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | platform 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 | |
|---|
| 50 | patchfiles patch-use-mach-exception-handler.diff |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | distfiles ${name}-${version}-source${extract.suffix} |
|---|
| 54 | |
|---|
| 55 | distname ${name}-${version}-source |
|---|
| 56 | worksrcdir ${name}-${version} |
|---|
| 57 | |
|---|
| 58 | checksums ${name}-${version}-source${extract.suffix} \ |
|---|
| 59 | md5 b1101a7d64f66b943c3e6a7991de68f4 \ |
|---|
| 60 | sha1 c90806484eba13d58b768db187b7c8e9aa4078dc \ |
|---|
| 61 | rmd160 54093189b755ddbbf3e9af1202aa0d547f055cb7 |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | post-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 | |
|---|
| 71 | use_configure no |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | build { |
|---|
| 75 | system "ulimit -s 8192" |
|---|
| 76 | system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh ${host_lisp}" |
|---|
| 77 | } |
|---|
| 78 | |
|---|
| 79 | default_variants +test |
|---|
| 80 | |
|---|
| 81 | variant 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 | |
|---|
| 88 | destroot { system "cd ${worksrcpath}; INSTALL_ROOT=${destroot}/${prefix} sh ${worksrcpath}/install.sh" |
|---|
| 89 | } |
|---|
| 90 | |
|---|
| 91 | variant threads description {enable threaded runtime} { |
|---|
| 92 | patchfiles-append patch-base-target-features.diff |
|---|
| 93 | } |
|---|
| 94 | |
|---|