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:
Efraim Flashner 2022-07-17 23:33:55 +03:00
parent f4ac752058
commit 0f646fc79a
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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