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

Last change on this file since 85585 was 85585, checked in by ryandesign@…, 9 years ago

Add depends_skip_archcheck apple-gcc42; see #31584

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