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

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

swi-prolog: add pkgconfig dep

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
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 82382 2011-08-13 00:04:02Z jmr@macports.org $
3
4PortSystem      1.0
5
6name            swi-prolog
7conflicts       swi-prolog-devel swi-prolog-lite
8epoch           20051223
9version         5.10.4
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    481828a00b6fa0ea3e60a081b75ed7cf55591b97 \
32        rmd160  5891908606a3676a2c6c6008f8cb2f6724cd211f
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
53platform darwin 9 {
54        depends_lib-append port:expat
55}
56
57distname        pl-${version}
58
59configure.env   \
60        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
61        CPATH=/usr/include:${prefix}/include    \
62        JUNIT=${prefix}/share/java/junit.jar
63
64configure.ldflags
65
66configure.args  \
67        --mandir=${prefix}/share/man    \
68        --x-includes=${prefix}/include  \
69        --x-libraries=${prefix}/lib     \
70        --with-world
71
72build.env       \
73        LIBRARY_PATH=/usr/lib:${prefix}/lib     \
74        CPATH=/usr/include:${prefix}/include    \
75        JUNIT=${prefix}/share/java/junit.jar \
76        CC=${configure.cc}
77
78post-build {
79        file mkdir ${workpath}/macosx
80        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/
81        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/
82        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/
83}
84
85post-pkg {
86        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
87        file copy -force -- ${workpath}/macosx/License.html ${resources}
88        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
89        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
90        file rename ${resources}/macosx.html ${resources}/ReadMe.html
91        file delete -force -- ${resources}/Welcome.rtf
92}
93
94post-mpkg {
95        set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/
96        file copy -force -- ${workpath}/macosx/License.html ${resources}
97        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
98        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
99        file rename ${resources}/macosx.html ${resources}/ReadMe.html
100        file delete -force -- ${resources}/Welcome.rtf
101}
102
103if {![variant_isset st]} {
104        default_variants +mt
105}
106
107variant st conflicts mt description {Single-threaded} {
108        configure.args-append --disable-mt
109}
110
111variant mt conflicts st description {Multi-threaded} {
112        configure.args-append --enable-mt
113}
114
115universal_variant   no
116
117livecheck.type      regexm
118livecheck.url       ${homepage}download/stable
119livecheck.regex     "/download/stable/src/pl-(\\d+\\.\\d+\\.\\d+).tar.gz"
Note: See TracBrowser for help on using the repository browser.