Skip to content
Snippets Groups Projects
Verified Commit 7e7bd67a authored by FARGES Olivier's avatar FARGES Olivier
Browse files

debug star-3d

parent 75ff753c
No related branches found
No related tags found
No related merge requests found
...@@ -30,32 +30,59 @@ ...@@ -30,32 +30,59 @@
(base32 "1pdm69fbwh8i0qg54b75bkw0yyl19w2di7l775anrigh43q5w3b6")))) (base32 "1pdm69fbwh8i0qg54b75bkw0yyl19w2di7l775anrigh43q5w3b6"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
(list pkg-config autoconf automake libtool)) (list pkg-config autoconf automake libtool rsys embree-edix))
(inputs (inputs
(list gcc (list gcc
gfortran gfortran
bash bash
gnu-make rsys embree-edix gnu-make
)) ))
(arguments (arguments
`(#:make-flags '("CC=gcc") `(#:make-flags '("CC=gcc")
; `(#:make-flags (list (string-append "CC=gcc" ))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(delete 'check) (delete 'check)
; (replace 'build (add-before 'build 'debug-pkg-config
; (lambda* (#:key make-flags #:allow-other-keys) (lambda _
; (invoke "make" (string-join make-flags " ")))) (invoke "pkg-config" "--modversion" "embree4")))
(add-before 'build 'set-pkg-config-path
(lambda* (#:key inputs #:allow-other-keys)
(setenv "PKG_CONFIG_PATH"
(string-append (assoc-ref inputs "embree-edix") "/lib/pkgconfig"))))
(add-before 'build 'autoreconf
(lambda _
(invoke "autoreconf" "-vfi")))
(replace 'build (replace 'build
(lambda* (#:key make-flags #:allow-other-keys) (lambda* (#:key make-flags #:allow-other-keys)
(begin (begin
(format #t "Running: make ~a~%" make-flags) (format #t "Running: make ~a~%" make-flags)
(apply invoke "make" make-flags)))) (apply invoke "make" make-flags))))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
(invoke "make" "install" (string-append "PREFIX=" out)))))))) (invoke "make" "install" (string-append "DESTDIR=" out))))))))
; (arguments
;`(#:make-flags '("CC=gcc")
; `(#:make-flags (list (string-append "CC=gcc" ))
; #:phases
; (modify-phases %standard-phases
; (delete 'configure)
; (delete 'check)
; (replace 'build
; (lambda* (#:key make-flags #:allow-other-keys)
; (invoke "make" (string-join make-flags " "))))
; (replace 'build
; (lambda* (#:key make-flags #:allow-other-keys)
; (begin
; (format #t "Running: make ~a~%" make-flags)
; (apply invoke "make" make-flags))))
; (replace 'install
; (lambda* (#:key outputs #:allow-other-keys)
; (let ((out (assoc-ref outputs "out")))
; (invoke "make" "install" (string-append "PREFIX=" out))))))))
(home-page "https://meso-star.com/star-3d") ;; Remplacez avec le bon lien (home-page "https://meso-star.com/star-3d") ;; Remplacez avec le bon lien
(synopsis "Bibliothèque Star-3D") (synopsis "Bibliothèque Star-3D")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment