recipes: add openssl optional recipe for ffmpeg and python
This commit is contained in:
parent
a0e8b4af22
commit
7cb22bd0ec
3 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,7 @@ class FFMpegRecipe(Recipe):
|
|||
url = "http://www.ffmpeg.org/releases/ffmpeg-{version}.tar.bz2"
|
||||
include_per_arch = True
|
||||
include_dir = "dist/include"
|
||||
optional_depends = ["openssl"]
|
||||
libraries = [
|
||||
"libavcodec/libavcodec.a",
|
||||
"libavdevice/libavdevice.a",
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
from toolchain import Recipe, shprint
|
||||
from os.path import join, exists
|
||||
from os.path import join
|
||||
import sh
|
||||
import os
|
||||
|
||||
|
||||
arch_mapper = {'i386': 'darwin-i386-cc',
|
||||
|
|
|
@ -8,6 +8,7 @@ class PythonRecipe(Recipe):
|
|||
version = "2.7.1"
|
||||
url = "https://www.python.org/ftp/python/{version}/Python-{version}.tar.bz2"
|
||||
depends = ["hostpython", "libffi", ]
|
||||
optional_depends = ["openssl"]
|
||||
library = "libpython2.7.a"
|
||||
pbx_libraries = ["libz", "libbz2", "libsqlite3"]
|
||||
|
||||
|
@ -31,7 +32,7 @@ class PythonRecipe(Recipe):
|
|||
self.apply_patch("setuppath.patch")
|
||||
self.append_file("ModulesSetup.mobile", "Modules/Setup.local")
|
||||
if "openssl.build_all" in self.ctx.state:
|
||||
self.append_file("ModulesSetup.openssl", 'Modules/Setup.local')
|
||||
self.append_file("ModulesSetup.openssl", "Modules/Setup.local")
|
||||
|
||||
self.set_marker("patched")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue