mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
maxima: fix build with -o ~sbcl
This is the default for aarch64.
This commit is contained in:
parent
2f8d01169f
commit
dcc17a97ab
2 changed files with 17 additions and 22 deletions
|
@ -1,21 +1,20 @@
|
||||||
--- a/src/maxima.system 2021-12-02 00:26:23.955984864 -0300
|
--- a/src/maxima.system
|
||||||
+++ b/src/maxima.system 2021-12-02 00:31:22.299541969 -0300
|
+++ b/src/maxima.system
|
||||||
@@ -87,13 +87,15 @@
|
@@ -88,12 +88,15 @@
|
||||||
(let ((obj (mapcar #'(lambda (p)
|
|
||||||
;; Convert dir/foo.fas to dir/foo.o
|
;; Convert dir/foo.fas to dir/foo.o
|
||||||
(make-pathname :type "o" :defaults p))
|
(make-pathname :type "o" :defaults p))
|
||||||
- files)))
|
files)))
|
||||||
- (c::build-fasl "binary-ecl/maxima" :lisp-files obj
|
- (c::build-fasl "binary-ecl/maxima" :lisp-files obj
|
||||||
+ files))
|
|
||||||
+ (lib '("binary-ecl/libmaxima-ecl.so")))
|
|
||||||
+ (c::build-shared-library "binary-ecl/maxima-ecl" :lisp-files obj)
|
+ (c::build-shared-library "binary-ecl/maxima-ecl" :lisp-files obj)
|
||||||
+ (c::build-fasl "binary-ecl/maxima" :lisp-files lib
|
+ (si::chdir "binary-ecl")
|
||||||
|
+ (defparameter c::*ld-rpath* "-Wl,-rpath=$ORIGIN")
|
||||||
|
+ (c::build-fasl "maxima" :lisp-files '("libmaxima-ecl.so")
|
||||||
:ld-flags
|
:ld-flags
|
||||||
(let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
|
(let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
|
||||||
(find-package "MAXIMA")))))
|
(find-package "MAXIMA")))))
|
||||||
(if (and x (not (string= x ""))) (split-string x))))
|
(if (and x (not (string= x ""))) (split-string x))))
|
||||||
- (c::build-program "binary-ecl/maxima" :lisp-files obj
|
- (c::build-program "binary-ecl/maxima" :lisp-files obj
|
||||||
+ (c::build-program "binary-ecl/maxima" :lisp-files lib
|
+ (c::build-program "maxima" :lisp-files '("libmaxima-ecl.so")
|
||||||
:ld-flags
|
:ld-flags
|
||||||
(let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
|
(let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
|
||||||
(find-package "MAXIMA")))))
|
(find-package "MAXIMA")))))
|
||||||
|
|
|
@ -3,8 +3,8 @@ pkgname=maxima
|
||||||
version=5.47.0
|
version=5.47.0
|
||||||
revision=3
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="$(vopt_enable clisp) $(vopt_enable sbcl sbcl-exec) $(vopt_enable ecl)"
|
configure_args="$(vopt_enable clisp) $(vopt_enable sbcl) $(vopt_enable ecl)
|
||||||
hostmakedepends="python3 perl texinfo patchelf $(vopt_if ecl ecl)"
|
makeinfo_found=true"
|
||||||
makedepends="$(vopt_if clisp clisp) $(vopt_if sbcl sbcl) $(vopt_if ecl ecl)"
|
makedepends="$(vopt_if clisp clisp) $(vopt_if sbcl sbcl) $(vopt_if ecl ecl)"
|
||||||
depends="$(vopt_if clisp clisp) rlwrap"
|
depends="$(vopt_if clisp clisp) rlwrap"
|
||||||
checkdepends="gnuplot"
|
checkdepends="gnuplot"
|
||||||
|
@ -41,24 +41,20 @@ esac
|
||||||
|
|
||||||
vopt_conflict clisp sbcl
|
vopt_conflict clisp sbcl
|
||||||
|
|
||||||
post_configure() {
|
pre_build() {
|
||||||
# do not rebuild these files if they exist
|
# do not rebuild these files if they exist
|
||||||
touch -c doc/info/*.html
|
touch -c doc/info/*.html
|
||||||
touch -c doc/info/maxima.info*
|
touch -c doc/info/maxima.info*
|
||||||
touch -c doc/info/maxima_toc.html
|
touch -c doc/info/maxima_toc.html
|
||||||
|
touch -c doc/info/maxima-index.lisp
|
||||||
|
touch -c doc/info/maxima-index-html.lisp
|
||||||
|
touch -c interfaces/xmaxima/doc/xmaxima.info
|
||||||
touch -c interfaces/xmaxima/doc/xmaxima.html
|
touch -c interfaces/xmaxima/doc/xmaxima.html
|
||||||
}
|
}
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
if [ "$build_option_ecl" ]; then
|
# this one needs to be done after building
|
||||||
# everything will go in the same directory, use rpath=$ORIGIN
|
touch -c interfaces/emacs/imaxima/imaxima.info
|
||||||
patchelf --remove-rpath src/binary-ecl/libmaxima-ecl.so
|
|
||||||
patchelf --set-rpath \$ORIGIN \
|
|
||||||
src/binary-ecl/{maxima,maxima.fas}
|
|
||||||
patchelf \
|
|
||||||
--replace-needed binary-ecl/libmaxima-ecl.so libmaxima-ecl.so \
|
|
||||||
src/binary-ecl/{maxima,maxima.fas}
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
|
@ -103,7 +99,7 @@ post_install() {
|
||||||
|
|
||||||
# info files are used for maxima help, and need to be uncompressed
|
# info files are used for maxima help, and need to be uncompressed
|
||||||
# removing this file prevents compression of info files
|
# removing this file prevents compression of info files
|
||||||
rm ${DESTDIR}/usr/share/info/dir
|
rm -f ${DESTDIR}/usr/share/info/dir
|
||||||
}
|
}
|
||||||
|
|
||||||
maxima-src_package() {
|
maxima-src_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue