From: Paul van der Walt <paul@denknerd.org>
To: guix-devel@gnu.org
Subject: [PATCH 20/21] gnu: Add ghc-sdl-image.
Date: Fri, 16 Oct 2015 15:12:04 +0200 [thread overview]
Message-ID: <1445001125-20534-20-git-send-email-paul@denknerd.org> (raw)
In-Reply-To: <1445001125-20534-1-git-send-email-paul@denknerd.org>
* gnu/packages/haskell.scm (ghc-sdl-image): New variable.
---
gnu/packages/haskell.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index d21f151..c8d64f6 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -941,6 +941,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")
--
2.6.1
next prev parent reply other threads:[~2015-10-16 13:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-16 13:11 [PATCH 01/21] gnu: Add ghc-haddock-library Paul van der Walt
2015-10-16 13:11 ` [PATCH 02/21] gnu: Add ghc-haddock-api Paul van der Walt
2015-10-16 13:11 ` [PATCH 03/21] gnu: Add ghc-haddock Paul van der Walt
2015-10-16 13:11 ` [PATCH 04/21] gnu: Add ghc-alex Paul van der Walt
2015-10-16 13:11 ` [PATCH 05/21] gnu: Add ghc-multipart Paul van der Walt
2015-10-16 13:11 ` [PATCH 06/21] gnu: Add ghc-cgi Paul van der Walt
2015-10-16 13:11 ` [PATCH 07/21] gnu: Add ghc-html Paul van der Walt
2015-10-16 13:11 ` [PATCH 08/21] gnu: Add ghc-haskell-src Paul van der Walt
2015-10-16 13:11 ` [PATCH 09/21] gnu: Add ghc-xhtml Paul van der Walt
2015-10-16 13:11 ` [PATCH 10/21] gnu: Add ghc-regex-posix Paul van der Walt
2015-10-16 13:11 ` [PATCH 11/21] gnu: Add ghc-regex-compat Paul van der Walt
2015-10-16 13:11 ` [PATCH 12/21] gnu: Add ghc-half Paul van der Walt
2015-10-16 13:11 ` [PATCH 13/21] gnu: Add ghc-openglraw Paul van der Walt
2015-10-18 18:44 ` Efraim Flashner
2015-10-18 19:01 ` Paul van der Walt
2015-10-16 13:11 ` [PATCH 14/21] gnu: Add ghc-gluraw Paul van der Walt
2015-10-18 18:46 ` Efraim Flashner
2015-10-18 19:13 ` Paul van der Walt
2015-10-16 13:11 ` [PATCH 15/21] gnu: Add ghc-objectname Paul van der Walt
2015-10-16 13:12 ` [PATCH 16/21] gnu: Add ghc-opengl Paul van der Walt
2015-10-16 13:12 ` [PATCH 17/21] gnu: Add ghc-glut Paul van der Walt
2015-10-16 13:12 ` [PATCH 18/21] gnu: Add ghc-sdl Paul van der Walt
2015-10-16 13:12 ` [PATCH 19/21] gnu: Add ghc-sdl-mixer Paul van der Walt
2015-10-16 13:12 ` Paul van der Walt [this message]
2015-10-16 13:12 ` [PATCH 21/21] gnu: Add raincat platform game Paul van der Walt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1445001125-20534-20-git-send-email-paul@denknerd.org \
--to=paul@denknerd.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.