1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name swi-prolog |
---|
5 | version 5.6.47 |
---|
6 | epoch 20051223 |
---|
7 | |
---|
8 | categories lang |
---|
9 | maintainers wielemak@science.uva.nl pmoura@logtalk.org |
---|
10 | platforms darwin |
---|
11 | description SWI-Prolog compiler plus extra packages (stable version) |
---|
12 | |
---|
13 | long_description \ |
---|
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 | coroutining, constraint programming, global variables, \ |
---|
18 | very fast compiler. Including packages clib (Unix process \ |
---|
19 | control, sockets, MIME), cpp (C++ interface), sgml (reading \ |
---|
20 | XML/SGML), sgml/RDF (reading RDF into triples), ODBC \ |
---|
21 | interface and XPCE (Graphics UI toolkit, integrated editor \ |
---|
22 | (Emacs-clone) and graphical debugger). |
---|
23 | |
---|
24 | homepage http://www.swi-prolog.org/ |
---|
25 | master_sites http://gollem.science.uva.nl/cgi-bin/nph-download/SWI-Prolog/ |
---|
26 | |
---|
27 | checksums md5 4651f59c31225e87aa977274516cf818 |
---|
28 | |
---|
29 | depends_build \ |
---|
30 | port:gawk \ |
---|
31 | port:junit |
---|
32 | |
---|
33 | depends_lib \ |
---|
34 | port:readline \ |
---|
35 | lib:libncursesw:ncurses \ |
---|
36 | lib:libjpeg:jpeg \ |
---|
37 | lib:libmcrypt:libmcrypt \ |
---|
38 | lib:libX11.6:XFree86 \ |
---|
39 | lib:libgmp:gmp \ |
---|
40 | lib:libzlib:zlib |
---|
41 | |
---|
42 | platform darwin 6 { |
---|
43 | depends_lib-append lib:libdl:dlcompat |
---|
44 | } |
---|
45 | |
---|
46 | distname pl-${version} |
---|
47 | |
---|
48 | configure.env \ |
---|
49 | LIBRARY_PATH=/usr/lib:/usr/X11R6/lib:/opt/local/lib \ |
---|
50 | CPATH=/usr/include:/usr/X11R6/include:/opt/local/include \ |
---|
51 | JUNIT=/opt/local/share/java/junit.jar |
---|
52 | |
---|
53 | configure.ldflags |
---|
54 | |
---|
55 | configure.args \ |
---|
56 | --prefix=${prefix} \ |
---|
57 | --mandir=${prefix}/share/man \ |
---|
58 | --with-world |
---|
59 | |
---|
60 | build.env \ |
---|
61 | LIBRARY_PATH=/usr/lib:/usr/X11R6/lib:/opt/local/lib \ |
---|
62 | CPATH=/usr/include:/usr/X11R6/include:/opt/local/include \ |
---|
63 | JUNIT=/opt/local/share/java/junit.jar |
---|
64 | |
---|
65 | post-build { |
---|
66 | file mkdir ${workpath}/macosx |
---|
67 | file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/ |
---|
68 | file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/ |
---|
69 | file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/ |
---|
70 | } |
---|
71 | |
---|
72 | post-pkg { |
---|
73 | set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/ |
---|
74 | file copy -force -- ${workpath}/macosx/License.html ${resources} |
---|
75 | file copy -force -- ${workpath}/macosx/macosx.html ${resources} |
---|
76 | file copy -force -- ${workpath}/macosx/Welcome.html ${resources} |
---|
77 | file rename ${resources}/macosx.html ${resources}/ReadMe.html |
---|
78 | file delete -force -- ${resources}/Welcome.rtf |
---|
79 | } |
---|
80 | |
---|
81 | post-mpkg { |
---|
82 | set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/ |
---|
83 | file copy -force -- ${workpath}/macosx/License.html ${resources} |
---|
84 | file copy -force -- ${workpath}/macosx/macosx.html ${resources} |
---|
85 | file copy -force -- ${workpath}/macosx/Welcome.html ${resources} |
---|
86 | file rename ${resources}/macosx.html ${resources}/ReadMe.html |
---|
87 | file delete -force -- ${resources}/Welcome.rtf |
---|
88 | } |
---|
89 | |
---|
90 | default_variants +mt |
---|
91 | |
---|
92 | variant st { |
---|
93 | configure.args-append --disable-mt |
---|
94 | } |
---|
95 | |
---|
96 | variant mt { |
---|
97 | configure.args-append --enable-mt |
---|
98 | } |
---|