Ticket #16964: Portfile

File Portfile, 3.3 KB (added by pmoura (Paulo Moura), 16 years ago)
Line 
1# $Id: Portfile 40260 2008-09-27 11:20:42Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            swi-prolog-devel
6version         5.7.3
7epoch           20051223
8
9categories      lang
10maintainers     wielemak@science.uva.nl pmoura@logtalk.org
11platforms       darwin
12description     SWI-Prolog compiler plus extra packages (stable version)
13
14long_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
25homepage        http://www.swi-prolog.org/
26master_sites    http://gollem.science.uva.nl/cgi-bin/nph-download/SWI-Prolog/BETA/
27
28checksums       \
29        md5     25d8f900ca65493c3eb69546c6fb458f \
30        sha1    206284b645ab2cec66ebd01f2c0e93002c402578 \
31        rmd160  9d29ec5137660458f50d00cc1a3ac96f61b0c127
32
33depends_build   \
34        port:gawk       \
35        port:junit
36
37depends_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
46platform darwin 6 {
47        depends_lib-append port:dlcompat
48}
49
50platform darwin 9 {
51        depends_lib-append port:expat
52}
53
54distname        pl-${version}
55
56configure.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
61configure.ldflags
62
63configure.args  \
64        --mandir=${prefix}/share/man    \
65        --with-world
66
67build.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
72post-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
79post-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
88post-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
97if {![variant_isset st]} {
98        default_variants +mt
99}
100
101variant st conflicts mt description {Single-threaded} {
102        configure.args-append --disable-mt
103}
104
105variant mt conflicts st description {Multi-threaded (default)} {
106        configure.args-append --enable-mt
107}
108
109livecheck.check     regexm
110livecheck.url       ${homepage}dl-beta.html
111livecheck.regex     "Gzipped tar file holding the sources for BETA version <b>(\\d+\\.\\d+\\.\\d+)"