add curly and libcurl recipes
This commit is contained in:
parent
e3fa7a300f
commit
5e4b561d55
2 changed files with 43 additions and 0 deletions
11
recipes/curly/__init__.py
Normal file
11
recipes/curly/__init__.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
from toolchain import CythonRecipe
|
||||||
|
|
||||||
|
class CurlyRecipe(CythonRecipe):
|
||||||
|
version = "master"
|
||||||
|
url = "https://github.com/tito/curly/archive/{version}.zip"
|
||||||
|
library = "libcurly.a"
|
||||||
|
depends = ["python", "libcurl", "sdl2", "sdl2_image"]
|
||||||
|
pre_build_ext = True
|
||||||
|
|
||||||
|
|
||||||
|
recipe = CurlyRecipe()
|
32
recipes/libcurl/__init__.py
Normal file
32
recipes/libcurl/__init__.py
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
from toolchain import Recipe, shprint
|
||||||
|
from os.path import join, exists
|
||||||
|
import sh
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
class CurlRecipe(Recipe):
|
||||||
|
version = "7.65.3"
|
||||||
|
url = "https://curl.haxx.se/download/curl-{version}.tar.gz"
|
||||||
|
library = "lib/.libs/libcurl.a"
|
||||||
|
include_dir = "include"
|
||||||
|
depends = ["openssl"]
|
||||||
|
|
||||||
|
|
||||||
|
def build_arch(self, arch):
|
||||||
|
build_env = arch.get_env()
|
||||||
|
configure = sh.Command(join(self.build_dir, "configure"))
|
||||||
|
shprint(configure,
|
||||||
|
"CC={}".format(build_env["CC"]),
|
||||||
|
"LD={}".format(build_env["LD"]),
|
||||||
|
"CFLAGS={}".format(build_env["CFLAGS"]),
|
||||||
|
"LDFLAGS={}".format(build_env["LDFLAGS"]),
|
||||||
|
"--prefix=/",
|
||||||
|
"--host={}".format(arch.triple),
|
||||||
|
"--disable-shared",
|
||||||
|
"--without-libidn2")
|
||||||
|
shprint(sh.make, "clean")
|
||||||
|
shprint(sh.make, self.ctx.concurrent_make)
|
||||||
|
|
||||||
|
recipe = CurlRecipe()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue