source: trunk/dports/lang/swi-prolog/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem      1.0
4
5name            swi-prolog
6version         5.6.63
7revision        2
8epoch           20051223
9
10categories      lang
11maintainers     uva.nl:J.Wielemaker logtalk.org:pmoura
12platforms       darwin
13description     SWI-Prolog compiler plus extra packages (stable version)
14
15long_description        \
16        ISO/Edinburgh-style Prolog compiler including modules,          \
17        autoload, libraries, Garbage-collector, stack-expandor,         \
18        C/C++-interface, Multiple threads, GNU-readline interface,      \
19        coroutining, constraint programming, global variables,          \
20        very fast compiler. Including packages clib (Unix process       \
21        control, sockets, MIME), cpp (C++ interface), sgml (reading     \
22        XML/SGML), sgml/RDF (reading RDF into triples), ODBC            \
23        interface and XPCE (Graphics UI toolkit, integrated editor      \
24        (Emacs-clone) and graphical debugger).
25
26homepage        http://www.swi-prolog.org/
27master_sites    http://gollem.science.uva.nl/cgi-bin/nph-download/SWI-Prolog/
28
29checksums       \
30        md5     4efffb1f7280080182fc5417bbce4010 \
31        sha1    d2b94f1f90b76d42e78bfeb90c8285c3faf56d5c \
32        rmd160  73577a7d224ce87b0d216a3eb7c576499f97ea71
33
34depends_build   \
35        port:gawk       \
36        port:junit
37
38depends_lib             \
39        port:readline           \
40        port:ncurses            \
41        port:jpeg               \
42        port:libmcrypt          \
43        port:gmp                \
44        port:zlib               \
45        port:xorg-libs
46
47platform darwin 6 {
48        depends_lib-append port:dlcompat
49}
50
51platform darwin 9 {
52        depends_lib-append port:expat
53}
54
55distname        pl-${version}
56
57configure.env   \
58        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
59        CPATH=/usr/include:${prefix}/include    \
60        JUNIT=${prefix}/share/java/junit.jar
61
62configure.ldflags
63
64configure.args  \
65        --mandir=${prefix}/share/man    \
66        --with-world
67
68build.env       \
69        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
70        CPATH=/usr/include:${prefix}/include    \
71        JUNIT=${prefix}/share/java/junit.jar \
72        CC=${configure.cc}
73
74post-build {
75        file mkdir ${workpath}/macosx
76        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/
77        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/
78        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/
79}
80
81post-pkg {
82        set resources ${workpath}/${name}-${version}.pkg/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
90post-mpkg {
91        set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/
92        file copy -force -- ${workpath}/macosx/License.html ${resources}
93        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
94        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
95        file rename ${resources}/macosx.html ${resources}/ReadMe.html
96        file delete -force -- ${resources}/Welcome.rtf
97}
98
99if {![variant_isset st]} {
100        default_variants +mt
101}
102
103variant st conflicts mt description {Single-threaded} {
104        configure.args-append --disable-mt
105}
106
107variant mt conflicts st description {Multi-threaded (default)} {
108        configure.args-append --enable-mt
109}
110
111livecheck.check     regexm
112livecheck.url       ${homepage}dl-stable.html
113livecheck.regex     "Gzipped tar file holding the sources for version <b>(\\d+\\.\\d+\\.\\d+)"
Note: See TracBrowser for help on using the repository browser.