Ticket #36236: Portfile

File Portfile, 2.0 KB (added by KubaO (Kuba Ober), 12 years ago)
Line 
1# $Id: Portfile 90349 2012-03-03 08:52:32Z usami-k@macports.org $
2PortSystem      1.0
3name            wxMaxima-devel
4version         12.09.0
5maintainers     mareimbrium.org:kuba
6license         gpl
7platforms       darwin
8categories      math aqua
9description     Graphical user interface for Maxima
10long_description \
11                wxMaxima is a cross platform GUI for the computer algebra \
12                system maxima based on wxWidgets.
13homepage        http://wxmaxima.sourceforge.net/
14master_sites    sourceforge:project/wxmaxima/wxMaxima/${version}
15dist_subdir     wxMaxima
16distname        wxMaxima-${version}
17livecheck.regex wxMaxima-(\[a-z0-9.\]+)${extract.suffix}
18checksums       sha256  5803ab62fc791bcb87f0d0f38357dba6fccc4efa61cb9f709e142c2954b1305d \
19                rmd160  043997a4706180a2f971de0dd07bb4a938b98ed0 \
20                md5     a5b0d82e99690b913dbc0109abe07e4e
21patchfiles      patch-src_main.cpp.diff \
22                patch-src_Config.cpp.diff \
23                patch-src_wxMaxima.cpp.diff
24
25depends_lib     port:libiconv \
26                path:lib/pkgconfig/sdl.pc:libsdl \
27                port:libxml2 \
28                bin:wx-config:wxWidgets-devel \
29                port:zlib
30depends_run     port:maxima
31
32platform darwin 11 {
33    if {[vercmp $xcodeversion 4.3] >= 0} {
34        configure.cxxflags-append -isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
35    } else {
36        configure.cxxflags-append -isysroot ${developer_dir}/SDKs/MacOSX10.6.sdk
37    }
38}
39
40post-patch {
41    reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/src/main.cpp
42}
43
44depends_skip_archcheck  maxima
45configure.args  --enable-dnd --enable-printing --enable-unicode-glyphs
46build.target-append wxMaxima.app
47
48destroot {
49    xinstall -m 755 -d ${destroot}${applications_dir}
50    file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir}
51
52    set docPath ${prefix}/share/doc/wxMaxima
53    xinstall -m 755 -d ${destroot}${docPath}
54    foreach f { AUTHORS COPYING README } {
55        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${docPath}
56    }
57}