Ticket #66914: Portfile-wxMaxima

File Portfile-wxMaxima, 3.1 KB (added by papadil, 17 months ago)

Portfile for wxMaxima update

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