pyglet: support ffmpeg libraries
This commit is contained in:
parent
c42e7c477c
commit
248097ca26
@ -11,6 +11,7 @@
|
|||||||
, gdk-pixbuf
|
, gdk-pixbuf
|
||||||
, fontconfig
|
, fontconfig
|
||||||
, freetype
|
, freetype
|
||||||
|
, ffmpeg-full
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -52,6 +53,8 @@ buildPythonPackage rec {
|
|||||||
path = '${fontconfig.lib}/lib/libfontconfig${ext}'
|
path = '${fontconfig.lib}/lib/libfontconfig${ext}'
|
||||||
elif name == 'freetype':
|
elif name == 'freetype':
|
||||||
path = '${freetype}/lib/libfreetype${ext}'
|
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:
|
if path is not None:
|
||||||
return ctypes.cdll.LoadLibrary(path)
|
return ctypes.cdll.LoadLibrary(path)
|
||||||
raise Exception("Could not load library {}".format(names))
|
raise Exception("Could not load library {}".format(names))
|
||||||
|
Loading…
Reference in New Issue
Block a user