source: trunk/dports/lang/swi-prolog-devel/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-devel
6version         5.7.4
7revision        2
8epoch           20051223
9
10categories      lang
11maintainers     uva.nl:J.Wielemaker logtalk.org:pmoura
12platforms       darwin
13description     SWI-Prolog compiler plus extra packages (development 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/BETA/
28
29checksums       \
30        md5     3e06926f0c0697983a29a8637def469d \
31        sha1    3dee69e3eda3ecd948916b6ac2a8d32cebd05abe \
32        rmd160  f7d85133ef8f61b0e08329049535c4df2b59fe01
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
73post-build {
74        file mkdir ${workpath}/macosx
75        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/
76        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/
77        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/
78}
79
80post-pkg {
81        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
82        file copy -force -- ${workpath}/macosx/License.html ${resources}
83        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
84        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
85        file rename ${resources}/macosx.html ${resources}/ReadMe.html
86        file delete -force -- ${resources}/Welcome.rtf
87}
88
89post-mpkg {
90        set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/
91        file copy -force -- ${workpath}/macosx/License.html ${resources}
92        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
93        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
94        file rename ${resources}/macosx.html ${resources}/ReadMe.html
95        file delete -force -- ${resources}/Welcome.rtf
96}
97
98if {![variant_isset st]} {
99        default_variants +mt
100}
101
102variant st conflicts mt description {Single-threaded} {
103        configure.args-append --disable-mt
104}
105
106variant mt conflicts st description {Multi-threaded (default)} {
107        configure.args-append --enable-mt
108}
109
110livecheck.check     regexm
111livecheck.url       ${homepage}dl-beta.html
112livecheck.regex     "Gzipped tar file holding the sources for BETA version <b>(\\d+\\.\\d+\\.\\d+)"
Note: See TracBrowser for help on using the repository browser.