Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define-module (gnu packages myraylib)
- #:use-module ((srfi srfi-1) #:hide (zip))
- #:use-module (ice-9 match)
- #:use-module (guix licenses)
- #:use-module (guix packages)
- #:use-module (guix gexp)
- #:use-module (guix download)
- #:use-module (guix git-download)
- #:use-module (guix utils)
- #:use-module (guix build-system gnu)
- #:use-module (gnu packages gl)
- #:use-module (gnu packages pkg-config))
- (define-public myraylib
- (package
- (name "myraylib")
- (version "5.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/raysan5/raylib/")
- (commit version)))
- (file-name (git-file-name name version))
- ;; TODO: Unbundle src/external
- (sha256
- (base32
- "0327licmylwlh5iyzw35pq7ci2d15rp3jms5i9p0vfg1rlv2sjw0"))))
- (build-system gnu-build-system)
- (arguments
- (list #:make-flags
- #~(list "ROOT=root"
- (string-append "DESTDIR=" #$output)
- "RAYLIB_LIBTYPE=SHARED"
- "USE_EXTERNAL_GLFW=TRUE"
- )
- #:phases
- #~(modify-phases %standard-phases
- (delete 'configure) ; no configure script
- (add-before 'build 'change-to-src-directory
- (lambda _
- (chdir "src")
- #t))
- (add-before 'install 'substitute-ldconfig
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (substitute* "Makefile"
- (("ldconfig") "ldconfig -n"))
- #t)))
- #:tests? #f))
- (inputs (list glfw))
- (native-inputs (list pkg-config))
- (synopsis "C library for videogame programming")
- (description
- "raylib is THE GOAT high-level library for video game programming. It aims to
- abstract away platform and graphics details, allowing you to focus on
- writing your game.")
- (home-page "https://www.raylib.com/")
- (license zlib)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement