source: trunk/dports/lang/swi-prolog-devel/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-devel
7conflicts       swi-prolog swi-prolog-lite
8epoch           20051223
9version         5.11.28
10
11categories      lang
12maintainers     uva.nl:J.Wielemaker logtalk.org:pmoura
13platforms       darwin
14description     SWI-Prolog compiler plus extra packages (development 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/devel/src/
29
30dist_subdir     swi-prolog
31
32checksums       \
33        sha1    c928f995a49d8f2bd2d6f414f825845e040e1fd7 \
34        rmd160  b43ef3612f4f50215c12aaf3252784140b815c47
35
36depends_build   \
37        port:gawk       \
38        port:junit      \
39        port:pkgconfig
40
41depends_lib             \
42        port:readline           \
43        port:ncurses            \
44        port:jpeg               \
45        port:libmcrypt          \
46        port:gmp                \
47        port:zlib               \
48        port:Xft2               \
49        port:xorg-libXinerama   \
50        port:xpm                \
51        port:xorg-libXt
52
53use_parallel_build      no
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        --x-includes=${prefix}/include  \
67        --x-libraries=${prefix}/lib     \
68        --with-world
69
70if {${configure.compiler} == "clang" ||
71        ${configure.compiler} == "llvm-gcc-4.2"} {
72        configure.compiler gcc-4.2
73        if {![file executable ${configure.cc}]} {
74                depends_build-append port:apple-gcc42
75                depends_skip_archcheck apple-gcc42
76                configure.compiler apple-gcc-4.2
77        }
78}
79
80build.env       \
81        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
82        CPATH=/usr/include:${prefix}/include    \
83        JUNIT=${prefix}/share/java/junit.jar    \
84        CC=${configure.cc}
85
86post-build {
87        file mkdir ${workpath}/macosx
88        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/
89        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/
90        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/
91}
92
93post-pkg {
94        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
95        file copy -force -- ${workpath}/macosx/License.html ${resources}
96        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
97        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
98        file rename ${resources}/macosx.html ${resources}/ReadMe.html
99        file delete -force -- ${resources}/Welcome.rtf
100}
101
102post-mpkg {
103        set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/
104        file copy -force -- ${workpath}/macosx/License.html ${resources}
105        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
106        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
107        file rename ${resources}/macosx.html ${resources}/ReadMe.html
108        file delete -force -- ${resources}/Welcome.rtf
109}
110
111if {![variant_isset st]} {
112        default_variants +mt
113}
114
115variant st conflicts mt description {Single-threaded} {
116        configure.args-append --disable-mt
117}
118
119variant mt conflicts st description {Multi-threaded} {
120        configure.args-append --enable-mt
121}
122
123universal_variant   no
124
125livecheck.type      regexm
126livecheck.url       ${homepage}download/devel
127livecheck.regex     "/download/devel/src/pl-(\\d+\\.\\d+\\.\\d+).tar.gz"
Note: See TracBrowser for help on using the repository browser.