Ticket #19592: Portfile

File Portfile, 1.3 KB (added by cedstrom@…, 15 years ago)
Line 
1# $Id$
2PortSystem      1.0
3name            wxMaxima
4version         0.8.2
5maintainers     usami-k@yc5.so-net.ne.jp
6platforms       darwin
7categories      math aqua
8description     Graphical user interface for Maxima
9long_description \
10                wxMaxima is a cross platform GUI for the computer algebra \
11                system maxima based on wxWidgets.
12homepage        http://wxmaxima.sourceforge.net/
13master_sites    sourceforge:wxmaxima
14checksums       md5     d3d4abde8495aebb295df587587de4a8 \
15                sha1    bc1d221855f5b7e57401801f43b60924987c5079 \
16                rmd160  43ea46e845f79576d273f4d0ad21a2c0d47664f9
17
18patchfiles      patch-src_main.cpp.diff
19
20depends_lib     port:libiconv \
21                port:libsdl \
22                port:libxml2 \
23                port:wxWidgets \
24                port:zlib
25depends_run     port:maxima
26
27post-patch {
28    reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/src/main.cpp
29}
30
31configure.args  --enable-dnd --enable-printing --enable-unicode-glyphs
32build.target-append wxMaxima.app
33
34destroot {
35    xinstall -m 755 -d ${destroot}${applications_dir}
36    file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir}
37
38    set docPath ${prefix}/share/doc/${name}
39    xinstall -m 755 -d ${destroot}${docPath}
40    foreach f { AUTHORS COPYING README } {
41        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${docPath}
42    }
43}
44