Ticket #7119: Portfile

File Portfile, 3.7 KB (added by bfulgham@…, 19 years ago)

Portfile to build Mozart from CVS and link to system emacs system.

Line 
1# $Id: Portfile,v 1.1 2005/01/31 18:16:06 mww Exp $
2
3PortSystem 1.0
4
5name                    mozart
6version                 1.3.1
7categories              lang
8platforms               darwin
9maintainers             bfulgham@mac.com
10description             Multi-paradigm deveopment system
11long_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."
18homepage                http://www.mozart-oz.org/
19
20depends_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
22depends_run              port:${prefix}/bin/emacs
23
24fetch.type              cvs
25cvs.root                :pserver:anoncvs@cvs.mozart-oz.org:/services/mozart/CVS
26cvs.module              ${name}
27cvs.password            "anoncvs"
28#cvs.args               -r mozart-1-3-0-fixes
29
30worksrcdir              ${name}
31
32configure.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
37configure.args          --prefix=${prefix}/lib/${name} --with-inc-dir=${prefix}/include --with-lib-dir=${prefix}/lib --mandir=${destroot}/${prefix}/share/man --disable-contrib-regex
38
39build.target            bootstrap
40
41destroot.cmd            make install PREFIX=${destroot}${prefix}/lib/${name}
42
43post-destroot           {
44        reinplace "s|# OZHOME.*$|OZHOME=${prefix}/lib/mozart|" ${destroot}${prefix}/lib/mozart/bin/oz
45}
46
47post-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}