1 | # $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name gprolog-devel |
---|
5 | version 1.4.0 |
---|
6 | |
---|
7 | categories lang |
---|
8 | maintainers logtalk.org:pmoura |
---|
9 | platforms darwin |
---|
10 | description GNU Prolog compiler |
---|
11 | |
---|
12 | long_description \ |
---|
13 | GNU Prolog is a free Prolog compiler with constraint \ |
---|
14 | solving over finite domains developed by Daniel Diaz. \ |
---|
15 | GNU Prolog accepts Prolog+constraint programs and \ |
---|
16 | produces native binaries (like gcc does from a C \ |
---|
17 | source). The obtained executable is then stand-alone. \ |
---|
18 | The size of this executable can be quite small since \ |
---|
19 | GNU Prolog can avoid linking the code of most unused \ |
---|
20 | built-in predicates. The performance of GNU Prolog is \ |
---|
21 | very encouraging (comparable to commercial systems). \ |
---|
22 | Beside native-code compilation, GNU Prolog offers a \ |
---|
23 | classical interactive interpreter (top-level) with a \ |
---|
24 | debugger. |
---|
25 | |
---|
26 | homepage http://gprolog.inria.fr/ |
---|
27 | master_sites http://gprolog.univ-paris1.fr/unstable/ |
---|
28 | |
---|
29 | checksums \ |
---|
30 | md5 0f882e352b886a5ddb59bcab457fa78e \ |
---|
31 | sha1 902e85425cdf9446f9e3b3cd78de0e8be8331654 \ |
---|
32 | rmd160 4323af783f58659c8e7ae8d704a5fc86004283b6 |
---|
33 | |
---|
34 | |
---|
35 | distname gprolog-20100713 |
---|
36 | extract.suffix .tgz |
---|
37 | |
---|
38 | worksrcdir gprolog-${version}/src |
---|
39 | |
---|
40 | use_configure yes |
---|
41 | |
---|
42 | supported_archs i386 ppc |
---|
43 | |
---|
44 | configure.args \ |
---|
45 | --prefix=${destroot}${prefix} \ |
---|
46 | --with-install-dir=${prefix}/lib/gprolog-${version} \ |
---|
47 | --with-examples-dir=${prefix}/share/gprolog-${version} \ |
---|
48 | --with-doc-dir=${prefix}/share/gprolog-${version} |
---|
49 | |
---|
50 | post-destroot { |
---|
51 | foreach cmd {fd2c gplc gprolog hexgplc ma2asm pl2wam wam2ma} { |
---|
52 | system "ln -fs ../lib/gprolog-${version}/bin/${cmd} ${destroot}${prefix}/bin/${cmd}" |
---|
53 | } |
---|
54 | |
---|
55 | file delete -force ${destroot}${prefix}/var |
---|
56 | } |
---|
57 | |
---|
58 | |
---|
59 | post-pkg { |
---|
60 | set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/ |
---|
61 | file copy -force -- ${workpath}/gprolog-${version}/COPYING ${resources}/License.txt |
---|
62 | file copy -force -- ${workpath}/gprolog-${version}/README ${resources}/ReadMe.txt |
---|
63 | } |
---|