Ticket #13351: Portfile

File Portfile, 2.6 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   port:gawk
30
31depends_lib             \
32        lib:libreadline:readline        \
33        lib:libncursesw:ncurses         \
34        lib:libjpeg:jpeg                        \
35        lib:libmcrypt:libmcrypt         \
36        lib:libX11.6:XFree86            \
37        lib:libgmp:gmp                          \
38        lib:libzlib:zlib
39
40platform darwin 6 {
41        depends_lib-append lib:libdl:dlcompat
42}
43
44distname        pl-${version}
45
46configure.env   \
47        LIBRARY_PATH=/usr/lib:/usr/X11R6/lib:/opt/local/lib             \
48        CPATH=/usr/include:/usr/X11R6/include:/opt/local/include        \
49        JUNIT=/opt/local/share/java/junit.jar
50
51configure.ldflags
52
53configure.args  \
54        --prefix=${prefix}                              \
55        --mandir=${prefix}/share/man    \
56        --with-world
57
58build.env       \
59        LIBRARY_PATH=/usr/lib:/usr/X11R6/lib:/opt/local/lib                     \
60        CPATH=/usr/include:/usr/X11R6/include:/opt/local/include        \
61        JUNIT=/opt/local/share/java/junit.jar
62
63post-pkg {
64        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
65        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${resources}/License.html
66        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${resources}/ReadMe.html
67        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${resources}/Welcome.html
68        file delete -force -- ${resources}/Welcome.rtf
69}
70
71post-mpkg {
72        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
73        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${resources}/License.html
74        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${resources}/ReadMe.html
75        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${resources}/Welcome.html
76        file delete -force -- ${resources}/Welcome.rtf
77}
78
79default_variants +mt
80
81variant st {
82        configure.args-append --disable-mt
83}
84
85variant mt {
86        configure.args-append --enable-mt
87}