Integrate Maxima build into ASDF configuration

This commit is contained in:
2025-05-30 15:04:22 +01:00
parent d2c9ff77f6
commit f05af1bbbb
2 changed files with 71 additions and 24 deletions

31
README
View File

@@ -21,22 +21,21 @@ To then run the simulation:
SETUP
Before the ASDF system can be loaded, you must build the Maxima
sources locally and install them into a directory (I couldn't get
Maxima's ASDF system to load successfully otherwise, though I'm not
entirely sure why this fixes it). This can be done with:
If you have :sdl2 available and the sources are in ASDF's registry,
loading the system should just work™:
cd maxima
mkdir $PWD-install
./bootstrap
./configure --prefix=$PWD-install
make -j
make install
(asdf:load-system :ham)
I'll try to figure out if this step itself can be done with ASDF at
some point ;)
Otherwise, the full process fetching :sdl2 with Quicklisp and adding
the current directory to ASDF's registry is
Once that's done you should be able to load the system with
(asdf:load-system :ham), given that the sources are in your ASDF
registry. The system also uses :sdl2, so make sure that's available
-- you can get it with (ql:quickload :sdl2) if you're so inclined.
(ql:quickload :sdl2)
(push *default-pathname-defaults* asdf:*central-registry*)
(asdf:load-system :ham)
Maxima ended up being a bit of a pain to build fully within ASDF so
the ASDF config first compiles it with its autotools set-up (so you'll
need autoconf et al) and uses the FASLs from that build when possible.
It's a little cursed but it does the job. I did have to call
asdf::mark-operation-done directly so it might break with future
versions of ASDF (I'm using version 3.3.1 at time of writing).