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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | PortGroup active_variants 1.1 |
---|
6 | PortGroup cmake 1.1 |
---|
7 | PortGroup wxWidgets 1.0 |
---|
8 | PortGroup github 1.0 |
---|
9 | |
---|
10 | github.setup wxMaxima-developers wxmaxima 23.05.1 Version- |
---|
11 | revision 0 |
---|
12 | name wxMaxima |
---|
13 | maintainers @MSoegtropIMC |
---|
14 | license GPL-2 |
---|
15 | # openssl is a dependency of curl in cmake, so build only |
---|
16 | license_noconflict openssl |
---|
17 | platforms darwin |
---|
18 | categories math aqua |
---|
19 | description Graphical user interface for Maxima based on wxWidgets |
---|
20 | long_description Maxima is a Computer Algebra System (CAS) and wxMaxima is a work book style \ |
---|
21 | graphical front end for it based on wxWidgets |
---|
22 | |
---|
23 | checksums rmd160 7e48118ac0df90b2d4d2285f441d4aa81b570e06 \ |
---|
24 | sha256 1ecf2dbebf5e92799c106ad47024a7cc3b715d38541446443f28ac3570d0b947 \ |
---|
25 | size 16220309 |
---|
26 | |
---|
27 | universal_variant no |
---|
28 | |
---|
29 | # Note: as of Match 2020 (1b00466)the build with wxWidgets-3.2 has serious issues with scrolling |
---|
30 | wxWidgets.use wxWidgets-3.2 |
---|
31 | |
---|
32 | depends_lib-append port:${wxWidgets.port} \ |
---|
33 | lib:lib/libomp/libomp.dylib:libomp |
---|
34 | |
---|
35 | depends_run-append port:gnuplot \ |
---|
36 | port:maxima |
---|
37 | |
---|
38 | post-patch { |
---|
39 | reinplace -W ${worksrcpath} "s|OSX_MACPORTS_PREFIX \"/opt/local\"|OSX_MACPORTS_PREFIX \"${prefix}\" // patched by MacPorts|" src/Dirstructure.h |
---|
40 | reinplace -W ${worksrcpath} "s|OSX_MACPORTS_PREFER 0|OSX_MACPORTS_PREFER 1 // patched by MacPorts|" src/Dirstructure.h |
---|
41 | } |
---|
42 | |
---|
43 | configure.cppflags-append \ |
---|
44 | -I${prefix}/include/libomp |
---|
45 | |
---|
46 | configure.args -DCMAKE_BUILD_TYPE=Release \ |
---|
47 | -DCCACHE_PROGRAM= \ |
---|
48 | -DUSE_CPPCHECK=YES \ |
---|
49 | -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=${wxWidgets.wxconfig} |
---|
50 | |
---|
51 | destroot { |
---|
52 | copy ${build.dir}/src/wxmaxima.app ${destroot}${applications_dir}/wxMaxima.app |
---|
53 | } |
---|
54 | |
---|
55 | notes " |
---|
56 | wxMaxima is installed under '${applications_dir}/wxMaxima.app'.\ |
---|
57 | You can start it from there via Finder.\ |
---|
58 | If you want to add wxMaxima to the Dock, start it via Finder,\ |
---|
59 | right-click the icon in Dock and select 'Options/Keep in Dock'. |
---|
60 | |
---|
61 | wxMaxima should be able to find maxima and gnuplot at the MacPorts install\ |
---|
62 | folder '${prefix}/bin/' and also at a few non-MacPorts locations.\ |
---|
63 | In case you have issues with finding maxima, open wxMaxima Preferences and\ |
---|
64 | under the second tab (maxima) enter your path to the maxima executable and\ |
---|
65 | in the last tab (startup) add this command: |
---|
66 | gnuplot_command:\"<yourgnuplotpath>/gnuplot\"$ |
---|
67 | You might have to restart wxMaxima for this to take effect. |
---|
68 | |
---|
69 | wxMaxima and Maxima startup files can typically be found in: |
---|
70 | ~/.maxima |
---|
71 | |
---|
72 | ATTENTION: On macOS BigSur there is an issue with wxWidgets, which has the\ |
---|
73 | effect that wxMaxima does not start. In order to fix this, run these\ |
---|
74 | commands: |
---|
75 | sudo port -f uninstall wxwidgets-3.0 |
---|
76 | sudo port -v -s install wxwidgets-3.0 |
---|
77 | If this does not help, you need to update XCode. |
---|
78 | " |
---|
79 | |
---|
80 | github.livecheck.regex {([a-z0-9.]+)} |
---|