mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: vlc: Build with modular qt.
* gnu/packages/video.scm (vlc)[inputs]: Remove QT. Add QTBASE and QTX11EXTRAS. [arguments]: Add CXXFLAGS=-std=gnu++11 to #:configure-flags. Add 'fix-qt-include' phase.
This commit is contained in:
parent
2de7d137b3
commit
552c3e95f3
1 changed files with 9 additions and 3 deletions
|
@ -819,9 +819,8 @@ (define-public vlc
|
|||
("perl" ,perl)
|
||||
("pulseaudio" ,pulseaudio)
|
||||
("python" ,python-wrapper)
|
||||
("qt" ,qt) ; FIXME: reenable modular qt after update - requires building
|
||||
;("qtbase" ,qtbase) with -std=gnu++11.
|
||||
;("qtx11extras" ,qtx11extras)
|
||||
("qtbase" ,qtbase)
|
||||
("qtx11extras" ,qtx11extras)
|
||||
("sdl" ,sdl)
|
||||
("sdl-image" ,sdl-image)
|
||||
("speex" ,speex)
|
||||
|
@ -833,6 +832,7 @@ (define-public vlc
|
|||
;; In our case, this led to a test failure:
|
||||
;; test_libvlc_equalizer: libvlc/equalizer.c:122: test_equalizer: Assertion `isnan(libvlc_audio_equalizer_get_amp_at_index (equalizer, u_bands))' failed.
|
||||
"ac_cv_c_fast_math=no"
|
||||
"CXXFLAGS=-std=gnu++11"
|
||||
|
||||
,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
|
||||
(assoc-ref %build-inputs "ffmpeg")
|
||||
|
@ -856,6 +856,12 @@ (define-public vlc
|
|||
(substitute* "test/run_vlc.sh"
|
||||
(("./vlc --ignore-config") "echo"))
|
||||
#t))
|
||||
(add-before 'build 'fix-qt-include
|
||||
(lambda _
|
||||
;; XXX Likely not needed for >2.2.6.
|
||||
(substitute* "modules/gui/qt4/components/interface_widgets.cpp"
|
||||
(("<qx11info_x11.h>") "<QtX11Extras/qx11info_x11.h>"))
|
||||
#t))
|
||||
(add-after 'install 'regenerate-plugin-cache
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; The 'install-exec-hook' rule in the top-level Makefile.am
|
||||
|
|
Loading…
Reference in a new issue