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
@ -691,13 +691,17 @@ touchscreen devices and the ability to apply filters to their input events.")
|
|||||||
(("\\(A52DIR\\)/include")
|
(("\\(A52DIR\\)/include")
|
||||||
"(A52DIR)/include/a52dec")
|
"(A52DIR)/include/a52dec")
|
||||||
(("LIBS = " match)
|
(("LIBS = " match)
|
||||||
(string-append match "-la52 ")))
|
(string-append match "-la52 ")))))
|
||||||
#t))
|
(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
|
(add-before 'install 'create-destination-directory
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (string-append (assoc-ref outputs "out"))))
|
(let* ((out (string-append (assoc-ref outputs "out"))))
|
||||||
(mkdir-p (string-append out "/bin"))
|
(mkdir-p (string-append out "/bin"))))))))
|
||||||
#t))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list nasm))
|
(list nasm))
|
||||||
(inputs
|
(inputs
|
||||||
|
Loading…
Reference in New Issue
Block a user