Ticket #26153: Portfile

File Portfile, 3.5 KB (added by J.Liem@…, 14 years ago)

Portfile for SWI-Prolog 5.10.1 - same problem

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 64763 2010-03-15 16:31:33Z nox@macports.org $
3
4PortSystem      1.0
5
6name            swi-prolog
7conflicts       swi-prolog-devel swi-prolog-lite
8epoch           20051223
9version         5.10.1
10revision        2
11
12categories      lang
13maintainers     uva.nl:J.Wielemaker logtalk.org:pmoura
14platforms       darwin
15description     SWI-Prolog compiler plus extra packages (stable version)
16
17long_description        \
18        ISO/Edinburgh-style Prolog compiler including modules,          \
19        autoload, libraries, Garbage-collector, stack-expandor,         \
20        C/C++-interface, Multiple threads, GNU-readline interface,      \
21        coroutining, constraint programming, global variables,          \
22        very fast compiler. Including packages clib (Unix process       \
23        control, sockets, MIME), cpp (C++ interface), sgml (reading     \
24        XML/SGML), sgml/RDF (reading RDF into triples), ODBC            \
25        interface and XPCE (Graphics UI toolkit, integrated editor      \
26        (Emacs-clone) and graphical debugger).
27
28homepage        http://www.swi-prolog.org/
29master_sites    http://www.swi-prolog.org/download/stable/src
30
31checksums   \
32        md5     9168a2c872d2130467c3e74b80ed3ee0 \
33        sha1    aaf4a3b20b06dec9eb3a07b3cb9927094e4e8c2c \
34        rmd160  8bc2ed4e2d77e4c7c9a027c2cec654e79431bba4
35
36depends_build   \
37        port:gawk       \
38        port:junit
39
40depends_lib             \
41        port:readline           \
42        port:ncurses            \
43        port:jpeg               \
44        port:libmcrypt          \
45        port:gmp                \
46        port:zlib               \
47        port:Xft2 \
48        port:xorg-libXinerama \
49        port:xpm \
50        port:xorg-libXt
51
52use_parallel_build      no
53
54platform darwin 9 {
55        depends_lib-append port:expat
56}
57
58distname        pl-${version}
59
60configure.env   \
61        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
62        CPATH=/usr/include:${prefix}/include    \
63        JUNIT=${prefix}/share/java/junit.jar
64
65configure.ldflags
66
67configure.args  \
68        --mandir=${prefix}/share/man    \
69        --x-includes=${prefix}/include  \
70        --x-libraries=${prefix}/lib     \
71        --with-world
72
73build.env       \
74        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
75        CPATH=/usr/include:${prefix}/include    \
76        JUNIT=${prefix}/share/java/junit.jar \
77        CC=${configure.cc}
78
79post-build {
80        file mkdir ${workpath}/macosx
81        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/
82        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/
83        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/
84}
85
86post-pkg {
87        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
88        file copy -force -- ${workpath}/macosx/License.html ${resources}
89        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
90        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
91        file rename ${resources}/macosx.html ${resources}/ReadMe.html
92        file delete -force -- ${resources}/Welcome.rtf
93}
94
95post-mpkg {
96        set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/
97        file copy -force -- ${workpath}/macosx/License.html ${resources}
98        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
99        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
100        file rename ${resources}/macosx.html ${resources}/ReadMe.html
101        file delete -force -- ${resources}/Welcome.rtf
102}
103
104if {![variant_isset st]} {
105        default_variants +mt
106}
107
108variant st conflicts mt description {Single-threaded} {
109        configure.args-append --disable-mt
110}
111
112variant mt conflicts st description {Multi-threaded} {
113        configure.args-append --enable-mt
114}
115
116universal_variant   no
117
118livecheck.type      regexm
119livecheck.url       ${homepage}download/stable
120livecheck.regex     "/download/stable/src/pl-(\\d+\\.\\d+\\.\\d+).tar.gz"