summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-11-20 14:32:47 +0100
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-14 15:10:57 -0400
commitb0d378256e9976748250b1d4272d85a514a0070e (patch)
tree9a4c11d26deb2fd613c105abe6644c7c0794a211 /gnu
parent399dd75f3a2fd7bb54c7987fba20b980f38a0579 (diff)
downloadguix-b0d378256e9976748250b1d4272d85a514a0070e.tar.gz
gnu: glew: Omit static library.
* gnu/packages/gl.scm (glew)[arguments]: Add phase to delete libGLEW.a.  While
at it, convert to G-expression.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/gl.scm15
1 files changed, 9 insertions, 6 deletions
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index b945c6c5b8..fd69e6dbeb 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -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))