Ticket #65484: Portfile

File Portfile, 2.6 KB (added by kakuhen, 2 years ago)

Experimental Portfile for building SBCL on PPC

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem      1.0
4
5name            sbcl
6version         2.2.2
7revision        0
8homepage        http://www.sbcl.org
9categories      lang
10license         BSD
11maintainers     nomaintainer
12platforms       darwin
13supported_archs ppc
14description     Experimental SBCL portfile targetting PowerMacs.
15
16master_sites    sourceforge:project/sbcl/sbcl/${version}:sbcl
17use_bzip2       yes
18distfiles       ${name}-${version}-source${extract.suffix}:sbcl
19worksrcdir      ${name}-${version}
20
21checksums       ${name}-${version}-source${extract.suffix} \
22    rmd160  4960ccd562302f3223e2db7d32b9ecc50cf76536 \
23    sha256  8790dbbe97711dce14bb823125ce5b185b0073cf2f3cbf37bdd1ad380e7950f6 \
24    size    6716272
25
26patchfiles \
27    patch-contrib-sb-posix-posix-tests.lisp.diff \
28    patch-sbcl-realtime.diff
29
30#### BOOTSTRAP BINARY ####
31
32# Note: this will fail due to one STYLE-WARNING when compiling GENESIS.
33# If the STYLE-WARNING is:
34#   - not signalled (as in SBCL 2.2.2)
35#   - ignored       (as in SBCL 1.0.47)
36# then the build proceeds fine.
37set boot_ver    1.0.47
38set boot_dist   ${name}-${boot_ver}-powerpc-darwin
39set boot_home   ${workpath}/${boot_dist}
40
41master_sites-append sourceforge:project/sbcl/sbcl/${boot_ver}:boot
42distfiles-append    ${boot_dist}-binary${extract.suffix}:boot
43checksums-append    ${boot_dist}-binary${extract.suffix} \
44    rmd160  85c76296a1c62db5affdff7e72e61e558bb5c819 \
45    sha256  6971a64c0706894f217da676081874088f50f84daa66d89b653b065f83563f3b \
46    size    8217590
47
48global host_lisp
49set host_lisp "\"${boot_home}/src/runtime/sbcl --core ${boot_home}/output/sbcl.core --sysinit /dev/null --userinit /dev/null\" "
50
51##########################
52
53use_configure   no
54
55global make_sh_options
56set make_sh_options ""
57variant fancy description {Build SBCL with all available contribs.} {
58    known_fail yes
59    set make_sh_options --fancy
60}
61
62build {
63    system -W ${worksrcpath} "SBCL_MACOSX_VERSION_MIN=${macosx_deployment_target} CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp} sh ./make.sh ${make_sh_options} --prefix=${prefix} --xc-host=${host_lisp}"
64}
65
66test.run        yes
67test.dir        ${worksrcpath}/tests
68test.cmd        CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp} sh
69test.target     run-tests.sh
70
71destroot {
72    system -W ${worksrcpath} "INSTALL_ROOT=${destroot}${prefix} sh ${worksrcpath}/install.sh"
73}
74
75notes "
76Support for Darwin/PowerPC has been dropped as of SBCL 2.2.3.
77This port will likely not be updated with a future release of SBCL.
78"