source: trunk/dports/lang/swi-prolog-lite/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: 2.9 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem      1.0
4
5name            swi-prolog-lite
6version         5.6.62
7
8categories      lang
9maintainers     uva.nl:J.Wielemaker logtalk.org:pmoura
10platforms       darwin
11description     SWI-Prolog compiler (without extra packages)
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                very fast compiler. Including packages clib (Unix process       \
18                control, sockets, MIME), cpp (C++ interface), sgml (reading \
19                XML/SGML), sgml/RDF (reading RDF into triples), ODBC            \
20                interface and XPCE (Graphics UI toolkit, integrated editor      \
21                (Emacs-clone) and graphical debugger).
22
23homepage        http://www.swi-prolog.org/
24
25master_sites    http://gollem.science.uva.nl/cgi-bin/nph-download/SWI-Prolog/
26
27dist_subdir     swi-prolog
28
29checksums       \
30        md5     0305ac720f6d1277bcaf33876570f0d2 \
31        sha1    bd87c39f9b87c8f8981507de76b1e46a83380de4 \
32        rmd160  7356d072091d363584fd8262a04c30509c018a0a
33
34depends_lib     port:readline
35
36distname        pl-${version}
37worksrcdir      pl-${version}/src
38
39configure.env   \
40        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
41        CPATH=/usr/include:${prefix}/include
42
43configure.ldflags
44
45configure.args  \
46        --prefix=${prefix}                              \
47        --mandir=${prefix}/share/man    \
48        --disable-gmp \
49        --enable-shared
50
51platform darwin 6 {
52        depends_lib-append lib:libdl:dlcompat
53}
54
55build.env       \
56        LIBRARY_PATH=${prefix}/lib      \
57        CPATH=/usr/include:${prefix}/include
58
59post-build {
60        file mkdir ${workpath}/macosx
61        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/
62        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/
63        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/
64}
65
66post-pkg {
67        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
68        file copy -force -- ${workpath}/macosx/License.html ${resources}
69        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
70        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
71        file rename ${resources}/macosx.html ${resources}/ReadMe.html
72        file delete -force -- ${resources}/Welcome.rtf
73}
74
75post-mpkg {
76        set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/
77        file copy -force -- ${workpath}/macosx/License.html ${resources}
78        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
79        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
80        file rename ${resources}/macosx.html ${resources}/ReadMe.html
81        file delete -force -- ${resources}/Welcome.rtf
82}
83
84if {![variant_isset st]} {
85        default_variants +mt
86}
87
88variant st conflicts mt description {Single-threaded} {
89        configure.args-append --disable-mt
90}
91
92variant mt conflicts st description {Multi-threaded (default)} {
93        configure.args-append --enable-mt
94}
95
96livecheck.check     regexm
97livecheck.url       ${homepage}dl-stable.html
98livecheck.regex     "Gzipped tar file holding the sources for version <b>(\\d+\\.\\d+\\.\\d+)"
Note: See TracBrowser for help on using the repository browser.