summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorOlivier Farges <olivier.farges@univ-lorraine.fr>2026-06-16 08:24:23 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-06-24 23:23:59 +0100
commit7263223c59e9ef6ed81d9c411cf87c1643989298 (patch)
treec2681a2935b477ca44ea6e032e0f4e0649fb9767 /gnu/packages
parentc6cdc2590510ccd4ad1dbe157c15a1e2bee14292 (diff)
gnu: embree: Generate a pkg-config file.
* gnu/packages/graphics.scm (embree)[#:phases]: Add `install-pkg-config`. (embree-3)[#:phases]: Delete `install-pkg-config`. Merges: guix/guix!9216 Reviewed-by: bdunahu <bdunahu@operationnull.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/graphics.scm30
1 files changed, 28 insertions, 2 deletions
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 1a447ed0426..e22de793f09 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -637,7 +637,28 @@ with the @command{autotrace} utility or as a C library, @code{libautotrace}.")
637 "-DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF" 637 "-DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF"
638 "-DCMAKE_CXX_FLAGS=-flax-vector-conversions")) 638 "-DCMAKE_CXX_FLAGS=-flax-vector-conversions"))
639 (else 639 (else
640 '()))))) 640 '())))
641 #:phases
642 #~(modify-phases %standard-phases
643 (add-after 'install 'install-pkg-config
644 (lambda _
645 (let* ((pkgconfig-dir (string-append #$output "/lib/pkgconfig"))
646 (pc-file (string-append pkgconfig-dir "/embree4.pc")))
647 (mkdir-p pkgconfig-dir)
648 (call-with-output-file pc-file
649 (lambda (port)
650 (format port "\
651prefix=~a
652exec_prefix=${prefix}
653libdir=${exec_prefix}/lib
654includedir=${prefix}/include
655
656Name: Embree
657Description: High-performance ray tracing library
658Version: ~a
659Cflags: -I${includedir}
660Libs: -L${libdir} -lembree4
661" #$output #$version)))))))))
641 (inputs 662 (inputs
642 (list glfw onetbb)) 663 (list glfw onetbb))
643 (home-page "https://www.embree.org/") 664 (home-page "https://www.embree.org/")
@@ -664,7 +685,12 @@ applications.")
664 (file-name (git-file-name name version)) 685 (file-name (git-file-name name version))
665 (sha256 686 (sha256
666 (base32 687 (base32
667 "1kcvz7g6j56anv9zjyd3gidxl46vipw0gg82lns12m45cd43iwxm")))))) 688 "1kcvz7g6j56anv9zjyd3gidxl46vipw0gg82lns12m45cd43iwxm"))))
689 (arguments
690 (substitute-keyword-arguments arguments
691 ((#:phases phases)
692 #~(modify-phases #$phases
693 (delete 'install-pkg-config)))))))
668 694
669(define-public openvdb 695(define-public openvdb
670 (package 696 (package