1 | # $Id: Portfile 90349 2012-03-03 08:52:32Z usami-k@macports.org $ |
---|
2 | PortSystem 1.0 |
---|
3 | name wxMaxima-devel |
---|
4 | version 12.09.0 |
---|
5 | maintainers mareimbrium.org:kuba |
---|
6 | license gpl |
---|
7 | platforms darwin |
---|
8 | categories math aqua |
---|
9 | description Graphical user interface for Maxima |
---|
10 | long_description \ |
---|
11 | wxMaxima is a cross platform GUI for the computer algebra \ |
---|
12 | system maxima based on wxWidgets. |
---|
13 | homepage http://wxmaxima.sourceforge.net/ |
---|
14 | master_sites sourceforge:project/wxmaxima/wxMaxima/${version} |
---|
15 | dist_subdir wxMaxima |
---|
16 | distname wxMaxima-${version} |
---|
17 | livecheck.regex wxMaxima-(\[a-z0-9.\]+)${extract.suffix} |
---|
18 | checksums sha256 5803ab62fc791bcb87f0d0f38357dba6fccc4efa61cb9f709e142c2954b1305d \ |
---|
19 | rmd160 043997a4706180a2f971de0dd07bb4a938b98ed0 \ |
---|
20 | md5 a5b0d82e99690b913dbc0109abe07e4e |
---|
21 | patchfiles patch-src_main.cpp.diff \ |
---|
22 | patch-src_Config.cpp.diff \ |
---|
23 | patch-src_wxMaxima.cpp.diff |
---|
24 | |
---|
25 | depends_lib port:libiconv \ |
---|
26 | path:lib/pkgconfig/sdl.pc:libsdl \ |
---|
27 | port:libxml2 \ |
---|
28 | bin:wx-config:wxWidgets-devel \ |
---|
29 | port:zlib |
---|
30 | depends_run port:maxima |
---|
31 | |
---|
32 | platform 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 | |
---|
40 | post-patch { |
---|
41 | reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/src/main.cpp |
---|
42 | } |
---|
43 | |
---|
44 | depends_skip_archcheck maxima |
---|
45 | configure.args --enable-dnd --enable-printing --enable-unicode-glyphs |
---|
46 | build.target-append wxMaxima.app |
---|
47 | |
---|
48 | destroot { |
---|
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 | } |
---|