mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: mplayer: Use G-expressions.
* gnu/packages/video.scm (mplayer)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
c89173cf46
commit
96727475fb
1 changed files with 37 additions and 37 deletions
|
@ -2109,6 +2109,43 @@ (define-public mplayer
|
||||||
(base32
|
(base32
|
||||||
"11dzrdb74ayvivcid3giqncrfm98hi4aqvg3kjrwji6bnddxa335"))))
|
"11dzrdb74ayvivcid3giqncrfm98hi4aqvg3kjrwji6bnddxa335"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:tests? #f ; no test target
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'configure
|
||||||
|
;; configure does not work followed by "SHELL=..." and
|
||||||
|
;; "CONFIG_SHELL=..."; set environment variables instead
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(substitute* "configure"
|
||||||
|
(("#! /bin/sh") (string-append "#!" (which "sh"))))
|
||||||
|
(setenv "SHELL" (which "bash"))
|
||||||
|
(setenv "CONFIG_SHELL" (which "bash"))
|
||||||
|
(invoke "./configure"
|
||||||
|
(string-append "--extra-cflags=-I"
|
||||||
|
#$(this-package-input "libx11")
|
||||||
|
"/include") ; to detect libx11
|
||||||
|
"--disable-ffmpeg_a" ; disables bundled ffmpeg
|
||||||
|
(string-append "--prefix=" #$output)
|
||||||
|
;; Enable runtime cpu detection where supported,
|
||||||
|
;; and choose a suitable target.
|
||||||
|
#$@(match (or (%current-target-system)
|
||||||
|
(%current-system))
|
||||||
|
("x86_64-linux"
|
||||||
|
'("--enable-runtime-cpudetection"
|
||||||
|
"--target=x86_64-linux"))
|
||||||
|
("i686-linux"
|
||||||
|
'("--enable-runtime-cpudetection"
|
||||||
|
"--target=i686-linux"))
|
||||||
|
("mips64el-linux"
|
||||||
|
'("--target=mips3-linux"))
|
||||||
|
(_ (list (string-append
|
||||||
|
"--target="
|
||||||
|
(or (%current-target-system)
|
||||||
|
(nix-system->gnu-triplet
|
||||||
|
(%current-system)))))))
|
||||||
|
"--disable-iwmmxt"))))))
|
||||||
;; FIXME: Add additional inputs once available.
|
;; FIXME: Add additional inputs once available.
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config yasm))
|
(list pkg-config yasm))
|
||||||
|
@ -2144,43 +2181,6 @@ (define-public mplayer
|
||||||
sdl
|
sdl
|
||||||
speex
|
speex
|
||||||
zlib))
|
zlib))
|
||||||
(arguments
|
|
||||||
`(#:tests? #f ; no test target
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(replace 'configure
|
|
||||||
;; configure does not work followed by "SHELL=..." and
|
|
||||||
;; "CONFIG_SHELL=..."; set environment variables instead
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(let ((out (assoc-ref outputs "out"))
|
|
||||||
(libx11 (assoc-ref inputs "libx11")))
|
|
||||||
(substitute* "configure"
|
|
||||||
(("#! /bin/sh") (string-append "#!" (which "sh"))))
|
|
||||||
(setenv "SHELL" (which "bash"))
|
|
||||||
(setenv "CONFIG_SHELL" (which "bash"))
|
|
||||||
(invoke "./configure"
|
|
||||||
(string-append "--extra-cflags=-I"
|
|
||||||
libx11 "/include") ; to detect libx11
|
|
||||||
"--disable-ffmpeg_a" ; disables bundled ffmpeg
|
|
||||||
(string-append "--prefix=" out)
|
|
||||||
;; Enable runtime cpu detection where supported,
|
|
||||||
;; and choose a suitable target.
|
|
||||||
,@(match (or (%current-target-system)
|
|
||||||
(%current-system))
|
|
||||||
("x86_64-linux"
|
|
||||||
'("--enable-runtime-cpudetection"
|
|
||||||
"--target=x86_64-linux"))
|
|
||||||
("i686-linux"
|
|
||||||
'("--enable-runtime-cpudetection"
|
|
||||||
"--target=i686-linux"))
|
|
||||||
("mips64el-linux"
|
|
||||||
'("--target=mips3-linux"))
|
|
||||||
(_ (list (string-append
|
|
||||||
"--target="
|
|
||||||
(or (%current-target-system)
|
|
||||||
(nix-system->gnu-triplet
|
|
||||||
(%current-system)))))))
|
|
||||||
"--disable-iwmmxt")))))))
|
|
||||||
(home-page "https://www.mplayerhq.hu")
|
(home-page "https://www.mplayerhq.hu")
|
||||||
(synopsis "Audio and video player")
|
(synopsis "Audio and video player")
|
||||||
(description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
|
(description "MPlayer is a movie player. It plays most MPEG/VOB, AVI,
|
||||||
|
|
Loading…
Reference in a new issue