14 | | ISO/Edinburgh-style Prolog compiler including modules, \ |
15 | | autoload, libraries, Garbage-collector, stack-expandor, \ |
16 | | C/C++-interface, Multiple threads, GNU-readline interface, \ |
17 | | very fast compiler. Including packages clib (Unix process \ |
18 | | control, sockets, MIME), cpp (C++ interface), sgml (reading \ |
19 | | XML/SGML), sgml/RDF (reading RDF into triples), ODBC \ |
20 | | interface and XPCE (Graphics UI toolkit, integrated editor \ |
21 | | (Emacs-clone) and graphical debugger). |
| 15 | ISO/Edinburgh-style Prolog compiler including modules, \ |
| 16 | autoload, libraries, Garbage-collector, stack-expandor, \ |
| 17 | C/C++-interface, Multiple threads, GNU-readline interface, \ |
| 18 | coroutining, constraint programming, global variables, \ |
| 19 | very fast compiler. Including packages clib (Unix process \ |
| 20 | control, sockets, MIME), cpp (C++ interface), sgml (reading \ |
| 21 | XML/SGML), sgml/RDF (reading RDF into triples), ODBC \ |
| 22 | interface and XPCE (Graphics UI toolkit, integrated editor \ |
| 23 | (Emacs-clone) and graphical debugger). |
40 | | configure.cflags-append "-I${prefix}/include" |
41 | | configure.env CIFLAGS=-I${prefix}/include |
42 | | |
43 | | configure.args --mandir=${prefix}/share/man \ |
44 | | --with-world |
45 | | |
46 | | build.env LDFLAGS=-L${prefix}/lib \ |
47 | | CFLAGS=-I${prefix}/include \ |
48 | | CPPFLAGS=-I${prefix}/include \ |
49 | | CIFLAGS=-I${prefix}/include |
50 | | |
51 | | default_variants +mt |
52 | | |
53 | | variant st { configure.args-append --disable-mt} |
54 | | |
55 | | variant mt { configure.args-append --enable-mt} |
56 | | |
| 56 | configure.env \ |
| 57 | LIBRARY_PATH=/usr/lib:${x11prefix}/lib:${prefix}/lib \ |
| 58 | CPATH=/usr/include:${x11prefix}/include:${prefix}/include \ |
| 59 | JUNIT=${prefix}/share/java/junit.jar |
| 60 | |
| 61 | configure.ldflags |
| 62 | |
| 63 | configure.args \ |
| 64 | --mandir=${prefix}/share/man \ |
| 65 | --with-world |
| 66 | |
| 67 | build.env \ |
| 68 | LIBRARY_PATH=/usr/lib:${x11prefix}/lib:${prefix}/lib \ |
| 69 | CPATH=/usr/include:${x11prefix}/include:${prefix}/include \ |
| 70 | JUNIT=${prefix}/share/java/junit.jar |
| 71 | |
| 72 | post-build { |
| 73 | file mkdir ${workpath}/macosx |
| 74 | file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/ |
| 75 | file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/ |
| 76 | file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/ |
| 77 | } |
| 78 | |
| 79 | post-pkg { |
| 80 | set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/ |
| 81 | file copy -force -- ${workpath}/macosx/License.html ${resources} |
| 82 | file copy -force -- ${workpath}/macosx/macosx.html ${resources} |
| 83 | file copy -force -- ${workpath}/macosx/Welcome.html ${resources} |
| 84 | file rename ${resources}/macosx.html ${resources}/ReadMe.html |
| 85 | file delete -force -- ${resources}/Welcome.rtf |
| 86 | } |
| 87 | |
| 88 | post-mpkg { |
| 89 | set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/ |
| 90 | file copy -force -- ${workpath}/macosx/License.html ${resources} |
| 91 | file copy -force -- ${workpath}/macosx/macosx.html ${resources} |
| 92 | file copy -force -- ${workpath}/macosx/Welcome.html ${resources} |
| 93 | file rename ${resources}/macosx.html ${resources}/ReadMe.html |
| 94 | file delete -force -- ${resources}/Welcome.rtf |
| 95 | } |
| 96 | |
| 97 | if {![variant_isset st]} { |
| 98 | default_variants +mt |
| 99 | } |
| 100 | |
| 101 | variant st conflicts mt description {Single-threaded} { |
| 102 | configure.args-append --disable-mt |
| 103 | } |
| 104 | |
| 105 | variant mt conflicts st description {Multi-threaded (default)} { |
| 106 | configure.args-append --enable-mt |
| 107 | } |
| 108 | |
| 109 | livecheck.check regexm |
| 110 | livecheck.url ${homepage}dl-stable.html |
| 111 | livecheck.regex "Gzipped tar file holding the sources for version <b>(\\d+\\.\\d+\\.\\d+)" |