gnu: lmms: Fix build.

* gnu/packages/music.scm (lmms)[arguments]: Add phases "remove-Werror" and
"make-manpages-writable".
This commit is contained in:
Kei Kebreau 2017-11-21 16:29:59 -05:00
parent cd295fbe17
commit ab2ccf4cf5
No known key found for this signature in database
GPG Key ID: E6A5EE3C19467A0D
1 changed files with 24 additions and 10 deletions

View File

@ -3083,16 +3083,30 @@ are a C compiler and glib. Full API documentation and examples are included.")
`(#:tests? #f ; no tests `(#:tests? #f ; no tests
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before (add-before 'configure 'set-ldflags
'configure 'set-ldflags (lambda* (#:key outputs #:allow-other-keys)
(lambda* (#:key outputs #:allow-other-keys) (setenv "LDFLAGS"
(setenv "LDFLAGS" (string-append
(string-append "-Wl,-rpath=\""
"-Wl,-rpath=\"" (assoc-ref outputs "out") "/lib/lmms"
(assoc-ref outputs "out") "/lib/lmms" ":"
":" (assoc-ref outputs "out") "/lib/lmms/ladspa"
(assoc-ref outputs "out") "/lib/lmms/ladspa" "\""))
"\""))))))) #t))
(add-before 'configure 'remove-Werror
(lambda _
(substitute* "CMakeLists.txt"
(("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
"SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
#t))
(add-before 'reset-gzip-timestamps 'make-manpages-writable
(lambda* (#:key outputs #:allow-other-keys)
(map (lambda (file)
(make-file-writable file))
(find-files (string-append (assoc-ref outputs "out")
"/share/man")
".*\\.gz$"))
#t)))))
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config))) `(("pkg-config" ,pkg-config)))
(inputs (inputs