[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
150/153: gnu: Add ghc-sdl-image.
From: |
Paul |
Subject: |
150/153: gnu: Add ghc-sdl-image. |
Date: |
Wed, 21 Oct 2015 16:08:01 +0000 |
toothbrush pushed a commit to branch wip-haskell-platform-7.10.2-a
in repository guix.
commit 81ca6b0a57eb3ae5a5932a0c0a5d5f59a645d14f
Author: Paul van der Walt <address@hidden>
Date: Fri Oct 16 14:56:02 2015 +0200
gnu: Add ghc-sdl-image.
* gnu/packages/haskell.scm (ghc-sdl-image): New variable.
---
gnu/packages/haskell.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 914c518..4a5e14c 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -936,6 +936,47 @@ plus a single channel of music, mixed by the popular
MikMod MOD, Timidity
MIDI, Ogg Vorbis, and SMPEG MP3 libraries.")
(license bsd-3)))
+(define-public ghc-sdl-image
+ (package
+ (name "ghc-sdl-image")
+ (version "0.6.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://hackage.haskell.org/package/SDL-image/SDL-image-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1m02q2426qp8m8pzz2jkk4srk2vb3j3ickiaga5jx9rkkhz732zq"))))
+ (build-system haskell-build-system)
+ (arguments
+ `(#:configure-flags
+ (let* ((sdl-image (assoc-ref %build-inputs "sdl-image"))
+ (sdl-image-lib (string-append sdl-image "/lib"))
+ (sdl-image-include (string-append sdl-image "/include/SDL")))
+ (list (string-append "--extra-include-dirs=" sdl-image-include)
+ (string-append "--extra-lib-dirs=" sdl-image-lib)))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before
+ 'configure 'fix-/bin/sh
+ (lambda _
+ ;; Use `sh', not `/bin/sh'.
+ (substitute* (find-files "." "Makefile|configure")
+ (("/bin/sh") "sh")))))))
+ (propagated-inputs
+ `(("sdl-image" ,sdl-image)
+ ("ghc-sdl" ,ghc-sdl)))
+ (home-page
+ "http://hackage.haskell.org/package/SDL-image")
+ (synopsis "Binding to libSDL_image")
+ (description "SDL_image is an image file loading library. It loads images
+as SDL surfaces, and supports the following formats: BMP, GIF, JPEG, LBM, PCX,
+PNG, PNM, TGA, TIFF, XCF, XPM, XV.")
+ (license bsd-3)))
+
(define-public ghc-half
(package
(name "ghc-half")
- 127/153: gnu: Add ghc-lens., (continued)
- 127/153: gnu: Add ghc-lens., Paul, 2015/10/21
- 122/153: gnu: Add ghc-wai., Paul, 2015/10/21
- 133/153: gnu: Add ghc-haddock., Paul, 2015/10/21
- 129/153: gnu: Add ghc-trifecta., Paul, 2015/10/21
- 130/153: gnu: Add Idris, the dependently-typed language., Paul, 2015/10/21
- 132/153: gnu: Add ghc-haddock-api., Paul, 2015/10/21
- 119/153: gnu: Add ghc-xss-sanitize., Paul, 2015/10/21
- 139/153: gnu: Add ghc-xhtml., Paul, 2015/10/21
- 143/153: gnu: Add ghc-openglraw., Paul, 2015/10/21
- 144/153: gnu: Add ghc-gluraw., Paul, 2015/10/21
- 150/153: gnu: Add ghc-sdl-image.,
Paul <=
- 152/153: gnu: Update list of GHC Core libraries for 7.10.2., Paul, 2015/10/21
- 146/153: gnu: Add ghc-opengl., Paul, 2015/10/21
- 148/153: gnu: Add ghc-sdl., Paul, 2015/10/21
- 135/153: gnu: Add ghc-multipart., Paul, 2015/10/21
- 136/153: gnu: Add ghc-cgi., Paul, 2015/10/21
- 140/153: gnu: Add ghc-regex-posix., Paul, 2015/10/21
- 145/153: gnu: Add ghc-objectname., Paul, 2015/10/21
- 149/153: gnu: Add ghc-sdl-mixer., Paul, 2015/10/21
- 137/153: gnu: Add ghc-html., Paul, 2015/10/21
- 141/153: gnu: Add ghc-regex-compat., Paul, 2015/10/21