Ticket #36235: Portfile

File Portfile, 2.4 KB (added by KubaO (Kuba Ober), 12 years ago)
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$
3
4PortSystem 1.0
5
6name            maxima
7version         5.28.0
8categories      math
9maintainers     mareimbrium.org:kuba
10platforms       darwin
11license         GPL-2+
12description     The Maxima computer algebra system
13long_description \
14        The Maxima computer algebra system is a descendant \
15        of DOE Macsyma, a version of MIT's Macsyma whose \
16        development was supported by the U.S. Department of \
17        Energy. \
18        Through the effort of the late William Shelter of the \
19        University of Texas, it was released under the GNU \
20        General Public License. It is one of the more \
21        comprehensive and powerful computer algebra systems \
22        available as open source.
23
24homepage        http://maxima.sourceforge.net/
25master_sites    sourceforge
26
27checksums       sha256  d73e925f0116ba361bf4390c80e24d4fa763f647cc1fc4cc06bbf40ceb3facda \
28                rmd160  a2d9aff1ac7e8a5464750b3b59f8b7dcedb148d5 \
29                md5     de12d5081194325f0336abef263e7263
30
31depends_lib     port:sbcl
32depends_run     port:recode \
33                port:gnuplot
34
35# we do not depend on any particular tk, apple's orignal tk will work just fine
36
37patchfiles      src_maxima.in.patch
38
39configure.args  --infodir=${prefix}/share/info \
40                --mandir=${prefix}/share/man \
41                --enable-sbcl
42
43if {${os.platform} != "darwin" && ${os.arch} != "i386"} {
44variant clisp description {Use CLISP instead of SBCL for Lisp} {
45    depends_lib-delete  port:sbcl
46    depends_lib-append  port:clisp
47    configure.args-delete --enable-sbcl
48    configure.args-append --enable-clisp
49}
50}
51
52variant abcl description {Use ABCL instead of SBCL for Lisp } {
53    depends_lib-delete  port:sbcl
54    depends_lib-append  port:abcl
55    configure.args-delete --enable-sbcl
56    configure.args-append --enable-abcl
57}
58
59test.run    yes
60test.target check
61
62variant printable_doc description {Build printable documentation} {
63    depends_build-append    port:texlive
64    build.target            all pdf
65
66    pre-destroot {
67        xinstall -d -m 755 ${destroot}${prefix}/share/${name}/${version}/doc/pdf
68        xinstall -m 644 ${worksrcpath}/doc/info/maxima.pdf \
69                        ${destroot}${prefix}/share/${name}/${version}/doc/pdf
70    }
71}
72
73livecheck.regex  {<title>Maxima (.*)-source released.*</title>}