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 @@
(base32 "1pdm69fbwh8i0qg54b75bkw0yyl19w2di7l775anrigh43q5w3b6"))))
(build-system gnu-build-system)
(native-inputs
(list pkg-config autoconf automake libtool))
(list pkg-config autoconf automake libtool rsys embree-edix))
(inputs
(list gcc
gfortran
bash
gnu-make rsys embree-edix
gnu-make
))
(arguments
`(#:make-flags '("CC=gcc")
; `(#:make-flags (list (string-append "CC=gcc" ))
(arguments
`(#:make-flags '("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 " "))))
(add-before 'build 'debug-pkg-config
(lambda _
(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
(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))))))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "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
(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