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

star-3d ok

parent 0b66274a
Branches
No related tags found
No related merge requests found
...@@ -29,89 +29,27 @@ ...@@ -29,89 +29,27 @@
(base32 "1pdm69fbwh8i0qg54b75bkw0yyl19w2di7l775anrigh43q5w3b6")))) (base32 "1pdm69fbwh8i0qg54b75bkw0yyl19w2di7l775anrigh43q5w3b6"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
(list pkg-config autoconf automake libtool embree-edix)) (list pkg-config autoconf automake libtool gcc gnu-make))
(inputs ;(inputs
(list gcc ; (list gcc
gfortran ; gfortran
bash ; bash
gnu-make)) ; gnu-make))
(propagated-inputs (list rsys)) (propagated-inputs (list rsys embree-edix))
(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-pc-file
; (lambda* (#:key outputs #:allow-other-keys)
; (let* ((out (assoc-ref outputs "out"))
; (libdir (string-append out "/lib"))
; (pkgdir (string-append libdir "/pkgconfig"))
; (included (string-append out "/include"))
; (pc-file (string-append pkgdir "/s3d.pc")))
; (mkdir-p pkgdir)
;; On écrit s3d.pc tel que vous l’avez montré :
; (call-with-output-file pc-file
; (lambda (port)
; (add-after 'install 'install-pkg-config
; (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 "Requires: rsys >= 0.14~%")
; (format #t "Requires: >= 0.14~%")
; (format #t "Name: Star-3D~%")
; (format #t "Description: 3D simulation library~%")
; (format #t "Version: 0.10~%")
; (format #t "Cflags: -I${includedir}~%")
; (format #t "Libs: -L${libdir} -ls3d~%"))))))
; (format #t "prefix=~a~%" out)
; (format #t "includedir=${prefix}/include~%")
; (format #t "libdir=${prefix}/lib~%~%")
; (format #t "Requires: rsys >= 0.14~%")
; (format #t "Requires.private: embree4 >= 4.0~%")
; (format #t "Name: Star-3D~%")
; (format #t "Description: Star-3D library~%")
;; Utilisez ~a pour insérer la variable `version` :
; (format #t "Version: 0.10~%")
; (format #t "Libs: -L${libdir} -ls3d~%")
; (format #t "Libs.private: -lm~%")
; (format #t "CFlags: -I${includedir}~%"))))))
)))
(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")
(description "Star-3D") (description "Star-3D")
(license (list gpl3+)))) (license (list gpl3+))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment