gnu: librnd: Update to 4.3.2.

* gnu/packages/engineering.scm (librnd): Update to 4.3.2.
[build-system]: Switch to glib-or-gtk.
[arguments]<#:phases>: Merge cc-is-gcc into configure phase.
[inputs]: Add gtkglext and libepoxy.

Change-Id: If0bb0feadc83cba97f93c5122c83b9f1771c3fd5
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Cayetano Santos 2025-07-26 18:28:21 +02:00 committed by Andreas Enge
parent 4f368f0cfa
commit 4f5f246334
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
2 changed files with 12 additions and 12 deletions

View file

@ -67,6 +67,7 @@
#:use-module (guix build-system copy)
#:use-module (guix build-system emacs)
#:use-module (guix build-system guile)
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (guix build-system pyproject)
@ -568,29 +569,28 @@ features.")))
(define-public librnd
(package
(name "librnd")
(version "4.0.2")
(version "4.3.2")
(source (origin
(method url-fetch)
(uri (string-append "http://www.repo.hu/projects/librnd/releases/"
"librnd-" version ".tar.bz2"))
(uri (string-append "http://www.repo.hu/projects/librnd/"
"releases/librnd-" version ".tar.bz2"))
(sha256
(base32
"0z578x3sd8yjfbhivy1hz4hlgiy43qq6x7mnby872plpm08vgqxz"))))
(build-system gnu-build-system)
"1qjv6gg9fb3rpvr1y9l5nbzz2xk2sa4nqz0dgwvds5hc1bmd97mf"))))
(build-system glib-or-gtk-build-system)
(arguments
(list
#:tests? #false ;no check target
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'cc-is-gcc
(lambda _ (setenv "CC" #$(cc-for-target))))
;; The configure script doesn't tolerate most of our configure
;; flags.
(replace 'configure
;; The configure script doesn't tolerate most of our configure flags.
(lambda _
(invoke "sh" "configure"
(string-append "--prefix=" #$output)))))))
(setenv "CC" #$(cc-for-target))
(invoke "./configure" (string-append "--prefix=" #$output)))))))
(inputs
(list gd gtk glib glu))
(list gd glib glu gtk gtkglext libepoxy))
(native-inputs
(list pkg-config))
(home-page "http://repo.hu/projects/librnd/")

View file

@ -47,7 +47,7 @@
"1s7lpnxg826r2lm2c81j9a61zwljy2ybkqwadjiwrfi0hmbczn89"))))
(build-system gnu-build-system)
(inputs
(list gmp lesstif libffi libx11 libxt))
(list gmp libffi libx11 libxt))
(arguments
'(#:configure-flags
(list "--with-gmp"