1 | # $Id: Portfile,v 1.8 2003/11/17 21:19:59 jkh Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name openmcl |
---|
5 | version 0.13.7 |
---|
6 | categories lang |
---|
7 | maintainers waqar@opendarwin.org gwright@comcast.net |
---|
8 | platforms darwin |
---|
9 | description The OpenMCL Common Lisp Implementation |
---|
10 | long_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 | |
---|
18 | homepage http://openmcl.clozure.com/ |
---|
19 | master_sites ftp://clozure.com/pub/ |
---|
20 | distfiles ${name}-darwinppc-bin-${version}${extract.suffix} \ |
---|
21 | ${name}-src-${version}${extract.suffix} \ |
---|
22 | ${name}-darwin-interfaces${extract.suffix} |
---|
23 | |
---|
24 | checksums 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 | |
---|
31 | configure { |
---|
32 | reinplace "s|-traditional-cpp|-no-cpp-precomp|g" \ |
---|
33 | ${workpath}/ccl/lisp-kernel/darwin/Makefile |
---|
34 | } |
---|
35 | |
---|
36 | build { |
---|
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 | |
---|
46 | destroot { |
---|
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 | } |
---|