gnu: libcamera: Split off gst and tools outputs.
* gnu/packages/networking.scm (libcamera)[outputs]: Add gst and tools. [arguments]: Pass "-Dbindir" to configure-flags. Adjust 'move-doc phase to 'move-doc-and-gst.
This commit is contained in:
parent
6b7fb36d30
commit
1ff1b92142
@ -363,25 +363,31 @@ them in order to efficiently transfer a minimal amount of data.")
|
|||||||
(sha256
|
(sha256
|
||||||
(base32 "06dj3dpfbayj61015n5kffin2g3hyys11ra0px2g4hmrznvdkhc9"))))
|
(base32 "06dj3dpfbayj61015n5kffin2g3hyys11ra0px2g4hmrznvdkhc9"))))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(outputs '("out" "doc"))
|
(outputs '("out" "doc" "gst" "tools"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
|
`(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
(list
|
(list
|
||||||
|
(string-append "-Dbindir=" (assoc-ref %outputs "tools") "/bin")
|
||||||
"-Dtest=true"
|
"-Dtest=true"
|
||||||
"-Dv4l2=true"
|
"-Dv4l2=true"
|
||||||
;; XXX: Requires bundled pybind11.
|
;; XXX: Requires bundled pybind11.
|
||||||
"-Dpycamera=disabled")
|
"-Dpycamera=disabled")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'install 'move-doc
|
(add-after 'install 'move-doc-and-gst
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(doc (assoc-ref outputs "doc")))
|
(doc (assoc-ref outputs "doc"))
|
||||||
|
(gst (assoc-ref outputs "gst")))
|
||||||
(mkdir-p (string-append doc "/share"))
|
(mkdir-p (string-append doc "/share"))
|
||||||
(rename-file
|
(rename-file
|
||||||
(string-append out "/share/doc")
|
(string-append out "/share/doc")
|
||||||
(string-append doc "/share/doc"))))))))
|
(string-append doc "/share/doc"))
|
||||||
|
(mkdir-p (string-append gst "/lib"))
|
||||||
|
(rename-file
|
||||||
|
(string-append out "/lib/gstreamer-1.0")
|
||||||
|
(string-append gst "/lib/gstreamer-1.0"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list googletest
|
(list googletest
|
||||||
graphviz ;for 'dot'
|
graphviz ;for 'dot'
|
||||||
|
Loading…
Reference in New Issue
Block a user