mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: guile-opengl: Install compiled modules in the correct place.
* gnu/packages/gl.scm (guile-opengl): Install compiled modules in the same directory as the source modules.
This commit is contained in:
parent
82700f0fb3
commit
0e215f49fe
1 changed files with 21 additions and 16 deletions
|
@ -409,22 +409,27 @@ (define-public guile-opengl
|
|||
("glu" ,glu)
|
||||
("freeglut" ,freeglut)))
|
||||
(arguments
|
||||
'(#:phases (alist-cons-before
|
||||
'build 'patch-dynamic-link
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(define (dynamic-link-substitute file lib input)
|
||||
(substitute* file
|
||||
(("dynamic-link \"lib([a-zA-Z]+)\"" _ lib)
|
||||
(string-append "dynamic-link \""
|
||||
(assoc-ref inputs input)
|
||||
"/lib/lib" lib "\""))))
|
||||
;; Replace dynamic-link calls for libGL, libGLU, and
|
||||
;; libglut with absolute paths to the store.
|
||||
(dynamic-link-substitute "glx/runtime.scm" "GL" "mesa")
|
||||
(dynamic-link-substitute "glu/runtime.scm" "GLU" "glu")
|
||||
(dynamic-link-substitute "glut/runtime.scm" "glut"
|
||||
"freeglut"))
|
||||
%standard-phases)))
|
||||
'(#:phases (modify-phases %standard-phases
|
||||
(add-after 'configure 'patch-makefile
|
||||
(lambda _
|
||||
;; Install compiled Guile files in the expected place.
|
||||
(substitute* '("Makefile")
|
||||
(("^godir = .*$")
|
||||
"godir = $(moddir)\n"))))
|
||||
(add-before 'build 'patch-dynamic-link
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(define (dynamic-link-substitute file lib input)
|
||||
(substitute* file
|
||||
(("dynamic-link \"lib([a-zA-Z]+)\"" _ lib)
|
||||
(string-append "dynamic-link \""
|
||||
(assoc-ref inputs input)
|
||||
"/lib/lib" lib "\""))))
|
||||
;; Replace dynamic-link calls for libGL, libGLU, and
|
||||
;; libglut with absolute paths to the store.
|
||||
(dynamic-link-substitute "glx/runtime.scm" "GL" "mesa")
|
||||
(dynamic-link-substitute "glu/runtime.scm" "GLU" "glu")
|
||||
(dynamic-link-substitute "glut/runtime.scm" "glut"
|
||||
"freeglut"))))))
|
||||
(home-page "http://gnu.org/s/guile-opengl")
|
||||
(synopsis "Guile binding for the OpenGL graphics API")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue