From 4782f99fa7a39b602cb9d201f35d5c759a278580 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 30 Jun 2022 19:48:21 +0200 Subject: gnu: Add cl-sdl2-image. * gnu/packages/lisp-xyz.scm (cl-sdl2-image, ecl-cl-sdl2-image, sbcl-cl-sdl2-image): New variables. --- gnu/packages/lisp-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 549804a71e..dd4eed2647 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -17757,6 +17757,48 @@ (define-public ecl-sdl2 (define-public cl-sdl2 (sbcl-package->cl-source-package sbcl-sdl2)) +(define-public sbcl-sdl2-image + (let ((commit "9c05c806286b66a5d9861ef829cfe68c4f3da077") + (revision "1")) + (package + (name "sbcl-sdl2-image") + (version (git-version "1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lispgames/cl-sdl2-image") + (commit commit))) + (file-name (git-file-name "cl-sdl2-image" version)) + (sha256 + (base32 "1nr7mdl125q32m15m8rdlza5kwi7m0birh1cq846pyy6zl1sjms7")))) + (build-system asdf-build-system/sbcl) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/library.lisp" + (("libSDL2_image-2.0.so.0") + (search-input-file inputs "/lib/libSDL2_image-2.0.so.0")))))))) + (inputs + (list sdl2-image + sbcl-alexandria + sbcl-cl-autowrap + sbcl-defpackage-plus + sbcl-sdl2)) + (home-page "https://github.com/lispgames/cl-sdl2-image") + (synopsis "SDL2_image wrapper for Common Lisp") + (description + "This is a (currently) brief but usable wrap for SDL2_image.") + (license license:expat)))) + +(define-public ecl-sdl2-image + (sbcl-package->ecl-package sbcl-sdl2-image)) + +(define-public cl-sdl2-image + (sbcl-package->cl-source-package sbcl-sdl2-image)) + (define-public sbcl-cl-gamepad (let ((commit "7e12137927b42db064ffbf9ea34bd4790ad4bb33") (revision "1")) -- cgit v1.2.3