# $Id: Portfile 39741 2008-09-02 15:34:13Z gwright@macports.org $ PortSystem 1.0 name sbcl version 1.0.20 set bootversion 1.0.12 categories lang maintainers gwright@macports.org waqar@macports.org platforms darwin description The Steel Bank Common Lisp system long_description \ Steel Bank Common Lisp (SBCL) is a Open Source \ development system for ANSI Common Lisp. It provides an \ interactive environment including an integrated native \ compiler, interpreter, and debugger. (And it, and its \ generated code, can also play nicely with Unix when \ running noninteractively.) homepage http://www.sbcl.org master_sites sourceforge use_bzip2 yes platform powerpc { set bootversion 1.0.2 distfiles-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} checksums-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} \ md5 5135c1e202ee1351263d0c2c015f17b6 global host_lisp 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\" " } set bootmd5 5c8e50fad3994ab5fb619d76260bd619 platform darwin 8 i386 { set bootversion 1.0.10 set bootmd5 8684c781efd9667280f49b354cc83275 } platform i386 { distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \ md5 ${bootmd5} global host_lisp 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\" " } patchfiles patch-use-mach-exception-handler.diff distfiles ${name}-${version}-source${extract.suffix} distname ${name}-${version}-source worksrcdir ${name}-${version} checksums ${name}-${version}-source${extract.suffix} \ md5 b1101a7d64f66b943c3e6a7991de68f4 \ sha1 c90806484eba13d58b768db187b7c8e9aa4078dc \ rmd160 54093189b755ddbbf3e9af1202aa0d547f055cb7 post-patch { reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \ ${worksrcpath}/src/runtime/runtime.c reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \ ${worksrcpath}/doc/sbcl.1 } use_configure no build { system "ulimit -s 8192" system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh ${host_lisp}" } default_variants +test variant test description {enable test suite} { test.run yes test.dir ${worksrcpath}/tests test.cmd sh test.target run-tests.sh } destroot { system "cd ${worksrcpath}; INSTALL_ROOT=${destroot}/${prefix} sh ${worksrcpath}/install.sh" } variant threads description {enable threaded runtime} { patchfiles-append patch-base-target-features.diff }