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

debug star-enclosures-3d

parent ff33f3cc
No related branches found
No related tags found
No related merge requests found
...@@ -35,23 +35,82 @@ ...@@ -35,23 +35,82 @@
(list gcc (list gcc
gfortran gfortran
bash bash
gnu-make gnu-make))
))
(arguments (arguments
`(#:make-flags (list (string-append "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 (replace 'build
(lambda* (#:key make-flags #:allow-other-keys) (lambda* (#:key make-flags #:allow-other-keys)
(invoke "make" (string-join make-flags " ")))) (invoke "make" (string-join 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 "PREFIX=" out)))))
))) (add-after 'install 'install-pkg-config
(home-page "https://meso-star.com/star-3d") ;; Remplacez avec le bon lien (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(pkgconfig-dir (string-append out "/lib/pkgconfig"))
(pc-file (string-append pkgconfig-dir "/s3d.pc")))
(mkdir-p pkgconfig-dir)
(with-output-to-file pc-file
(lambda ()
(format #t "prefix=~a~%" out)
(format #t "exec_prefix=${prefix}~%")
(format #t "libdir=${exec_prefix}/lib~%")
(format #t "includedir=${prefix}/include~%")
(format #t "~%")
(format #t "Name: s3d~%")
(format #t "Description: 3D simulation library~%")
(format #t "Version: 0.10~%")
(format #t "Cflags: -I${includedir}~%")
(format #t "Libs: -L${libdir} -lstar-3d~%")))))))))
(home-page "https://meso-star.com/star-3d") ;; Remplacez avec le bon lien
(synopsis "Bibliothèque Star-3D") (synopsis "Bibliothèque Star-3D")
(description "Star-3D") (description "Star-3D")
(license (list gpl3+)))) (license (list gpl3+))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; (define-public star-3d ;;
;; (package ;;
;; (name "star-3d") ;;
;; (version "0.10") ;;
;; (source (origin ;;
;; (method git-fetch) ;;
;; (uri (git-reference ;;
;; (url "https://gitlab.com/meso-star/star-3d.git") ;;
;; (commit "0.10"))) ;;
;; (sha256 ;;
;; (base32 "1pdm69fbwh8i0qg54b75bkw0yyl19w2di7l775anrigh43q5w3b6")))) ;;
;; (build-system gnu-build-system) ;;
;; (native-inputs ;;
;; (list pkg-config autoconf automake libtool rsys embree-edix)) ;;
;; (inputs ;;
;; (list gcc ;;
;; gfortran ;;
;; bash ;;
;; gnu-make ;;
;; )) ;;
;; (arguments ;;
;; `(#: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 '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") ;;
;; (description "Star-3D") ;;
;; (license (list gpl3+)))) ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment