source: trunk/dports/lang/swi-prolog-devel/Portfile @ 78762

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

remove ncursesw dependencies

  • 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 78762 2011-05-21 15:29:21Z jmr@macports.org $
3
4PortSystem      1.0
5
6name            swi-prolog-devel
7conflicts       swi-prolog swi-prolog-lite
8epoch           20051223
9version         5.11.20
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    89d0a6c18f794963d70e45c29eb42744415d183c \
34        rmd160  6de977636dc8786f9ad839cc760ebb21f049a1ac
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/devel
120livecheck.regex     "/download/devel/src/pl-(\\d+\\.\\d+\\.\\d+).tar.gz"
Note: See TracBrowser for help on using the repository browser.