me
/
guix
Archived
1
0
Fork 0

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.
master
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
1 changed files with 8 additions and 4 deletions

View File

@ -691,13 +691,17 @@ touchscreen devices and the ability to apply filters to their input events.")
(("\\(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