gnu: libsrtp: Build shared library.

* gnu/packages/telephony.scm (libsrtp)[arguments]: Add #:phases.
This commit is contained in:
Marius Bakke 2020-01-19 23:44:36 +01:00
parent 80af75abcf
commit d18116d9b5
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -261,7 +261,19 @@ (define-public libsrtp
("procps" ,procps)))
(build-system gnu-build-system)
(arguments
'(#:test-target "runtest"))
'(#:test-target "runtest"
#:phases (modify-phases %standard-phases
(add-after 'build 'build-shared
(lambda* (#:key (make-flags '()) #:allow-other-keys)
;; Build the shared library separately because
;; the test runner requires a static build.
(apply invoke "make" "shared_library" make-flags)
#t))
(add-after 'install 'remove-static-library
(lambda* (#:key outputs #:allow-other-keys)
(delete-file (string-append (assoc-ref outputs "out")
"/lib/libsrtp2.a"))
#t)))))
(synopsis "Secure RTP (SRTP) Reference Implementation")
(description
"This package provides an implementation of the Secure Real-time Transport