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

Last change on this file was 153454, checked in by ryandesign@…, 14 months ago

swi-prolog-devel: Update to 7.3.28

Resolves #52472

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