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

Last change on this file was 139790, checked in by ionic@…, 2 years ago

swi-prolog: update to 7.2.3. Patch provided by maintainer. Fixes: #48737.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 139790 2015-08-27 04:13:05Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            swi-prolog
6conflicts       swi-prolog-devel swi-prolog-lite
7epoch           20051223
8version         7.2.3
9revision    1
10
11categories      lang
12license         LGPL-2.1
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
31dist_subdir     swi-prolog
32
33checksums       \
34    rmd160  ae537fbbd7de81dc9b67def1a8fed8bbb4f6cb88 \
35    sha256  43657d51b7c5887bc2d2bced50a9822b86a08a6841399b8e76ee877f51d646b5
36
37
38depends_build   \
39        port:gawk       \
40        port:junit      \
41        port:pkgconfig
42
43depends_lib             \
44        port:readline           \
45        port:ncurses            \
46        port:jpeg               \
47        port:libmcrypt          \
48        port:gmp                \
49        port:zlib               \
50        port:Xft2               \
51        port:xorg-libXinerama   \
52        port:xpm                \
53        port:xorg-libXt \
54        port:ossp-uuid          \
55        port:libarchive
56
57use_parallel_build      no
58
59distname        swipl-${version}
60
61configure.env   \
62        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
63        CPATH=/usr/include:${prefix}/include    \
64        PKG_CONFIG_PATH=${prefix}/lib/pkgconfig \
65        JUNIT=${prefix}/share/java/junit.jar
66
67configure.ldflags
68
69configure.args  \
70        --mandir=${prefix}/share/man    \
71        --x-includes=${prefix}/include  \
72        --x-libraries=${prefix}/lib     \
73        --with-world
74
75build.env       \
76        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
77        CPATH=/usr/include:${prefix}/include    \
78        PKG_CONFIG_PATH=${prefix}/lib/pkgconfig \
79        JUNIT=${prefix}/share/java/junit.jar    \
80        CC=${configure.cc}
81
82post-build {
83        file mkdir ${workpath}/macosx
84        file copy -force -- ${workpath}/swipl-${version}/man/macosx/License.html ${workpath}/macosx/
85        file copy -force -- ${workpath}/swipl-${version}/man/macosx/macosx.html ${workpath}/macosx/
86        file copy -force -- ${workpath}/swipl-${version}/man/macosx/Welcome.html ${workpath}/macosx/
87}
88
89post-pkg {
90        set resources ${workpath}/${name}-${version}.pkg/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
98post-mpkg {
99        set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/
100        file copy -force -- ${workpath}/macosx/License.html ${resources}
101        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
102        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
103        file rename ${resources}/macosx.html ${resources}/ReadMe.html
104        file delete -force -- ${resources}/Welcome.rtf
105}
106
107if {![variant_isset st]} {
108        default_variants +mt
109}
110
111variant st conflicts mt description {Single-threaded} {
112        configure.args-append --disable-mt
113}
114
115variant mt conflicts st description {Multi-threaded} {
116        configure.args-append --enable-mt
117}
118
119universal_variant   no
120
121livecheck.type      regexm
122livecheck.url       ${homepage}download/stable
123livecheck.regex     "/download/stable/src/swipl-(\\d+\\.\\d+\\.\\d+).tar.gz"
Note: See TracBrowser for help on using the repository browser.