the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: wxmaxima%type_pkg[-ui]%type_pkg[-standalone]
Type: -ui (-gtk -mac), -standalone (boolean)
Version: 12.04.0
Revision: 3
Description: Interface to Maxima using wxWidgets
DescDetail: <<
wxMaxima is a cross platform GUI for the computer algebra system maxima based
on wxWidgets. wxMaxima features include:
* 2D formatted math display: wxMaxima implements its own math display
engine to nicely display maxima output.
* Menu system: most maxima commands are available through menus. Most
used functions are also available through a button panel at below the
input line.
* Dialogs: commands which require more that one argument can be entered
through dialogs so that there is no need to remember the exact syntax.
* Command line history: the input line has command history and command
completion based on previous input.
* Create documents: text can be mixed with math calculations to create
documents. See the
howto (http://wxmaxima.sourceforge.net/wiki/index.php/Howto)
for tips on how to use these features. Documents can be saved and edited
again later.
<<
DescUsage: <<
You can either use the app bundle in %p/Applications, which is
symlinked in /Applications/Fink, or the "wxmaxima" command-line
script.
If you get a "Cannot connect to server" message on startup,
quit and restart wxMaxima.
Install the wxmaxima-mac-standalone or wxmaxima-gtk-standalone packages if
you don't want to install Fink's maxima.
NOTE: Using '()' and '[]' currently crash the program when entered in the
Expressions field of any of the dialog boxes from the menu.
<<
Maintainer: Alexander Hansen
Homepage: http://andrejv.github.com/wxmaxima/
#
Source: mirror:sourceforge:%{ni}/wxMaxima-%v.tar.gz
Source-MD5: 675dd4ee4b35b770540f725993286f01
#
PatchFile: %{ni}.patch
PatchFile-MD5: d65056917122c01e5fc96d7cfb88db74
PatchScript: <<
#!/bin/sh -ev
sed -e 's,PREFIX,%p,' %{PatchFile} | patch -p1
# patch out hardcoded default app locations for the !-standalone variants
if [ "x%type_pkg[-standalone]" = "x" ]
then
perl -pi.bak -e 's,/Applications/Maxima\.app,%p/bin/maxima,' src/Config.cpp src/wxMaxima.cpp
perl -pi.bak -e 's,/Applications/Gnuplot.app,%p/bin/gnuplot,' src/wxMaxima.cpp
fi
<<
#
Recommends: <<
(%type_raw[-standalone] = -standalone) maxima (>= 5.26.0-1),
(%type_pkg[-ui] = -mac) xmaxima (>= 5.26.0-1),
(%type_pkg[-ui] = -gtk) xmaxima-x11 (>= 5.26.0-1)
<<
Depends: <<
libxml2-shlibs, libiconv,
(%type_pkg[-ui] = -mac) wxcocoa293-shlibs (>= 2.9.3-2),
(%type_pkg[-ui] = -gtk) wxgtk2.8-shlibs ( >= 2.8.4 ),
(%type_pkg[-ui] = -gtk) gtk+2-shlibs,
(%type_pkg[-ui] = -gtk) glib2-shlibs
<<
BuildDepends: <<
libxml2, libiconv-dev,
(%type_pkg[-ui] = -mac) wxcocoa293 (>= 2.9.3-2),
(%type_pkg[-ui] = -gtk) wxgtk2.8 ( >= 2.8.4 ),
(%type_pkg[-ui] = -gtk) gtk+2-dev,
(%type_pkg[-ui] = -gtk) glib2-dev,
fink-package-precedence, fink (>=0.32.0)
<<
RuntimeDepends: <<
(%type_raw[-standalone] = .) maxima (>=5.26.0-1),
(%type_raw[-standalone] = .) xmaxima (>=5.26.0-1) | (%type_raw[-standalone] = .) xmaxima-x11 (>=5.26.0-1),
(%type_raw[-standalone] = .) gnuplot
<<
Conflicts: wxmaxima-mac, wxmaxima-gtk, wxmaxima-mac-standalone, wxmaxima-gtk-standalone
Replaces: wxmaxima-mac, wxmaxima-gtk, wxmaxima-mac-standalone, wxmaxima-gtk-standalone
Provides: wxmaxima
GCC: 4.0
#
ConfigureParams: <<
--with-wx-config=%p/bin/wx-config --with-xml-prefix=%p \
--enable-unicode-glyphs --enable-printing --enable-dnd
<<
#
CompileScript: <<
#!/bin/sh -ev
./configure %c
make wxMaxima.app
fink-package-precedence .
mv wxMaxima.app/Contents/MacOS/wxmaxima wxMaxima.app/Contents/MacOS/wxmaxima.bin
cp wxmaxima.fink wxMaxima.app/Contents/MacOS/wxmaxima
chmod a+x wxMaxima.app/Contents/MacOS/wxmaxima
<<
InstallScript:<<
#!/bin/sh -ev
%{default_script}
rm %i/bin/wxmaxima || echo "No %p/bin/wxmaxima"
cp wxmaximabin %i/bin/wxmaxima
chmod a+x %i/bin/wxmaxima
<<
#
AppBundles: wxMaxima.app
DocFiles: AUTHORS COPYING ChangeLog NEWS README
DescPackaging:<<
Patch file installs a wrapper script in the .app bundle to insure
that Fink's environment is used.
We remove the %p/bin/wxmaxima applications that upstream builds and
replace them by a script using "open -a %p/Applications/wxMaxima.app."
We require a versioned dependency on wxcocoa293 because this version of
wxmaxima needs some stuff which is not in the official wxwidgets-2.9.3 release,
and which has been added to wxcocoa293-2.9.3-2.
Force rebuild for 12.01.0-2, since the package seems to be sensitive to
what compiler is used to build wxcocoa293.
<<
License: GPL2
<<
--- wxMaxima-0.7.2/wxmaxima.fink 1969-12-31 19:00:00.000000000 -0500
+++ wxMaxima-0.7.2.patched/wxmaxima.fink 2007-05-06 22:18:26.000000000 -0400
@@ -0,0 +1,3 @@
+#!/bin/bash
+. PREFIX/bin/init.sh
+exec -a "$0" "$0.bin" "$@"
--- wxMaxima-0.8.1/wxmaximabin.orig 1969-12-31 19:00:00.000000000 -0500
+++ wxMaxima-0.8.1/wxmaximabin 2009-03-05 19:28:04.000000000 -0500
@@ -0,0 +1,2 @@
+#!/bin/sh
+open -a PREFIX/Applications/wxMaxima.app