Ticket #840: Portfile.2

File Portfile.2, 1.9 KB (added by gwright@…, 21 years ago)

updated portfile

Line 
1# $Id: $
2
3PortSystem      1.0
4name            gprolog
5version         1.2.16
6
7categories      lang
8maintainers     pmoura@mac.com
9platforms       darwin
10description     GNU Prolog compiler
11
12long_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
26homepage        http://gprolog.inria.fr/
27master_sites    ftp://ftp.inria.fr/INRIA/Projects/contraintes/${name}/
28
29checksums       md5 d7fe87106cd3e7e770375f04dd0d14c2
30
31distname        ${name}-${version}
32worksrcdir      ${name}-${version}/src
33
34configure.args  --prefix=${destroot}/${prefix} \
35                --with-install-dir=${destroot}/${prefix}/lib/${name}-${version} \
36                --with-examples-dir=${destroot}/${prefix}/share/${name}-${version} \
37                --with-doc-dir=${destroot}/${prefix}/share/${name}-${version}
38
39post-destroot   { cd ${destroot}/${prefix}/bin
40
41                  file delete fd2c
42                  file delete gplc
43                  file delete gprolog
44                  file delete hexgplc
45                  file delete ma2asm
46                  file delete pl2wam
47                  file delete wam2ma
48
49                  system "ln -s ../lib/${name}-${version}/bin/fd2c fd2c"
50                  system "ln -s ../lib/${name}-${version}/bin/gplc gplc"
51                  system "ln -s ../lib/${name}-${version}/bin/gprolog gprolog"
52                  system "ln -s ../lib/${name}-${version}/bin/hexgplc hexgplc"
53                  system "ln -s ../lib/${name}-${version}/bin/ma2asm ma2asm"
54                  system "ln -s ../lib/${name}-${version}/bin/pl2wam pl2wam"
55                  system "ln -s ../lib/${name}-${version}/bin/wam2ma wam2ma"
56                }
57