pyglet: support ffmpeg libraries
This commit is contained in:
parent
c42e7c477c
commit
248097ca26
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue