2022-12-02 21:15:34 +01:00
|
|
|
from pythonforandroid.recipe import Recipe
|
2019-03-30 21:58:45 +01:00
|
|
|
from pythonforandroid.toolchain import current_directory, shprint
|
|
|
|
import sh
|
|
|
|
|
|
|
|
|
2022-12-02 21:15:34 +01:00
|
|
|
class OggRecipe(Recipe):
|
2019-03-30 21:58:45 +01:00
|
|
|
version = '1.3.3'
|
|
|
|
url = 'http://downloads.xiph.org/releases/ogg/libogg-{version}.tar.gz'
|
2022-12-02 21:15:34 +01:00
|
|
|
built_libraries = {'libogg.so': 'src/.libs'}
|
2019-03-30 21:58:45 +01:00
|
|
|
|
|
|
|
def build_arch(self, arch):
|
|
|
|
with current_directory(self.get_build_dir(arch.arch)):
|
|
|
|
env = self.get_recipe_env(arch)
|
|
|
|
flags = [
|
2022-12-02 21:15:34 +01:00
|
|
|
'--host=' + arch.command_prefix,
|
2019-03-30 21:58:45 +01:00
|
|
|
]
|
|
|
|
configure = sh.Command('./configure')
|
|
|
|
shprint(configure, *flags, _env=env)
|
|
|
|
shprint(sh.make, _env=env)
|
|
|
|
|
|
|
|
|
|
|
|
recipe = OggRecipe()
|