1 | # $Id: Portfile 30587 2007-10-31 21:25:56Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name swi-prolog |
---|
5 | version 5.6.46 |
---|
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 b61740083d84fdf0ebf732697033ae29 |
---|
28 | |
---|
29 | depends_build port:gawk \ |
---|
30 | port:junit |
---|
31 | |
---|
32 | depends_lib \ |
---|
33 | port:readline \ |
---|
34 | lib:libreadline:readline \ |
---|
35 | lib:libncursesw:ncurses \ |
---|
36 | lib:libjpeg:jpeg \ |
---|
37 | lib:libmcrypt:libmcrypt \ |
---|
38 | lib:libX11.6:XFree86 \ |
---|
39 | lib:libgmp:gmp |
---|
40 | |
---|
41 | platform darwin 6 { depends_lib-append lib:libdl:dlcompat } |
---|
42 | |
---|
43 | distname pl-${version} |
---|
44 | |
---|
45 | configure.env \ |
---|
46 | LIBRARY_PATH=/usr/lib:/usr/X11R6/lib:${prefix}/lib \ |
---|
47 | CPATH=/usr/include:/usr/X11R6/include:${prefix}/include \ |
---|
48 | JUNIT=${prefix}/share/java/junit.jar |
---|
49 | |
---|
50 | configure.args --prefix=${prefix} \ |
---|
51 | --mandir=${prefix}/share/man \ |
---|
52 | --with-world |
---|
53 | |
---|
54 | build.env \ |
---|
55 | LIBRARY_PATH=/usr/lib:/usr/X11R6/lib:${prefix}/lib \ |
---|
56 | CPATH=/usr/include:/usr/X11R6/include:${prefix}/include \ |
---|
57 | JUNIT=${prefix}/share/java/junit.jar |
---|
58 | |
---|
59 | default_variants +mt |
---|
60 | |
---|
61 | variant st { configure.args-append --disable-mt} |
---|
62 | |
---|
63 | variant mt { configure.args-append --enable-mt} |
---|
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 | |
---|