1 | # $Id: Portfile,v 1.1 2005/01/31 18:16:06 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mozart |
---|
6 | version 1.3.1 |
---|
7 | categories lang |
---|
8 | platforms darwin |
---|
9 | maintainers bfulgham@mac.com |
---|
10 | description Multi-paradigm deveopment system |
---|
11 | long_description The Mozart system is a development platform focused on open \ |
---|
12 | distributed computing and constraint-based inferrence. \ |
---|
13 | The system provides excellent support for logic and \ |
---|
14 | constraint programming, making it an excellent choice \ |
---|
15 | for implementing multi-agent systems. The language has \ |
---|
16 | recently been popularized by the book "Concepts, \ |
---|
17 | Techniques, and Models of Computer Progamming." |
---|
18 | homepage http://www.mozart-oz.org/ |
---|
19 | |
---|
20 | depends_lib lib:tcl8.4:tcl lib:tk8.4:tk lib:libgnuregex:gnuregex lib:gmp.3:gmp lib:libgdbm:gdbm |
---|
21 | #depends_run path:${prefix}/bin/emacs:emacs |
---|
22 | depends_run port:${prefix}/bin/emacs |
---|
23 | |
---|
24 | fetch.type cvs |
---|
25 | cvs.root :pserver:anoncvs@cvs.mozart-oz.org:/services/mozart/CVS |
---|
26 | cvs.module ${name} |
---|
27 | cvs.password "anoncvs" |
---|
28 | #cvs.args -r mozart-1-3-0-fixes |
---|
29 | |
---|
30 | worksrcdir ${name} |
---|
31 | |
---|
32 | configure.env LDFLAGS=-L${prefix}/lib \ |
---|
33 | CFLAGS=-I${prefix}/include \ |
---|
34 | CPPFLAGS=-I${prefix}/include \ |
---|
35 | CIFLAGS=-I${prefix}/include \ |
---|
36 | C_INCLUDE_PATH=${prefix}:/usr/include |
---|
37 | configure.args --prefix=${prefix}/lib/${name} --with-inc-dir=${prefix}/include --with-lib-dir=${prefix}/lib --mandir=${destroot}/${prefix}/share/man --disable-contrib-regex |
---|
38 | |
---|
39 | build.target bootstrap |
---|
40 | |
---|
41 | destroot.cmd make install PREFIX=${destroot}${prefix}/lib/${name} |
---|
42 | |
---|
43 | post-destroot { |
---|
44 | reinplace "s|# OZHOME.*$|OZHOME=${prefix}/lib/mozart|" ${destroot}${prefix}/lib/mozart/bin/oz |
---|
45 | } |
---|
46 | |
---|
47 | post-activate { |
---|
48 | # Link the documentation |
---|
49 | system "ln -sf ${prefix}/lib/${name}/doc ${prefix}/share/doc/${name}" |
---|
50 | |
---|
51 | # Link to the binaries |
---|
52 | system "ln -sf ${prefix}/lib/${name}/bin/oz ${prefix}/bin/oz" |
---|
53 | system "ln -sf ${prefix}/lib/${name}/bin/ozc ${prefix}/bin/ozc" |
---|
54 | system "ln -sf ${prefix}/lib/${name}/bin/ozd ${prefix}/bin/ozd" |
---|
55 | system "ln -sf ${prefix}/lib/${name}/bin/ozdoc ${prefix}/bin/ozdoc" |
---|
56 | system "ln -sf ${prefix}/lib/${name}/bin/ozengine ${prefix}/bin/ozengine" |
---|
57 | system "ln -sf ${prefix}/lib/${name}/bin/ozl ${prefix}/bin/ozl" |
---|
58 | system "ln -sf ${prefix}/lib/${name}/bin/ozplatform ${prefix}/bin/ozplatform" |
---|
59 | system "ln -sf ${prefix}/lib/${name}/bin/oztool ${prefix}/bin/oztool" |
---|
60 | system "ln -sf ${prefix}/lib/${name}/bin/ozwrapper.bin ${prefix}/bin/ozwrapper.bin" |
---|
61 | system "ln -sf ${prefix}/lib/${name}/bin/ozwrapperw.bin ${prefix}/bin/ozwrapper.bin" |
---|
62 | system "ln -sf ${prefix}/lib/${name}/bin/pickle2text ${prefix}/bin/pickle2text" |
---|
63 | system "ln -sf ${prefix}/lib/${name}/bin/text2pickle ${prefix}/bin/text2pickle" |
---|
64 | |
---|
65 | # Link to the includes |
---|
66 | system "ln -sf ${prefix}/lib/${name}/include ${prefix}/include/${name}" |
---|
67 | |
---|
68 | # Link to the lisp files |
---|
69 | system "ln -sf ${prefix}/lib/${name}/share/elisp/Fontifier.el ${prefix}/share/emacs/site-lisp/Fontifier.el" |
---|
70 | system "ln -sf ${prefix}/lib/${name}/share/elisp/Fontifier.elc ${prefix}/share/emacs/site-lisp/Fontifier.elc" |
---|
71 | system "ln -sf ${prefix}/lib/${name}/share/elisp/mozart.el ${prefix}/share/emacs/site-lisp/mozart.el" |
---|
72 | system "ln -sf ${prefix}/lib/${name}/share/elisp/mozart.elc ${prefix}/share/emacs/site-lisp/mozart.elc" |
---|
73 | system "ln -sf ${prefix}/lib/${name}/share/elisp/oz-extra.el ${prefix}/share/emacs/site-lisp/oz-extra.el" |
---|
74 | system "ln -sf ${prefix}/lib/${name}/share/elisp/oz-extra.elc ${prefix}/share/emacs/site-lisp/oz-extra.elc" |
---|
75 | system "ln -sf ${prefix}/lib/${name}/share/elisp/oz-server.el ${prefix}/share/emacs/site-lisp/oz-server.el" |
---|
76 | system "ln -sf ${prefix}/lib/${name}/share/elisp/oz-server.elc ${prefix}/share/emacs/site-lisp/oz-server.elc" |
---|
77 | system "ln -sf ${prefix}/lib/${name}/share/elisp/oz.el ${prefix}/share/emacs/site-lisp/oz.el" |
---|
78 | system "ln -sf ${prefix}/lib/${name}/share/elisp/oz.elc ${prefix}/share/emacs/site-lisp/oz.elc" |
---|
79 | } |
---|