Ticket #13258: Portfile

File Portfile, 2.9 KB (added by pmoura (Paulo Moura), 17 years ago)
Line 
1# $Id: Portfile 30587 2007-10-31 21:25:56Z ryandesign@macports.org $
2
3PortSystem  1.0
4name            swi-prolog
5version         5.6.46
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     b61740083d84fdf0ebf732697033ae29
28
29depends_build   port:gawk       \
30                port:junit
31
32depends_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
41platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
42
43distname        pl-${version}
44
45configure.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
50configure.args  --prefix=${prefix}              \
51                --mandir=${prefix}/share/man    \
52                --with-world
53
54build.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
59default_variants +mt
60
61variant st      { configure.args-append --disable-mt}
62
63variant mt      { configure.args-append --enable-mt}
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