| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name clisp |
|---|
| 6 | version 2.47 |
|---|
| 7 | categories lang |
|---|
| 8 | maintainers waqar@macports.org |
|---|
| 9 | platforms darwin |
|---|
| 10 | description The Clisp Common Lisp Implementation |
|---|
| 11 | long_description \ |
|---|
| 12 | CLISP is a Common Lisp implementation by Bruno Haible, \ |
|---|
| 13 | formerly of Karlsruhe University, and Michael Stoll, \ |
|---|
| 14 | formerly of Munich University, both in Germany. \ |
|---|
| 15 | It mostly supports the Lisp described in the \ |
|---|
| 16 | ANSI Common Lisp standard. \ |
|---|
| 17 | CLISP includes an interpreter, a compiler, almost all \ |
|---|
| 18 | of CLOS, a foreign language interface and a socket interface. \ |
|---|
| 19 | An X11 interface is available through CLX and Garnet. \ |
|---|
| 20 | Command line editing is provided by readline. |
|---|
| 21 | |
|---|
| 22 | homepage http://clisp.cons.org/ |
|---|
| 23 | master_sites gnu:clisp/release/${version} \ |
|---|
| 24 | sourceforge |
|---|
| 25 | |
|---|
| 26 | checksums md5 8fa89bb13e865fc7c7150b82682f35af \ |
|---|
| 27 | sha1 63749bf07409cee134c195547e6d911554b619d6 \ |
|---|
| 28 | rmd160 d376b0b16694bbaf60e61fc3465bfcdf5770e093 |
|---|
| 29 | |
|---|
| 30 | use_bzip2 yes |
|---|
| 31 | |
|---|
| 32 | depends_lib port:readline \ |
|---|
| 33 | port:gettext \ |
|---|
| 34 | port:libsigsegv |
|---|
| 35 | |
|---|
| 36 | build.dir ${worksrcpath}/src |
|---|
| 37 | |
|---|
| 38 | variant dynffi { |
|---|
| 39 | ui_msg "enabling dynamic foreign function interface" |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | variant nolibsigsegv { |
|---|
| 43 | depends_lib-delete port:libsigsegv |
|---|
| 44 | configure.args-append --ignore-absence-of-libsigsegv |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | platform darwin 6 { |
|---|
| 48 | pre-fetch { |
|---|
| 49 | throw UNSUPPORTED "clisp is not supported on Jaguar (OS X 10.2.x)" |
|---|
| 50 | } |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | platform darwin { |
|---|
| 54 | # placeholder for use with variant_isset |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | platform darwin 7 { |
|---|
| 58 | depends_lib-delete port:libsigsegv |
|---|
| 59 | configure.args-append --ignore-absence-of-libsigsegv |
|---|
| 60 | } |
|---|
| 61 | |
|---|
| 62 | platform darwin 9 { |
|---|
| 63 | configure.cflags-append -D_NONSTD_SOURCE |
|---|
| 64 | # build.env-append MACOSX_DEPLOYMENT_TARGET=10.4 |
|---|
| 65 | } |
|---|
| 66 | |
|---|
| 67 | configure.cflags |
|---|
| 68 | configure.args --prefix=${prefix} --with-libreadline-prefix=${prefix} \ |
|---|
| 69 | --with-libsigsegv-prefix=${prefix} --with-libiconv-prefix=${prefix} |
|---|
| 70 | |
|---|
| 71 | configure { |
|---|
| 72 | set cmdstring "CFLAGS='[join ${configure.cflags}]' \ |
|---|
| 73 | ./configure [join ${configure.args}]" |
|---|
| 74 | ui_debug "EXECUTING: $cmdstring" |
|---|
| 75 | system "cd ${configure.dir} && $cmdstring" |
|---|
| 76 | } |
|---|
| 77 | |
|---|
| 78 | post-configure { |
|---|
| 79 | if {[variant_isset darwin]} { |
|---|
| 80 | if {[variant_isset dynffi]} { |
|---|
| 81 | set ffi_switch "--with-dynamic-ffi" |
|---|
| 82 | } else { |
|---|
| 83 | set ffi_switch "--without-dynamic-ffi" |
|---|
| 84 | } |
|---|
| 85 | set cmdstring " \ |
|---|
| 86 | CFLAGS=[join ${configure.cflags}] \ |
|---|
| 87 | ./makemake [join ${configure.args}] \ |
|---|
| 88 | --with-unicode \ |
|---|
| 89 | --with-readline \ |
|---|
| 90 | ${ffi_switch} \ |
|---|
| 91 | --with-export-syscalls \ |
|---|
| 92 | --with-gettext > Makefile && \ |
|---|
| 93 | make config.lisp" |
|---|
| 94 | ui_debug "EXECUTING: $cmdstring" |
|---|
| 95 | system "cd ${build.dir} && $cmdstring" |
|---|
| 96 | } |
|---|
| 97 | } |
|---|
| 98 | |
|---|
| 99 | build { |
|---|
| 100 | set cmdstring "cd ${build.dir} && ulimit -s 16384 && \ |
|---|
| 101 | unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && \ |
|---|
| 102 | make" |
|---|
| 103 | ui_debug "EXECUTING: $cmdstring" |
|---|
| 104 | system $cmdstring |
|---|
| 105 | set cmdstring "$cmdstring check" |
|---|
| 106 | ui_debug "EXECUTING: $cmdstring" |
|---|
| 107 | system $cmdstring |
|---|
| 108 | } |
|---|
| 109 | |
|---|
| 110 | livecheck.check regex |
|---|
| 111 | livecheck.url http://ftp.gnu.org/gnu/${name}/release/?C=M&O=D |
|---|
| 112 | livecheck.regex >(\[0-9.\]+)/< |
|---|