1 | # $Id: Portfile 40260 2008-09-27 11:20:42Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name swi-prolog-devel |
---|
6 | version 5.7.3 |
---|
7 | epoch 20051223 |
---|
8 | |
---|
9 | categories lang |
---|
10 | maintainers wielemak@science.uva.nl pmoura@logtalk.org |
---|
11 | platforms darwin |
---|
12 | description SWI-Prolog compiler plus extra packages (stable version) |
---|
13 | |
---|
14 | long_description \ |
---|
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). |
---|
24 | |
---|
25 | homepage http://www.swi-prolog.org/ |
---|
26 | master_sites http://gollem.science.uva.nl/cgi-bin/nph-download/SWI-Prolog/BETA/ |
---|
27 | |
---|
28 | checksums \ |
---|
29 | md5 25d8f900ca65493c3eb69546c6fb458f \ |
---|
30 | sha1 206284b645ab2cec66ebd01f2c0e93002c402578 \ |
---|
31 | rmd160 9d29ec5137660458f50d00cc1a3ac96f61b0c127 |
---|
32 | |
---|
33 | depends_build \ |
---|
34 | port:gawk \ |
---|
35 | port:junit |
---|
36 | |
---|
37 | depends_lib \ |
---|
38 | port:readline \ |
---|
39 | port:ncurses \ |
---|
40 | port:jpeg \ |
---|
41 | port:libmcrypt \ |
---|
42 | port:gmp \ |
---|
43 | port:zlib \ |
---|
44 | lib:libX11.6:XFree86 |
---|
45 | |
---|
46 | platform darwin 6 { |
---|
47 | depends_lib-append port:dlcompat |
---|
48 | } |
---|
49 | |
---|
50 | platform darwin 9 { |
---|
51 | depends_lib-append port:expat |
---|
52 | } |
---|
53 | |
---|
54 | distname pl-${version} |
---|
55 | |
---|
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-beta.html |
---|
111 | livecheck.regex "Gzipped tar file holding the sources for BETA version <b>(\\d+\\.\\d+\\.\\d+)" |
---|