Ticket #13387: Portfile

File Portfile, 2.9 KB (added by pmoura (Paulo Moura), 17 years ago)
Line 
1# $Id$
2
3PortSystem      1.0
4name            swi-prolog
5version         5.6.47
6epoch           20051223
7
8categories      lang
9maintainers     wielemak@science.uva.nl pmoura@logtalk.org
10platforms       darwin
11description     SWI-Prolog compiler plus extra packages (stable version)
12
13long_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
24homepage        http://www.swi-prolog.org/
25master_sites    http://gollem.science.uva.nl/cgi-bin/nph-download/SWI-Prolog/
26
27checksums       md5     4651f59c31225e87aa977274516cf818
28
29depends_build   \
30        port:gawk       \
31        port:junit
32
33depends_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
42platform darwin 6 {
43        depends_lib-append lib:libdl:dlcompat
44}
45
46distname        pl-${version}
47
48configure.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
53configure.ldflags
54
55configure.args  \
56        --prefix=${prefix}                              \
57        --mandir=${prefix}/share/man    \
58        --with-world
59
60build.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
65post-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
72post-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
81post-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
90default_variants +mt
91
92variant st {
93        configure.args-append --disable-mt
94}
95
96variant mt {
97        configure.args-append --enable-mt
98}