guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Add freeimage.


From: Andreas Enge
Subject: Re: [PATCH] gnu: Add freeimage.
Date: Sun, 2 Nov 2014 18:46:52 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Nov 01, 2014 at 01:21:55PM -0400, David Thompson wrote:
> +    '(#:phases (alist-replace
> +                'unpack
> +                (lambda* (#:key source #:allow-other-keys)
> +                  (and (zero? (system* "unzip" source))
> +                       (chdir "FreeImage")))
> +                (alist-delete
> +                 'configure
> +                 (alist-cons-before
> +                  'build 'patch-makefile
> +                  (lambda* (#:key outputs #:allow-other-keys)
> +                    (substitute* "Makefile.gnu"
> +                      (("/usr") (assoc-ref outputs "out"))
> +                      (("-o root -g root") "")))
> +                  %standard-phases)))

I think that instead of adding patch-makefile before build, I would let it
replace configure. But this is just a matter of taste, so please do as you
please.

Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]