pyglet: support ffmpeg libraries

This commit is contained in:
Masayuki Takeda 2020-03-10 15:58:50 +09:00 committed by Jon
parent c42e7c477c
commit 248097ca26

View File

@ -11,6 +11,7 @@
, gdk-pixbuf
, fontconfig
, freetype
, ffmpeg-full
}:
buildPythonPackage rec {
@ -52,6 +53,8 @@ buildPythonPackage rec {
path = '${fontconfig.lib}/lib/libfontconfig${ext}'
elif name == 'freetype':
path = '${freetype}/lib/libfreetype${ext}'
elif name[0:2] == 'av' or name[0:2] == 'sw':
path = '${ffmpeg-full}/lib/lib' + name + '${ext}'
if path is not None:
return ctypes.cdll.LoadLibrary(path)
raise Exception("Could not load library {}".format(names))