diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2017-10-07 16:02:43 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2017-10-08 09:41:00 +0300 |
| commit | 74e1997a106a52266bccb1a7480f2d70ff56a690 (patch) | |
| tree | b2545bdc0838a122e21539df92927d612dea1a1f | |
| parent | wigust: Add stb. (diff) | |
| download | guix-wigust-74e1997a106a52266bccb1a7480f2d70ff56a690.tar.gz | |
wigust: Add angband-nonfree.
* wigust/packages/games.scm (angband-nonfree): New variable.
| -rw-r--r-- | wigust/packages/games.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/wigust/packages/games.scm b/wigust/packages/games.scm index e87b493..30f919d 100644 --- a/wigust/packages/games.scm +++ b/wigust/packages/games.scm @@ -7,6 +7,11 @@ #:use-module (guix git-download) #:use-module (guix gexp) #:use-module (gnu packages) + #:use-module (gnu packages games) + #:use-module (gnu packages sdl) + #:use-module (gnu packages fontutils) + #:use-module (gnu packages xorg) + #:use-module (gnu packages perl) #:use-module (guix build-system trivial)) (define-public stb @@ -43,3 +48,39 @@ (synopsis "stb single-file public domain libraries for C/C++") (description "stb single-file public domain libraries for C/C++") (license license:expat)))) + +(define-public angband-nonfree + ;; TODO: Sound, X11. + (package + (inherit angband) + (name "angband-nonfree") + (version "4.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "http://rephial.org/downloads/4.1/" + "angband-" version ".tar.gz")) + (sha256 + (base32 + "0vhvzbrm6hwca2yp02pg2vzg4c5yf65whg0bmjbalmhy1r4kw51x")))) + (inputs + `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf))) + ("freetype" ,freetype) + ("libx11" ,libx11) + ("perl" ,perl) + ,@(package-inputs angband))) + (arguments + `(#:tests? + #f + #:configure-flags + (list (string-append "--bindir=" %output "/bin") + (string-append "--sysconfdir=" %output "/share/angband") + "--enable-sdl" "CFLAGS=-fgnu89-inline" "--enable-sdl-mixer") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'autogen.sh + (lambda _ + (zero? (system* "sh" "autogen.sh")) + (substitute* "src/main-sdl.c" (("SDL_ttf.h") "SDL/SDL_ttf.h")) + (substitute* "src/main-sdl.c" (("SDL_image.h") "SDL/SDL_image.h")) + #t))))))) |
