2015-02-25 13:37:52 +01:00
|
|
|
from toolchain import CythonRecipe, shprint
|
2015-02-20 16:12:42 +01:00
|
|
|
from os.path import join
|
|
|
|
import sh
|
|
|
|
|
|
|
|
|
2015-02-25 13:37:52 +01:00
|
|
|
class FFPyplayerRecipe(CythonRecipe):
|
2015-06-18 11:37:12 +02:00
|
|
|
version = "v3.2"
|
2015-02-25 13:37:52 +01:00
|
|
|
url = "https://github.com/matham/ffpyplayer/archive/{version}.zip"
|
2015-02-20 16:12:42 +01:00
|
|
|
library = "libffpyplayer.a"
|
|
|
|
depends = ["python", "ffmpeg"]
|
2015-02-23 11:34:36 +01:00
|
|
|
pbx_frameworks = [
|
|
|
|
"CoreVideo", "CoreMedia", "CoreImage", "AVFoundation", "UIKit",
|
|
|
|
"CoreMotion"]
|
|
|
|
pbx_libraries = ["libiconv"]
|
2015-02-25 13:37:52 +01:00
|
|
|
pre_build_ext = True
|
2015-02-20 16:12:42 +01:00
|
|
|
|
2015-02-25 13:37:52 +01:00
|
|
|
def get_recipe_env(self, arch):
|
|
|
|
env = super(FFPyplayerRecipe, self).get_recipe_env(arch)
|
|
|
|
env["CC"] += " -I{}".format(
|
|
|
|
join(self.ctx.dist_dir, "include", arch.arch, "libffi"))
|
|
|
|
env["SDL_INCLUDE_DIR"] = join(self.ctx.dist_dir, "include",
|
|
|
|
"common", "sdl2")
|
|
|
|
env["FFMPEG_INCLUDE_DIR"] = join(self.ctx.dist_dir, "include",
|
|
|
|
arch.arch, "ffmpeg")
|
|
|
|
env["CONFIG_POSTPROC"] = "0"
|
|
|
|
return env
|
2015-02-20 16:12:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
recipe = FFPyplayerRecipe()
|
|
|
|
|