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