source: trunk/dports/lang/mozart/Portfile

Last change on this file was 84550, checked in by snc@…, 6 years ago

modelines

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 84550 2011-09-27 21:05:11Z ryandesign@macports.org $
3
4PortSystem           1.0
5
6name                 mozart
7version              1.4.0
8revision            1
9set tardate          20080704
10set urldate          2008-07-02
11categories           lang
12platforms            darwin
13maintainers          bfulgham
14homepage             http://www.mozart-oz.org
15description          Mozart-Oz multiparadigms programming language.
16long_description     The Mozart system is a development platform focused on open \
17                        distributed computing and constraint-based inferrence.  \
18                        The system provides excellent support for logic and \
19                        constraint programming, making it an excellent choice \
20                        for implementing multi-agent systems.  The language has \
21                        recently been popularized by the book "Concepts, \
22                        Techniques, and Models of Computer Progamming."
23
24depends_build        port:gmp port:zlib port:gdbm
25#depends_lib          port:emacs
26depends_run          bin:wish:tk
27
28master_sites         ${homepage}/download/mozart-ftp/store/${version}-${urldate}-tar/
29distname             ${name}-${version}.${tardate}-src
30checksums            md5 d34156dce23a84925f7eae121feb3afe \
31                     sha1 5a12a1d66c871f01dc1223aa614d4e0bf7717b3f \
32                     rmd160 090c0af3cba9db422c58c37d5fa3e703c8cc82d7
33
34patchfiles           patch-share-bin-oz.in \
35                     patch-platform_dss_configure.ac \
36                     casts.diff \
37                     patch-platform_emulator_Makefile.in
38
39worksrcdir           ${name}-${version}.${tardate}
40configure.ldflags
41configure.args       --prefix=${prefix}/share/mozart \
42                     --enable-modules-static \
43                     --disable-contrib-micq
44
45use_autoconf         yes
46autoconf.dir         ${worksrcpath}/platform/dss
47
48# endless errors in 64-bit due to casting from pointer to int
49supported_archs i386 ppc
50# and it doesn't consistently use cxxflags
51if {[variant_isset universal]} {
52    set archflags ${configure.universal_cxxflags}
53} else {
54    set archflags ${configure.cxx_archflags}
55}
56configure.env-append CPU_FLAGS="${archflags}"
57eval configure.cxx ${configure.cxx} ${archflags}
58configure.args-append --with-cxx="${configure.cxx}"
59
60use_parallel_build no
61build.target
62
63destroot.args        PREFIX=${destroot}${prefix}/share/mozart
64
65post-destroot {
66        delete ${destroot}${prefix}/share/mozart/cache/x-oz/doc
67        file delete -force ${destroot}${prefix}/share/mozart/doc
68
69        xinstall -m 0644 ${filespath}/README.MacPorts ${destroot}${prefix}/share/mozart
70
71        xinstall -d ${destroot}${prefix}/man/man1
72        # foreach x [glob ${destroot}${prefix}/share/mozart/doc/man/*.1] { system "ln $x ${destroot}${prefix}/man/man1" }
73
74        reinplace "s|^# OZHOME=.*|OZHOME=${prefix}/share/mozart|" ${destroot}${prefix}/share/mozart/bin/oz
75        xinstall -d ${destroot}${prefix}/bin
76        foreach x [glob -type {x} ${destroot}${prefix}/share/mozart/bin/*] { system "ln $x ${destroot}${prefix}/bin" }
77
78        file delete -force ${destroot}${prefix}/share/mozart/doc/.htaccess
79}
Note: See TracBrowser for help on using the repository browser.