~ruther/guix-local

b0d378256e9976748250b1d4272d85a514a0070e — Marius Bakke 3 years ago 399dd75
gnu: glew: Omit static library.

* gnu/packages/gl.scm (glew)[arguments]: Add phase to delete libGLEW.a.  While
at it, convert to G-expression.
1 files changed, 9 insertions(+), 6 deletions(-)

M gnu/packages/gl.scm
M gnu/packages/gl.scm => gnu/packages/gl.scm +9 -6
@@ 632,12 632,15 @@ glxdemo, glxgears, glxheads, and glxinfo.")
                  #t))))
    (build-system gnu-build-system)
    (arguments
     '(#:phases (modify-phases %standard-phases (delete 'configure))
       #:make-flags (list (string-append "GLEW_PREFIX="
                                         (assoc-ref %outputs "out"))
                          (string-append "GLEW_DEST="
                                         (assoc-ref %outputs "out")))
       #:tests? #f))                              ;no 'check' target
     (list #:make-flags #~(list (string-append "GLEW_PREFIX=" #$output)
                                (string-append "GLEW_DEST=" #$output))
           #:phases
           #~(modify-phases %standard-phases
               (delete 'configure)
               (add-after 'install 'delete-static
                 (lambda _
                   (delete-file (string-append #$output "/lib/libGLEW.a")))))
           #:tests? #f))                ;no 'check' target
    (inputs
     (list libxi libxmu libx11 mesa))