e4ab9fe3e9
- Add an ECL option to build maxima using ecl lisp. Option enabled by default so that Sage can work properly when using packages. [1] - Add a SAGE option (implies ECL) to apply some patches so that Sage can work properly. This option is also enabled by default to get working Sage packages. [1] - Fix a bug in xmaxima about documentation. This also introduces an XMAXIMA option (enabled by default) because to have xmaxima working we need to ensure that DOCS and TEST are enabled, which is done by using XMAXIMA_IMPLIES. This also has the advantage to remove USES= tk for users who want to disable XMAXIMA. [2] - Modify TEST option so that it only installs tests, but it does not run them any more in the post-build-TEST-on target. Tests can still be run using "make test". Submitted by: thierry (based on) [1] Reported by: thierry [2] Approved by: thierry, tcberner (co-mentor) Differential Revision: https://reviews.freebsd.org/D24959
25 lines
763 B
Common Lisp
25 lines
763 B
Common Lisp
--- src/maxima.system.orig 2019-10-21 03:38:59 UTC
|
|
+++ src/maxima.system
|
|
@@ -1,5 +1,8 @@
|
|
;;; -*- Lisp -*-
|
|
|
|
+(require :cmp)
|
|
+(setf c::*compile-in-constants* t)
|
|
+
|
|
(in-package :cl-user)
|
|
|
|
(pushnew :cl *features*)
|
|
@@ -75,6 +78,12 @@
|
|
;; Convert dir/foo.fas to dir/foo.o
|
|
(make-pathname :type "o" :defaults p))
|
|
files)))
|
|
+;; Patch borrowed from SageMath: build the Maxima library
|
|
+ (c::build-fasl "binary-ecl/maxima" :lisp-files obj
|
|
+ :ld-flags
|
|
+ (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
|
|
+ (find-package "MAXIMA")))))
|
|
+ (if (and x (not (string= x ""))) (list x))))
|
|
(c::build-program "binary-ecl/maxima" :lisp-files obj
|
|
:ld-flags
|
|
(let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
|