From: Philip McGrath <philip@philipmcgrath.com>
To: 56534@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>,
"Philip McGrath" <philip@philipmcgrath.com>,
"Rostislav Svoboda" <rostislav.svoboda@gmail.com>
Subject: [bug#56534] [PATCH v2 3/4] gnu: Add racket-libvid.
Date: Fri, 20 Oct 2023 22:01:13 -0400 [thread overview]
Message-ID: <3e6121a3ba9e0c6aed46d7678578413990e135b4.1697849395.git.philip@philipmcgrath.com> (raw)
In-Reply-To: <cover.1697849395.git.philip@philipmcgrath.com>
* gnu/packages/racket.scm (racket-libvid): New variable.
---
gnu/packages/racket.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm
index 43187318d8..5468fff6c4 100644
--- a/gnu/packages/racket.scm
+++ b/gnu/packages/racket.scm
@@ -51,6 +51,7 @@ (define-module (gnu packages racket)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages video)
#:use-module (gnu packages xorg)
#:use-module ((guix licenses) #:prefix license:))
@@ -1076,6 +1077,43 @@ (define-public racket-portaudio-librsoundcallbacks
callbacks supplied @i{via} Racket's foreign interface.")
(license license:lgpl2.0+))))
+(define-public racket-libvid
+ (let ((commit "dfe1d5cb7271b1657bbde9c8f67ee9c5a513a9c7")
+ (revision "1"))
+ (package
+ (name "racket-libvid")
+ (version (git-version "0.2.1.1" revision commit))
+ (source
+ ;; Avoid even a shallow clone of the rest of the repository,
+ ;; which includes large binaries for many platforms.
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://raw.githubusercontent.com/videolang/native-pkgs/"
+ commit
+ "/libvid-src/libvid.c"))
+ (sha256
+ (base32 "14byvwsadg1d2bd2j0x9nhmxkjhlq04afhq4l43y34r3y4zdcyq5"))))
+ (inputs (list ffmpeg-4)) ; NOTE: major versions break compatibility
+ (build-system copy-build-system)
+ (arguments
+ (list
+ #:install-plan
+ #~`(("libvid.so.0" "lib/"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'install 'build
+ (lambda args
+ (invoke #$(cc-for-target)
+ "-Wall" "-Werror" "-shared" "-fPIC"
+ "-o" "libvid.so.0"
+ "libvid.c"))))))
+ (home-page "https://lang.video")
+ (synopsis "Logging support library for @code{#lang video}")
+ (description "The libvid library adapts FFmpeg's logging API to
+interoperate more easily with Racket's foreign interface.")
+ (license license:asl2.0))))
+
(define configure-layer.rkt
(scheme-file
"configure-layer.rkt"
--
2.41.0
next prev parent reply other threads:[~2023-10-21 2:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <videolang/video/issues/67@github.com>
2022-07-13 21:33 ` [bug#56534] [videolang/video] #lang video on Guix OS (Issue #67) Philip McGrath
2023-10-09 13:34 ` Ludovic Courtès
2023-10-09 14:05 ` Philip McGrath
2023-10-21 1:58 ` [bug#56534] [PATCH v2 0/4] gnu: Add racket-with-video Philip McGrath
2023-10-21 2:01 ` [bug#56534] [PATCH v2 1/4] gnu: racket: Fix layered documentation rendering Philip McGrath
2023-10-21 2:01 ` [bug#56534] [PATCH v2 2/4] gnu: Add racket-portaudio-librsoundcallbacks Philip McGrath
2023-10-21 2:01 ` Philip McGrath [this message]
2023-10-21 2:01 ` [bug#56534] [PATCH v2 4/4] gnu: Add racket-with-video Philip McGrath
2023-10-21 2:13 ` [bug#56534] [PATCH v2 0/4] " Philip McGrath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3e6121a3ba9e0c6aed46d7678578413990e135b4.1697849395.git.philip@philipmcgrath.com \
--to=philip@philipmcgrath.com \
--cc=56534@debbugs.gnu.org \
--cc=ludo@gnu.org \
--cc=rostislav.svoboda@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.