mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: libmpeg3: Fix building on many architectures.
* gnu/packages/video.scm (libmpeg3)[arguments]: Add a custom phase to set the CFLAGS based on the Makefile. Remove trailing #t from phases.
This commit is contained in:
parent
f4ac752058
commit
0f646fc79a
1 changed files with 8 additions and 4 deletions
|
@ -691,13 +691,17 @@ (define-public libmpeg3
|
|||
(("\\(A52DIR\\)/include")
|
||||
"(A52DIR)/include/a52dec")
|
||||
(("LIBS = " match)
|
||||
(string-append match "-la52 ")))
|
||||
#t))
|
||||
(string-append match "-la52 ")))))
|
||||
(add-after 'unpack 'preseed-cflags
|
||||
(lambda _
|
||||
(setenv "CFLAGS"
|
||||
(string-append "-D_FILE_OFFSET_BITS=64 "
|
||||
"-D_LARGEFILE_SOURCE "
|
||||
"-D_LARGEFILE64_SOURCE"))))
|
||||
(add-before 'install 'create-destination-directory
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (string-append (assoc-ref outputs "out"))))
|
||||
(mkdir-p (string-append out "/bin"))
|
||||
#t))))))
|
||||
(mkdir-p (string-append out "/bin"))))))))
|
||||
(native-inputs
|
||||
(list nasm))
|
||||
(inputs
|
||||
|
|
Loading…
Reference in a new issue