Ticket #1483: Portfile

File Portfile, 1.8 KB (added by waqar@…, 21 years ago)

portfile diff

Line 
1# $Id: Portfile,v 1.8 2003/11/17 21:19:59 jkh Exp $
2
3PortSystem 1.0
4name            openmcl
5version         0.13.7
6categories      lang
7maintainers     waqar@opendarwin.org gwright@comcast.net
8platforms       darwin
9description     The OpenMCL Common Lisp Implementation
10long_description \
11                OpenMCL is an opensourced Common Lisp implementation,   \
12                derived from Digitool's Macintosh Common Lisp product.  \
13                                                                        \
14                OpenMCL currently runs under LinuxPPC and, as of        \
15                version 0.10, under Darwin, the BSD/Mach layer on which \
16                MacOS X is based.
17
18homepage        http://openmcl.clozure.com/
19master_sites    ftp://clozure.com/pub/
20distfiles       ${name}-darwinppc-bin-${version}${extract.suffix} \
21                ${name}-src-${version}${extract.suffix} \
22                ${name}-darwin-interfaces${extract.suffix}
23
24checksums       openmcl-darwinppc-bin-${version}.tar.gz \
25                        md5 95ba9ef63f519c82a3e9ddf762a4ab09 \
26                openmcl-src-${version}.tar.gz \
27                        md5 33ef65e63398d7a03ce471ac32ebcbf3 \
28                openmcl-darwin-interfaces.tar.gz \
29                        md5 96e729f65845d8af57b012e8ddd1cc56
30
31configure       {
32        reinplace "s|-traditional-cpp|-no-cpp-precomp|g" \
33                ${workpath}/ccl/lisp-kernel/darwin/Makefile
34}
35
36build           {
37        cd ${workpath}/ccl/lisp-kernel/darwin
38        system "make"
39        cd ${workpath}/ccl
40        system "echo '(ccl::xload-level-0 :force)' | ./dppccl --batch"
41        system "echo '(ccl::compile-ccl)' | ./dppccl --batch"
42        system "echo '(ccl::save-application \"dppccl.image\")' | \
43               ./dppccl --batch --image-name ppc-boot.image"
44}
45
46destroot        {
47        file mkdir ${destroot}/${prefix}/share/${name}/${version}
48        cd ${workpath}/ccl
49        system "tar cf - . | ( cd ${destroot}/${prefix}/share/${name}/${version} && tar xf -)"
50        reinplace "s|/usr/local/src/ccl|${prefix}/share/${name}/${version}|" \
51                ${workpath}/ccl/scripts/openmcl
52        system "chmod +x ${workpath}/ccl/scripts/openmcl"
53        file copy ${workpath}/ccl/scripts/openmcl ${destroot}/${prefix}/bin
54}