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

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

In r23391 gwright undid pipping's fix from r23154 to fix the hardcoded /opt/local paths. Re-applying the fixes from r23154.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 23407 2007-03-31 05:56:52Z ryandesign@macports.org $
2
3PortSystem  1.0
4name            swi-prolog
5version         5.6.32
6epoch           20051223
7
8categories      lang
9maintainers     wielemak@science.uva.nl
10platforms       darwin
11description     SWI-Prolog compiler plus extra packages (stable version)
12
13long_description        \
14                ISO/Edinburgh-style Prolog compiler including modules,          \
15                autoload, libraries, Garbage-collector, stack-expandor,         \
16                C/C++-interface, Multiple threads, GNU-readline interface,      \
17                coroutining, constraint programming, global variables,          \
18                very fast compiler. Including packages clib (Unix process       \
19                control, sockets, MIME), cpp (C++ interface), sgml (reading     \
20                XML/SGML), sgml/RDF (reading RDF into triples), ODBC            \
21                interface and XPCE (Graphics UI toolkit, integrated editor      \
22                (Emacs-clone) and graphical debugger).
23
24homepage        http://www.swi-prolog.org/
25master_sites    http://gollem.science.uva.nl/cgi-bin/nph-download/SWI-Prolog/
26
27checksums        md5     3f41c28d9e5584e80867859518c1de47
28
29depends_build   port:gawk       \
30                port:junit
31
32depends_lib             \
33                port:readline                           \
34                lib:libreadline:readline        \
35                lib:libncursesw:ncurses         \
36                lib:libjpeg:jpeg                        \
37                lib:libmcrypt:libmcrypt         \
38                lib:libX11.6:XFree86            \
39                lib:libgmp:gmp
40
41platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
42
43distname        pl-${version}
44
45configure.env   LIBRARY_PATH=${prefix}/lib \
46                CPATH=${prefix}/include \
47                JUNIT=${prefix}/share/java/junit.jar
48
49configure.args  --prefix=${prefix}              \
50                --mandir=${prefix}/share/man    \
51                --with-world
52
53build.env       LIBRARY_PATH=${prefix}/lib \
54                CPATH=${prefix}/include \
55                JUNIT=${prefix}/share/java/junit.jar
56
57default_variants +mt
58
59variant st      { configure.args-append --disable-mt}
60
61variant mt      { configure.args-append --enable-mt}
62
63post-build {
64        file mkdir ${workpath}/macosx
65        file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/
66        file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/
67        file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/
68}
69
70post-pkg {
71        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
72        file copy -force -- ${workpath}/macosx/License.html ${resources}
73        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
74        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
75        file rename ${resources}/macosx.html ${resources}/ReadMe.html
76        file delete -force -- ${resources}/Welcome.rtf
77}
78
79post-mpkg {
80        set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/
81        file copy -force -- ${workpath}/macosx/License.html ${resources}
82        file copy -force -- ${workpath}/macosx/macosx.html ${resources}
83        file copy -force -- ${workpath}/macosx/Welcome.html ${resources}
84        file rename ${resources}/macosx.html ${resources}/ReadMe.html
85        file delete -force -- ${resources}/Welcome.rtf
86}
87
Note: See TracBrowser for help on using the repository browser.